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