tumpio / gmscripts

tumpio's usercripts
https://openuserjs.org/users/tumpio
MIT License
61 stars 28 forks source link

[Endless Google] Scroll bug #10

Closed Draxcyn closed 5 years ago

Draxcyn commented 7 years ago

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

joeytwiddle commented 6 years ago

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...

tumpio commented 6 years ago

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

as a replacement for Firefox.