您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy every word from the clipboard into multiple consecutive input fields
当前为
// ==UserScript== // @name Multi paste // @version 0.3 // @description Copy every word from the clipboard into multiple consecutive input fields // @author You // @match https://*/* // @icon // @grant none // @namespace https://greasyfork.org/users/948386 // ==/UserScript== (async function() { 'use strict'; window.addEventListener("keydown", (e) => multiPaste( e)); })(); const multiPaste = async (e) => { if (e.ctrlKey && e.key === "p") { e.preventDefault() const text = await navigator.clipboard.readText(); let arr = text.split(' '); let inputs = document.querySelectorAll('input[type="text"]') for (let i = 0; i < arr.length; i++) { if (i == inputs.length) break; inputs[i].value = arr[i]; //console.log(inputs[i]) } } }