通用圖片貼上支援

支援在各類網站中將剪貼簿圖片直接貼到檔案上傳欄位。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Murasame-chan
今日安裝
1
安裝總數
1
評價
0 0 0
版本
1.0.0
建立日期
2026-05-27
更新日期
2026-05-27
尺寸
11.3 KB
授權條款
MIT
腳本執行於
所有網站

Feature Description

This script enables file upload fields on web pages to support direct pasting of images from the clipboard.

After you have copied an image or taken a screenshot, simply press Ctrl + V / Cmd + V on any website that supports file uploads; the script will attempt to automatically insert the image from your clipboard into the page's <input type="file"> upload control.

Usage Instructions

  1. Install and enable the script.
  2. Open any website that contains a file upload control.
  3. Copy an image, or use your system's screenshot tool to capture an image to the clipboard.
  4. Press Ctrl + V / Cmd + V while on the web page.
  5. If an available file upload field exists on the page, the image will be automatically inserted into the upload control.

Matching Logic

The script searches for the target upload control in the following order:

  1. The currently focused file upload field.
  2. The first visible file upload field found on the page.
  3. If no visible upload fields are found, the first hidden upload field found on the page is used as a fallback.

Once the image has been inserted, the script triggers a change event, allowing the website's own upload logic to detect the file change.

Privacy Statement

The script itself does not actively upload, transmit, or store any image data.

It only reads the image currently held in your clipboard when you perform a paste action, and then hands that image over to the file upload control within the current web page. Whether or not the image is subsequently uploaded depends entirely on the target website's own upload logic.

Important Notes

  • Only processes image content found in the clipboard.
  • Does not interfere with the pasting of ordinary text.
  • Primarily designed for websites that utilize standard <input type="file"> elements.
  • May not function correctly on websites using entirely custom upload components, cross-origin iframes, specialized editors, or those that intercept paste events.
  • The script outputs debugging logs to the browser's developer console to assist in troubleshooting issues related to pasting and upload control matching.

Applicable Scenarios

  • Directly pasting screenshots when posting on forums.
  • Quickly uploading images within online customer support interfaces or ticketing systems.
  • Rapidly adding images to Markdown editors, blog administration dashboards, or image hosting pages.
  • Any scenario requiring the frequent uploading of clipboard images to a web page.