Commits vergleichen
2 Commits
93ff9a867a
...
456b0c74be
Autor | SHA1 | Datum | |
---|---|---|---|
456b0c74be | |||
a93a82ee4f |
1 geänderte Dateien mit 8 neuen und 9 gelöschten Zeilen
|
@ -1,18 +1,17 @@
|
|||
/// disablejump.js
|
||||
(function() {
|
||||
(function () {
|
||||
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);
|
||||
HTMLElement.prototype.scrollIntoView = function() {
|
||||
console.debug("Tried to scroll");
|
||||
};
|
||||
window.scoll = fakescroll;
|
||||
|
||||
window.scroll = fakescroll;
|
||||
window.scrollBy = fakescroll;
|
||||
window.scrollByLines = fakescroll;
|
||||
window.scrollByPages = fakescroll;
|
||||
Element.prototype.scrollIntoView = function(){
|
||||
console.debug("Tried to scroll to element:", this)
|
||||
}
|
||||
HTMLElement.prototype.scrollIntoView = fakescrollintoview;
|
||||
console.debug("Jump disabled");
|
||||
})();
|
||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren