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

Позволяет вставлять изображения напрямую в поля загрузки файлов на разных сайтах.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey, Greasemonkey или Violentmonkey.

Для установки этого скрипта вам необходимо установить расширение, такое как Tampermonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Violentmonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Userscripts.

Чтобы установить этот скрипт, сначала вы должны установить расширение браузера, например Tampermonkey.

Чтобы установить этот скрипт, вы должны установить расширение — менеджер скриптов.

(у меня уже есть менеджер скриптов, дайте мне установить скрипт!)

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

(у меня уже есть менеджер стилей, дайте мне установить скрипт!)

Автор
Murasame-chan
Установок в день
0
Всего установок
1
Оценки
0 0 0
Версия
1.0.0
Создано
27.05.2026
Обновлено
27.05.2026
Размер
11,3 КБ
Лицензия
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.