1
0
Fork 0

added window.scroll to the faked functions

Dieser Commit ist enthalten in:
Sebastian Tobie 2025-05-28 10:09:49 +02:00
Ursprung e6cf9dba94
Commit 64c12b796f

Datei anzeigen

@ -1,8 +1,11 @@
/// disablejump.js /// disablejump.js
(function() { (function() {
document.scrollingElement.scrollIntoView(); window.scroll(0, 0);
HTMLElement.prototype.scrollIntoView = function() { HTMLElement.prototype.scrollIntoView = function() {
console.debug("Tried to scroll"); console.debug("Tried to scroll");
}; };
window.scoll = function() {
console.debug("Tried to scroll using absolute coords")
}
console.debug("Jump disabled"); console.debug("Jump disabled");
})(); })();