tumpio / gmscripts

tumpio's usercripts

Home Page:https://openuserjs.org/users/tumpio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Endless Google] Scroll bug

Draxcyn opened this issue · comments

Script works but scrolls back to top of page upon clicking a google result

Yeah that bugs me too. But it is easy to disable it. Just comment out these lines, or remove them:

    window.addEventListener("beforeunload", function () {
        window.scrollTo(0, 0);
    }, false);

I'm not sure what that code is useful for. It's obviously intended to scroll the page to the top when leaving it! But I'm not sure why...

You can try my https://addons.mozilla.org/fi/firefox/addon/google-auto-load/

as a replacement for Firefox.