From 93ff9a867ac959f63515aeffbec0b832afb6dbda Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Wed, 16 Jul 2025 09:12:25 +0200 Subject: [PATCH] added more scrolling preventions --- custom-injectors.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/custom-injectors.js b/custom-injectors.js index 290437b..369902b 100644 --- a/custom-injectors.js +++ b/custom-injectors.js @@ -1,12 +1,16 @@ /// disablejump.js (function() { + function fakescroll() { + console.debug("Tried to scroll using absolute coords", arguments) + } window.scroll(0, 0); HTMLElement.prototype.scrollIntoView = function() { console.debug("Tried to scroll"); }; - window.scoll = function() { - console.debug("Tried to scroll using absolute coords", arguments) - } + window.scoll = fakescroll; + window.scrollBy = fakescroll; + window.scrollByLines = fakescroll; + window.scrollByPages = fakescroll; Element.prototype.scrollIntoView = function(){ console.debug("Tried to scroll to element:", this) }