diff --git a/4.2.1-User-Scripts.md b/4.2.1-User-Scripts.md deleted file mode 100644 index 1540d50..0000000 --- a/4.2.1-User-Scripts.md +++ /dev/null @@ -1,33 +0,0 @@ -some scripts... tested in [Firemonkey](https://addons.mozilla.org/firefox/addon/firemonkey/) only.

-Scripts with `@run-at document-start` don't work reliable enough with Greasemonkey (as of GM 4.9)! - ---- - -### :small_orange_diamond: window.opener be gone - - * Author: [earthlng](https://github.com/earthlng) - * Test: https://mathiasbynens.github.io/rel-noopener/ - -```js -// ==UserScript== -// @name window.opener be gone -// @description Prevents tampering with window.opener. -// @version 2.1 -// @match http://*/* -// @match https://*/* -// @exclude https://www.catalog.update.microsoft.com/DownloadDialog.aspx -// @run-at document-start -// @namespace arkenfox -// @grant GM.notification -// Keys for FM: -// @allFrames true -// @matchAboutBlank true -// ==/UserScript== - -if (window.opener !== null) { - window.opener = null; - - GM.notification('Cleared window.opener!'); - console.warn('Cleared window.opener @ ' + document.location.toString()); -} -```