您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Quick copy
// ==UserScript== // @name Clipboard Manager // @namespace https://**/* // @version 2025-07-07 // @description Quick copy // @author You // @match https://**/* // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // @license MIT // ==/UserScript== // Usage Notes // Windows/Linux // Alt+L, Ctrl-C copies LinkedIn to clipboard // Alt+M, Ctrl-C copies email to clipboard // Mac? // Meta+L, Cmd-C copies LinkedIn to clipboard // Meta+M, Cmd-C copies email to clipboard (function() { 'use strict'; function checkType(e) { if (e.key === "l") { console.log("send LinkedIn to clipboard") document.addEventListener("copy", linkedinClippy, { once: true }) } else if (e.key === "m") { console.log("send email to clipboard") document.addEventListener("copy", emailClippy, { once: true }) } } function checkAltUp(e) { if (e.key === "Alt" || e.key === "Meta") { // Check Alt/Meta up document.removeEventListener("keydown", checkType); } } function listenAltMeta(e) { if (e.key === "Alt" || e.key === "Meta") { // add event listener for email/LinkedIn document.addEventListener("keydown", checkType); } } function linkedinClippy(e) { e.clipboardData.setData('text/plain', "https://www.linkedin.com/in/yourprofile/"); e.preventDefault(); } function emailClippy(e) { e.clipboardData.setData('text/plain', "[email protected]"); e.preventDefault(); } document.addEventListener("keydown", listenAltMeta); document.addEventListener("keyup", checkAltUp); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址