added window.scroll to the faked functions
Dieser Commit ist enthalten in:
Ursprung
e6cf9dba94
Commit
64c12b796f
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
|
@ -1,8 +1,11 @@
|
|||
/// disablejump.js
|
||||
(function() {
|
||||
document.scrollingElement.scrollIntoView();
|
||||
window.scroll(0, 0);
|
||||
HTMLElement.prototype.scrollIntoView = function() {
|
||||
console.debug("Tried to scroll");
|
||||
};
|
||||
window.scoll = function() {
|
||||
console.debug("Tried to scroll using absolute coords")
|
||||
}
|
||||
console.debug("Jump disabled");
|
||||
})();
|
||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren