remove overscroll

Disables the overscroll to homepage feature on spiegel.de and sueddeutsche.de

< Valutazione su remove overscroll

Recensione: Male - lo script non funziona

§
Pubblicato: 12/11/2015

Proposed fix to properly remove overscrolling on spiegel.de

The current script as of v0.1 does not remove overscrolling for me on spiegel.de.
I’m using Chrome v46.0.2490.86 on OS X 10.10.5.

To fix the issue, I suggest disabling the overscrolling handler altogether:

var removeScrollingHandler = function() {
    var $ = unsafeWindow.jQuery;
    if ($) {
        var events = $._data(unsafeWindow, 'events');
        if (events && events.scroll) {
            $(unsafeWindow).unbind("scroll.spArticleOverscroll");
            GM_log('Scrolling event handler removed');
        }
    }
};

jQuery(function ($) {
    removeScrollingHandler();
    removeScroller();
});
removeScroller();
§
Pubblicato: 21/04/2017

After all these years: still works like a charm.
Thanks.

Pubblica risposta

Accedi per pubblicare una risposta.