Commits vergleichen
Keine gemeinsamen Commits. „456b0c74bec61b4a5380f88e0a8bbdb4729ba74c“ und „93ff9a867ac959f63515aeffbec0b832afb6dbda“ haben vollständig unterschiedliche Historien.
456b0c74be
...
93ff9a867a
1 geänderte Dateien mit 9 neuen und 8 gelöschten Zeilen
|
@ -1,17 +1,18 @@
|
|||
/// disablejump.js
|
||||
(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");
|
||||
})();
|
||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren