From 0ffe951850e99abec081cf84c9a0a1f2692a54e7 Mon Sep 17 00:00:00 2001 From: Thorin-Oakenpants Date: Sat, 27 Nov 2021 05:53:21 +0000 Subject: [PATCH] Destroyed 4.2.1 User Scripts (markdown) --- 4.2.1-User-Scripts.md | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 4.2.1-User-Scripts.md 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()); -} -```