Creates an adaptive canvas to enable zoom & pan for images on Danbooru (when viewing original) using scroll & drag, and click to set zoom to 1x/reset zoom
As of
Enhance your image viewing experience on Danbooru! This script allows you to zoom and pan with your mouse when viewing a full-size original image. It sets the image within a canvas based on your browser size, such that it can be fully viewed without any cut off. The image will initially be scaled down to fill the canvas (if image is larger), or shown at original size (if image is smaller).
There's also an option in the script (can be toggled in your script manager menu) to allow you to disable the panning feature, if you prefer to keep the default image dragging behavior at all zoom levels. Note that the image is always draggable at the initial zoom level, regardless of this setting.