Created
October 28, 2025 02:29
-
-
Save Ap0dexMe0/ebac42621db301692cfa3d40a6aae42d to your computer and use it in GitHub Desktop.
Tampermonkey script specifically designed to bypass this anti-inspect protection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Bypass Return of Warpath Protection | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.3 | |
| // @description Bypass anti-inspect and devtools detection on returnofwarpath.com | |
| // @author Ap0dexMe0 | |
| // @match https://returnofwarpath.com/* | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| document.addEventListener('contextmenu', function(e) { | |
| e.stopPropagation(); | |
| }, true); | |
| document.addEventListener('keydown', function(e) { | |
| if (e.keyCode === 123) { | |
| e.stopPropagation(); | |
| return true; | |
| } | |
| if (e.ctrlKey && e.shiftKey && e.keyCode === 73) { | |
| e.stopPropagation(); | |
| return true; | |
| } | |
| if (e.ctrlKey && e.shiftKey && e.keyCode === 74) { | |
| e.stopPropagation(); | |
| return true; | |
| } | |
| if (e.ctrlKey && e.keyCode === 85) { | |
| e.stopPropagation(); | |
| return true; | |
| } | |
| if (e.ctrlKey && e.keyCode === 83) { | |
| e.stopPropagation(); | |
| return true; | |
| } | |
| if (e.ctrlKey && e.shiftKey && e.keyCode === 67) { | |
| e.stopPropagation(); | |
| return true; | |
| } | |
| }, true); | |
| Object.defineProperty(window, 'outerWidth', { | |
| get: function() { return window.innerWidth; } | |
| }); | |
| Object.defineProperty(window, 'outerHeight', { | |
| get: function() { return window.innerHeight; } | |
| }); | |
| const originalSetInterval = window.setInterval; | |
| window.setInterval = function(callback, delay) { | |
| if (callback && callback.toString().includes('outerWidth') || | |
| callback && callback.toString().includes('outerHeight') || | |
| callback && callback.toString().includes('threshold')) { | |
| return 0; | |
| } | |
| return originalSetInterval.call(this, callback, delay); | |
| }; | |
| document.addEventListener('selectstart', function(e) { | |
| e.stopPropagation(); | |
| }, true); | |
| document.addEventListener('copy', function(e) { | |
| e.stopPropagation(); | |
| }, true); | |
| const originalClear = console.clear; | |
| console.clear = function() { | |
| return; | |
| }; | |
| function removeProtectionScript() { | |
| const scripts = document.getElementsByTagName('script'); | |
| for (let script of scripts) { | |
| if (script.textContent.includes('ANTI INSPECT ELEMENT PROTECTION') || | |
| script.textContent.includes('devtoolsDetector') || | |
| script.textContent.includes('outerWidth - window.innerWidth')) { | |
| script.remove(); | |
| } | |
| } | |
| } | |
| if (document.readyState === 'loading') { | |
| document.addEventListener('DOMContentLoaded', removeProtectionScript); | |
| } else { | |
| removeProtectionScript(); | |
| } | |
| setInterval(removeProtectionScript, 1000); | |
| function restoreContent() { | |
| const blockedDiv = document.querySelector('div[style*="display:flex"][style*="align-items:center"][style*="justify-content:center"]'); | |
| if (blockedDiv && blockedDiv.innerHTML.includes('Access Denied')) { | |
| document.body.innerHTML = '<div>Content restored. You can now use developer tools.</div>'; | |
| } | |
| } | |
| setInterval(restoreContent, 500); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment