NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Make i2ocr.com get images from clipboard
// @namespace http://tampermonkey.net/
// @version 2025-06-04
// @description Adds ability to paste images for recognition from the clipboard
// @author Nexus <artem.nexus94@gmail.com>
// @match https://www.i2ocr.com/free-online-russian-ocr
// @icon https://www.google.com/s2/favicons?sz=64&domain=i2ocr.com
// @grant none
// @updateURL https://openuserjs.org/meta/Nexus/Make_i2ocr.com_get_images_from_clipboard.meta.js
// @downloadURL https://openuserjs.org/install/Nexus/Make_i2ocr.com_get_images_from_clipboard.user.js
// @copyright 2025, Nexus (https://openuserjs.org/users/Nexus)
// @license MIT
// ==/UserScript==
(function() {
'use strict';
document.addEventListener('paste', function (e) {
var input = document.getElementsByName('i2ocr_uploadedfile');
if (!input.length) {
return;
}
input = input[0];
input.files = e.clipboardData.files;
input.dispatchEvent(new Event('change', {bubbles: true}));
});
})();