您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy current website url by pressing yy
当前为
// ==UserScript== // @name Copy current url // @namespace https://gf.qytechs.cn/en/users/901750-gooseob // @version 1.0.4 // @description Copy current website url by pressing yy // @author GooseOb // @license MIT // @match *://*/* // ==/UserScript== (function () { const isInput = (element) => { const tagName = element.tagName.toLowerCase(); return ( tagName === "input" || tagName === "textarea" || element.isContentEditable ); }; const listenForDoublePress = (check, action) => { let timeout = 0; document.addEventListener("keyup", (e) => { if (check(e)) { if (timeout) { action(); clearTimeout(timeout); timeout = 0; } else { timeout = setTimeout(() => { timeout = 0; }, 1000); } } }); }; listenForDoublePress( (e) => e.key === "y" && !isInput(e.target), () => navigator.clipboard.writeText(window.location.href), ); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址