ScrollToY

By Henrik N Last update Apr 12, 2008 — Installed 591 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 8 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Henrik N Script's Author

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.

 
Henrik N Script's Author

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

 
no_master User

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)?

 
Henrik N Script's Author

Thanks, Johan. Fixed.

 
Johan Sundström Scriptwright

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

 
Johan Sundström Scriptwright

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());
};

 
matrixik Scriptwright

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

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

Excellent.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel