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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
573dave2
今日安裝
0
安裝總數
6
評價
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