您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在 iqdb 中使用 Ctrl + V 上传图片
当前为
// ==UserScript== // @name iqdb Ctrl + V // @name:zh iqdb Ctrl + V // @name:en iqdb Ctrl + V // @namespace http://tampermonkey.net/ // @version 0.1.1 // @description:zh 在 iqdb 中使用 Ctrl + V 上传图片 // @description:en Upload image to iqdb by Ctrl + V // @author apkipa // @match https://www.iqdb.org // @grant none // @description 在 iqdb 中使用 Ctrl + V 上传图片 // ==/UserScript== (function() { 'use strict'; function handlePaste(e) { var clipboardData, pastedData; clipboardData = e.clipboardData || window.clipboardData; pastedData = clipboardData.items[0]; if (pastedData.type.indexOf("image") !== -1) { e.stopPropagation(); e.preventDefault(); var fileInput = document.getElementById("file"); var formUpload = document.querySelectorAll("input[type=submit]")[0]; /* ? Not working here fileInput.addEventListener("change", () => { formUpload.form.submit(); }); */ fileInput.files = clipboardData.files; // Automatically submit the pasted image // (If this is not desired, comment the next line) formUpload.form.submit(); } else { console.log("Not an image, paste event propagated"); } } window.addEventListener('paste', handlePaste); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址