Универсална поддръжка за поставяне на изображения

Позволява директно поставяне на изображения в полета за качване на файлове в различни сайтове.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да инсталирате разширение, като например Tampermonkey .

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

Автор
Murasame-chan
Инсталации дневно
1
Инсталации общо
1
Рейтинг
0 0 0
Версия
1.0.0
Създаден
27.05.2026
Обновен
27.05.2026
Размер
10 КБ
Лиценз
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.