Nga弹窗变轻提示

将 window.alert 对话框替换成 naive-ui 风格的 Notification

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
monat151
Daily installs
0
Total installs
1
Ratings
0 0 0
Version
1.2
Created
2025-09-08
Updated
2025-09-11
Size
5.23 KB
License
None
Applies to

效果预览

preview

开发相关

仅作备用:如果其他插件的alert仍旧是浏览器对话框

请尝试调用 unsafeWindow.new_alert,或是在插件代码中增加以下内容:

function alert(msg) {
    if (unsafeWindow?.new_alert) {
        unsafeWindow.new_alert(msg)
    } else {
        window.alert(msg)
    }
}

,然后调用这个函数。