1
0
Fork 0

added more scrolling preventions

Dieser Commit ist enthalten in:
Sebastian Tobie 2025-07-16 09:12:25 +02:00
Ursprung d2870aa067
Commit 93ff9a867a

Datei anzeigen

@ -1,12 +1,16 @@
/// disablejump.js /// disablejump.js
(function() { (function() {
function fakescroll() {
console.debug("Tried to scroll using absolute coords", arguments)
}
window.scroll(0, 0); 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() { window.scoll = fakescroll;
console.debug("Tried to scroll using absolute coords", arguments) window.scrollBy = fakescroll;
} window.scrollByLines = fakescroll;
window.scrollByPages = fakescroll;
Element.prototype.scrollIntoView = function(){ Element.prototype.scrollIntoView = function(){
console.debug("Tried to scroll to element:", this) console.debug("Tried to scroll to element:", this)
} }