Image resizing for danbooru-based image boards

By SD-DAken Last update May 28, 2009 — Installed 243 times.
Script Summary:
(was: konachan image resizing) Resize an image by clicking on it + automatic scrolling to the clicked position...

This script has no discussions.

start the discussion

This script has no reviews.

This userscript automatically resizes images so they fit into the screen.
If you want to see the full-sized image just click on the image.
The image will be displayed full-sized then and additionally the window will scroll to the position you clicked on the image.

Notes:

-To turn autoresizing off switch "autoresize" to false. (on by default)
-If you always want to load the original image switch "alwaysoriginal" to true. (off by default, because it can cause high traffic)

Updates:

Update (28th May 2009):
-Feature: The userscript uses a magnifying glass cursor now.
-Bugfix: Notes were misplaced if autoresizing was switched on. Now the notes are repositioned after the image was resized, so that they will always be shown at the right position.
-Bugfix: If the image is small (i.e. resizing doesn't do anything) there was still a pointer cursor displayed. Now magnifying glass cursors are used and only shown if resizing actually does something.

Update (12th Apr 2009):
-Bugfix: switching to "fit to screen" scrolls to the top left angle now, so that the whole image is visible.
(If you switch to "full resolution" you usually do this to view details, therefore the script scrolls to the clicked position, because that is the spot you're interested in at the moment. But if you switch back to "fit to screen" you want to view the whole image again and therefore the script shouldn't scroll to the clicked position, but to the top left angle so that the whole image is visible...)

Update (5th Apr 2009):
-Completely rewritten
-Works now on all danbooru-based image boards
-Added possibility to turn autoresizing off (see above)
-Added possibility to load the original image automatically (see above)

Update (11th Feb 2009):
-Added support for konachan.net; now it works on both konachan.com and konachan.net