您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fills your email on input and text fields
// ==UserScript== // @name Email filler // @namespace https://github.com/Farow/userscripts // @description Fills your email on input and text fields // @include * // @version 1.0.0 // @grant GM_setValue // @grant GM_getValue // ==/UserScript== const emails = [ '[email protected]', '[email protected]', ]; document.addEventListener('keypress', keypress); function keypress (event) { if (event.code != 'KeyE') { return; } if (!event.ctrlKey) { return; } if (event.target.tagName != 'INPUT' && event.target.tagName != 'TEXTAREA') { return; } fill_email(event.target); event.preventDefault(); } function fill_email (target) { const email = emails.shift(); /* save the selection as it gets reset when changing the input value */ const selection_start = target.selectionStart; target.value = ( /* before selection */ target.value.substring(0, selection_start) + /* replace selection */ email + /* after selection */ target.value.substring(target.selectionEnd) ); target.setSelectionRange(selection_start, selection_start + email.length); emails.push(email); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址