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
(function () {
(function() {
function fakescroll() {
console.debug("Tried to scroll using absolute coords", arguments);
}
function fakescrollintoview() {
console.debug("Tried to scroll to element:", this);
console.debug("Tried to scroll using absolute coords", arguments)
}
window.scroll(0, 0);
window.scroll = fakescroll;
HTMLElement.prototype.scrollIntoView = function() {
console.debug("Tried to scroll");
};
window.scoll = fakescroll;
window.scrollBy = fakescroll;
window.scrollByLines = fakescroll;
window.scrollByPages = fakescroll;
HTMLElement.prototype.scrollIntoView = fakescrollintoview;
Element.prototype.scrollIntoView = function(){
console.debug("Tried to scroll to element:", this)
}
console.debug("Jump disabled");
})();