Picviewer Simple

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
almahmud
1日のインストール数
0
累計インストール数
0
評価
0 0 0
バージョン
1.1
作成日
2025/12/23
更新日
2025/12/23
大きさ
10.9KB
ライセンス
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.