Greasy Fork is available in English.

Universal JS Injector

Runs on every single page

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

// ==UserScript==
// @name         Universal JS Injector
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Runs on every single page
// @author       You
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    run
const noop = () => {};
window.debugger = noop;
window.alert = noop;
window.confirm = () => true;
window.prompt = () => null;

// Block specific known anti-debug functions
window.devtoolsDetector = { isOpen: false };
window.disableDevtool = noop;

// Prevent redirects
const realAssign = window.location.assign;
window.location.assign = (url) => {
	console.log('Blocked redirect to:', url);
	// Uncomment to allow: realAssign.call(window.location, url);
};
    console.log("Script successfully injected on: " + window.location.href);

})();