您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Always opens JavaScript links in new tab in current window instead of new window.
This script disables the third argument (features) of the Window#open() method, and deletes the Window#showModalDialog() method.
I wrote the script because, in past versions of Firefox, browser.link.open_newwindow.restriction;0 had been ignored on user.js / prefs.js / about:config if dialog=yes
was passed the third parameter (features) of the Window#open() method, or the Window#showModalDialog() method was called. However, dialog=yes
was obsoleted in Firefox 44, and the Window#showModalDialog() method did too in Firefox 56, so the script is unnecessary in Firefox if you set browser.link.open_newwindow.restriction
to 0
.
* On Microsoft Edge extension Tampermonkey, user scripts only work in pages that Content Security Policy allows eval() function because of Issue #11320212. If you open a page that eval() function disallowed, extension blocked is reported automatically. The script is affected by the bug of the browser because the script applies to all web pages.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址