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) }