remove overscroll

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

< Отзив за remove overscroll

Отзив: Лошо - скриптът не работи

§
Публикуван на: 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();
§
Публикуван на: 21.04.2017

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

Публикувайте отговор

Влезте, за да публикувате отговор.