用的这位大哥的模块:【更新开源】EdgeView模块 易语言WebView2浏览框_精易论坛
比如下面这个油猴的插件:应该可以添加插件或者直接执行js实现吧,可是琢磨了好久都不会
// ==UserScript== // [url=home.php?mod=space&uid=47252]@name[/url] 弹窗 // [url=home.php?mod=space&uid=158809]@Namespace[/url] http://tampermonkey.net/ // [url=home.php?mod=space&uid=59980]@Version[/url] 1.0 // @description 弹窗 // @match https://xxz-xyzw-res.hortorgames.com/h5web* // [url=home.php?mod=space&uid=585119]@grant[/url] none // ==/UserScript== (function () { overlay.style.cssText = ` position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba (0,0,0,0.7); z-index: 9998; display: flex; justify-content: center; align-items: center; `; const alertBox = document.createElement ( alertBox.style.cssText = ` background-color: #d32f2f ; color: white; padding: 35px 50px; border-radius: 12px; box-shadow: 0 0 25px rgba (0,0,0,0.5); text-align: center; z-index: 9999; font-family: max-width: 80%; border: 2px solid #ff7043 ; `; const title = document.createElement ( title.textContent = title.style.cssText = ` margin-top: 0; margin-bottom: 25px; font-size: 26px; text-shadow: 1px 1px 2px rgba (0,0,0,0.3); `; const content = document.createElement ( content.innerHTML = ` [b]你的账号已被永久封禁![/b] 解封时间:2999-12-31 (永久封停) `; content.style.cssText = ` font-size: 20px; line-height: 1.6; margin-bottom: 25px; `;
const icon = document.createElement ( icon.textContent = icon.style.cssText = ` font-size: 42px; margin-bottom: 20px; `; alertBox.appendChild (icon); alertBox.appendChild (title); alertBox.appendChild (content); overlay.appendChild (alertBox); document.body.appendChild (overlay); document.body.style.overflow = window.addEventListener ( e.stopPropagation (); e.preventDefault (); }, true); }) ();
|