Picviewer Simple

Simple image viewer — hover icon or double click opens a minimal zoom+rotate viewer.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
almahmud
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
0
คะแนน
0 0 0
เวอร์ชัน
1.1
สร้างเมื่อ
23-12-2025
อัปเดตเมื่อ
23-12-2025
Size
10.9 กิโลไบต์
สัญญาอนุญาต
GPL-2.0
ปรับใช้กับ
ไซต์ทั้งหมด

Picviewer Simple

Install Link: GreasyFork - Picviewer Simple


Short Summary

Picviewer Simple is a lightweight userscript designed to enhance your image viewing experience. It adds a small magnifier icon over every <img> element when you hover your mouse over it. Clicking the icon opens a streamlined viewer where you can zoom, rotate, and reset the image. The controls (zoom in/out, rotate left/right, reset, close) are always pinned to the top for easy access.


Installation

  1. Install a userscript manager like Tampermonkey or Greasemonkey for your browser.
  2. Go to the GreasyFork link and click "Install this script".
  3. Alternatively, create a new userscript in your manager and paste the code from picviewer-simple.user.js.
  4. Reload your tabs. Hover over any image to see the magnifier icon and click it to open the viewer.

Features

  • Hover-Triggered Icon: A magnifier icon appears on every <img> element (no site-specific hacks needed).
  • Flexible Activation: Open the viewer by clicking the icon or double-clicking the image.
  • Comprehensive Controls:
  • Zoom: via buttons or mouse wheel.
  • Rotate: Left or right using dedicated buttons.
  • Persistent UI: Controls stay on top (z-index managed), so they remain clickable even when the image is zoomed or rotated.

  • Keyboard Shortcuts:

  • Esc: Close viewer

  • + / -: Zoom in/out

  • [ / ]: Rotate left/right

  • 0: Reset view


Customization

You can easily tweak the script's appearance by modifying these values at the top of the code:

  • ICON_SIZE: Change the size of the magnifier icon (px).
  • RIGHT_OFFSET: Adjust the icon's distance from the right edge (px).
  • ICON_RAISE_PX: Adjust the icon's height from the bottom corner (px).

Notes

  • No Facebook Hacks: This script intentionally avoids Facebook-specific workarounds to remain lightweight. double click option is still working.
  • License: Distributed under the GPL-2.0 license.