1
0
Fork 0

Commits vergleichen

..

Keine gemeinsamen Commits. „456b0c74bec61b4a5380f88e0a8bbdb4729ba74c“ und „93ff9a867ac959f63515aeffbec0b832afb6dbda“ haben vollständig unterschiedliche Historien.

Datei anzeigen

@ -1,17 +1,18 @@
/// disablejump.js /// disablejump.js
(function() { (function() {
function fakescroll() { function fakescroll() {
console.debug("Tried to scroll using absolute coords", arguments); console.debug("Tried to scroll using absolute coords", arguments)
}
function fakescrollintoview() {
console.debug("Tried to scroll to element:", this);
} }
window.scroll(0, 0); window.scroll(0, 0);
HTMLElement.prototype.scrollIntoView = function() {
window.scroll = fakescroll; console.debug("Tried to scroll");
};
window.scoll = fakescroll;
window.scrollBy = fakescroll; window.scrollBy = fakescroll;
window.scrollByLines = fakescroll; window.scrollByLines = fakescroll;
window.scrollByPages = fakescroll; window.scrollByPages = fakescroll;
HTMLElement.prototype.scrollIntoView = fakescrollintoview; Element.prototype.scrollIntoView = function(){
console.debug("Tried to scroll to element:", this)
}
console.debug("Jump disabled"); console.debug("Jump disabled");
})(); })();