您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
csdn 免登录复制
// ==UserScript== // @name csdn 复制功能 // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description csdn 免登录复制 // @author smartpro // @match *://*.csdn.net/* // @grant GM_addStyle // @license MIT License // @noframes // ==/UserScript== (function () { const btn = document.createElement('button'); btn.innerText = '选中复制' btn.id = 'fkcsdn' GM_addStyle(` #fkcsdn { position: fixed; top: 80px; left: 40px; display: inline-block; border: none; padding: 1rem 2rem; text-decoration: none; background: #0069ed; color: #ffffff; font-family: sans-serif; font-size: 1rem; cursor: pointer; text-align: center; transition: all 0.3s ease, transform 0.3s ease; border-radius: 8px; } #fkcsdn:hover, #fkcsdn:focus { background: #0053ba; } `); document.body.appendChild(btn); btn.addEventListener('click', () => { console.log(window.getSelection().toString()); navigator.clipboard.writeText(window.getSelection().toString()); }); })();