Google Drive: Open Direct Image from /view

Adds a floating “Open Image” button on Google Drive file preview pages (those ending in /view). Click it to open the full-size direct image URL in a new tab. Right-click and comments remain fully functional.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
573dave2
日安装量
0
总安装量
7
评分
0 0 0
版本
1.3.0
创建于
2025-10-09
更新于
2025-10-09
大小
4.2 KB
许可证
MIT
适用于

Google Drive: Open Direct Image from /view

This userscript adds a small floating “Open Image” button on Google Drive’s file preview pages (URLs ending in /view). When viewing an image file, click the button to open the actual full-size image URL (e.g., the =s2560-rw-v1 link) in a new tab — perfect for saving, copying, or using the image directly.

✨ Features

Works on all Drive /view URLs automatically.

Detects and opens the highest available resolution (=sXXXX-rw-v1).

Preserves Drive’s normal right-click and “Add Comment” behavior.

No unsafe DOM injection — Trusted Types compliant.

Extremely lightweight (under 3 KB).

🧠 How it works

The script watches for Drive file viewer URLs.

When detected, it fetches the /preview version of the page to extract the real image link.

Then it opens that link directly in a new tab via GM_openInTab().

💡 Usage

Install the script using Tampermonkey .

Open any Google Drive image (ending in /view).

Click “Open Image” → the real image loads in a new tab.

🛠 Known limitations

Works for image files only (JPEG, PNG, WEBP, etc.).

Won’t help with PDFs or Docs/Sheets.

If your Drive has unusual sharing restrictions, the preview may not expose a public image URL.

📜 License: MIT Author: 573dave2 Version: 1.3.0