bradenbest / image-viewer

image viewer script for greasemonkey

Home Page:https://greasyfork.org/scripts/631-image-viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Image Viewer by Braden Best

Version 1.5.2

This userscript is hosted at https://greasyfork.org/scripts/631-image-viewer

Which is synced with this gist.

Usage

To use this script, inject it into any page, and RIGHT-CLICK on the image you want to view full-size

This can be accomplished by

Controls / Features

Drag 'n Drop -- mouse

while the image is "open", you can drag it around with the mouse to pan instead of scrolling

In Firefox, it's a little different. You have to click the image to toggle the dragging functionality on and off

Image controls -- mouse

There is a close button, and a full URL link at the top of the page

Clear all images -- Esc

You can press Esc to close the image without the need for clicking the close button

Refresh Queue -- Ctrl

You can press Ctrl to re-initialize the script, for when dynamically generated images don't respond to right-clicking

Resizing images -- Mouse and Arrow Keys

If you left click an image spawned by the script, and press the arrow keys, you can resize the image. Left/right for width, and UP/Down for height

Special Thanks

Special thanks to Cyberdevil for providing suggestions

  • Escape key
  • Provide Direct URL to image
  • Image should be draggable
  • Don't let it interfere with default click events
  • Various bug reports

About

image viewer script for greasemonkey

https://greasyfork.org/scripts/631-image-viewer


Languages

Language:JavaScript 97.4%Language:HTML 2.6%