Greasy Fork is available in English.

HTMLダイアログ無効化

Always opens JavaScript links in new tab in current window instead of new window.

作者
100の人
今日安装
0
总安装量
413
得分
6 0 0
版本
3.0.1
创建日期
2014-04-05
最近更新
2019-05-31
兼容性
与 Chrome 兼容 与 Opera 兼容 与 Edge 兼容
许可协议
Mozilla Public License Version 2.0 (MPL 2.0); https://www.mozilla.org/MPL/2.0/
应用到
所有站点

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.