HTMLダイアログ無効化

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

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
100の人 (エスパー・イーシア)
일일 설치수
0
총 설치수
467
평점
6 0 0
버전
3.0.1
생성
2014-04-05
갱신
2019-05-31
호환성
Chrome와 호환됨. Opera와 호환됨. Edge와 호환됨.
라이선스
Mozilla Public License Version 2.0 (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.