Universal Image Paste to Upload

Paste an image from your clipboard directly into the first available file upload input on the page.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
AnnaRoblox
Denně instalací
0
Celkem instalací
0
Hodnocení
0 0 0
Verze
1.0
Vytvořeno
18. 12. 2025
Aktualizováno
18. 12. 2025
Size
2,5 KB
Licence
MIT
Spustit na
všech stránkách

How it works
1 Clipboard Detection: It checks event.clipboardData for any item with a MIME type starting with image/.

2 The DataTransfer Object: You can't just set input.value = "path/to/file" for security reasons. Instead, we use the DataTransfer API to simulate a file being dropped onto the input.

3 Smart Targeting: The script looks for all elements. It tries to find one that is visible (width and height > 0) so it doesn't accidentally dump the image into a hidden background field.

4 Event Dispatching: After attaching the file, it manually triggers the change event. This is crucial because many sites (like Discord or GitHub) wait for that event to start the upload process.