18 Zeilen
572 B
JavaScript
18 Zeilen
572 B
JavaScript
/// 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 = fakescroll;
|
|
window.scrollBy = fakescroll;
|
|
window.scrollByLines = fakescroll;
|
|
window.scrollByPages = fakescroll;
|
|
Element.prototype.scrollIntoView = function(){
|
|
console.debug("Tried to scroll to element:", this)
|
|
}
|
|
console.debug("Jump disabled");
|
|
})();
|