Git Image Preview (Ctrl/Option Click)

按住 Ctrl/Option 点击 GitHub 页面中的图片,即可在当前页面预览原图,支持滚轮缩放

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
stuarthua
Dziennych instalacji
0
Wszystkich instalacji
2
Oceny
0 0 0
Wersja
1.0.2
Utworzono
13-04-2025
Zaktualizowano
13-04-2025
Rozmiar
2,96 KB
Licencja
MIT
Dotyczy

Git Image Preview 图片预览

🖼️ 按住 Ctrl/Option 点击 GitHub 页面中的图片,即可在当前页面预览原图,支持滚轮缩放。
普通点击仍保持 GitHub 的默认行为(跳转图片链接)。


✨ 功能特色

  • 支持 GitHub README 中的图片点击预览
  • 支持放大/缩小(滚轮缩放)
  • 按住 Ctrl(Windows)或 Option ⌥(Mac)点击图片触发预览
  • 保持默认点击行为,除非你主动按下预览热键
  • 不影响 GitHub 页面原有体验

📦 安装脚本

👉 点击安装:GreasyFork 脚本地址

或者复制以下地址添加到油猴插件中:

https://raw.githubusercontent.com/stuarthua/git-image-preview/main/GitHubImagePreview.user.js


🖥️ 使用说明

  1. 安装 Tampermonkey 插件
  2. 安装本脚本
  3. 浏览任意 GitHub 仓库
  4. 按住 Ctrl(Windows)或 Option ⌥(Mac)点击 README 中的图片,即可弹出预览窗口

测试

测试图片


协议

  • License: MIT

欢迎提出 Issue 或 PR!