max / HTMLダイアログ無効化

Install steps: Install a userscript manager, select Install, then open a website matched by the script.

Userscript kezdőknek HOGYAN Chrome Edge Firefox

Megjelent:

Verzió: 3.0.1+19c3ce8 frissítve

Összegzés: Always opens JavaScript links in new tab in current window instead of new window.

Kezdőlap: https://greasyfork.org/scripts/271

Licenc: MIT; https://opensource.org/licenses/MIT

Licenc: Mozilla Public License Version 2.0 (MPL 2.0); https://www.mozilla.org/MPL/2.0/

Antifeature: meghatározatlan

Source and freshness

The following figures come from the original source and are separate from activity on this site.

Original script: HTMLダイアログ無効化

Source version: 3.0.1

Last source check:

Last successful check:

Source daily installs
0
Source total installs
0
OpenUserJS install requests
0

Requests received by this site are not proof that a user completed installation.

Clicking Install records a request on this site; it does not confirm installation. Not working after install? View troubleshooting and issues

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.

Értékelés: 0