From 64c12b796f95187858d2e114f7d79e71379a4e5d Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Wed, 28 May 2025 10:09:49 +0200 Subject: [PATCH] added window.scroll to the faked functions --- custom-injectors.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom-injectors.js b/custom-injectors.js index c4523ed..25816d5 100644 --- a/custom-injectors.js +++ b/custom-injectors.js @@ -1,8 +1,11 @@ /// disablejump.js (function() { - document.scrollingElement.scrollIntoView(); + window.scroll(0, 0); HTMLElement.prototype.scrollIntoView = function() { console.debug("Tried to scroll"); }; + window.scoll = function() { + console.debug("Tried to scroll using absolute coords") + } console.debug("Jump disabled"); })();