Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

ScrollToY

Automatically scrolls to some user-specified vertical position (per site) on page load, to facilitate browsing e.g. image galleries with big headers.

To configure the vertical position, scroll there and run javascript:GM_setY(); in the address bar, ideally as a bookmarklet with the keyword "y".

The position is saved per host, ignoring www. ? so setting a position at www. example.com/foo will scroll there when visiting example.com/bar, but not two.example.com/foo.






1 point
login to vote
Henrik N script's author
Posted Apr 12, 2008

More specifically, Johan's fix handles this case:

You intend to scroll 500 pixels down. But when the DOM loads the page is only 200 pixels high.

Before the fix, you'd scroll to the 200 pixel mark. With the fix, the script notices the discrepancy and adjusts the scroll when all images have loaded.

1 point
login to vote
Henrik N script's author
Posted Apr 12, 2008

Incorporated a fix from Johan Sundström that accounts for images loading and shifting the page.

1 point
login to vote
no_master user
Posted Mar 16, 2008

Very clever script this is...
It works for me on your page (http://henrik.nyh.se/2007/01/)
It also works for me on google.com and images.google.com

But when trying on the example site you give, it doesn't work for me: http://www.fz.se/bilder/?id=60301

How come? Why doesn't the script work on all sites?
And it should work on the example link, cause you say so in the description (on your website)?
Is it because the example site has been changed since release of the thread (on your website)?

1 point
login to vote
Henrik N script's author
Posted Jan 30, 2008

Thanks, Johan. Fixed.

1 point
login to vote
Johan Sundström scriptwright
Posted Jan 30, 2008

(This script is pretty much required for reading http://www.shamusyoung.com/twentysidedtale/?p=612 for any stretch of time. :-)

1 point
login to vote
Johan Sundström scriptwright
Posted Jan 30, 2008

You probably want to 0.7 fix (http://wiki.greasespot.net/0.7.20080121.0_compa...) this script into:

unsafeWindow.GM_setY = function() {
        ys[host] = window.pageYOffset;
        window.setTimeout(GM_setValue, 0, "ys", ys.toSource());
      };

1 point
login to vote
matrixik user
Posted Jan 2, 2008

You can add it as bookmark:
Name: ScrollToY
Address: javascript:GM_setY()

To configure the vertical position, scroll there and click bookmark.

Excellent.

You could comment on this script if you were logged in.