added more scrolling preventions
Dieser Commit ist enthalten in:
Ursprung
d2870aa067
Commit
93ff9a867a
1 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
|
@ -1,12 +1,16 @@
|
||||||
/// disablejump.js
|
/// disablejump.js
|
||||||
(function() {
|
(function() {
|
||||||
|
function fakescroll() {
|
||||||
|
console.debug("Tried to scroll using absolute coords", arguments)
|
||||||
|
}
|
||||||
window.scroll(0, 0);
|
window.scroll(0, 0);
|
||||||
HTMLElement.prototype.scrollIntoView = function() {
|
HTMLElement.prototype.scrollIntoView = function() {
|
||||||
console.debug("Tried to scroll");
|
console.debug("Tried to scroll");
|
||||||
};
|
};
|
||||||
window.scoll = function() {
|
window.scoll = fakescroll;
|
||||||
console.debug("Tried to scroll using absolute coords", arguments)
|
window.scrollBy = fakescroll;
|
||||||
}
|
window.scrollByLines = fakescroll;
|
||||||
|
window.scrollByPages = fakescroll;
|
||||||
Element.prototype.scrollIntoView = function(){
|
Element.prototype.scrollIntoView = function(){
|
||||||
console.debug("Tried to scroll to element:", this)
|
console.debug("Tried to scroll to element:", this)
|
||||||
}
|
}
|
||||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren