Greasy Fork is available in English.
清除在复制的时候添加的一些个人信息,目前支持所有的网站,包括掘金,知乎、简书、csdn、实验楼等
当前为
// ==UserScript==
// @name 剪贴板净化助手
// @namespace https://github.com/Abdurihim
// @version 0.1
// @description 清除在复制的时候添加的一些个人信息,目前支持所有的网站,包括掘金,知乎、简书、csdn、实验楼等
// @author Abdurihim
// @match *://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant none
// @license GPL-3.0 License
// ==/UserScript==
(function () {
"use strict";
// Your code here...
function handleCopy(e) {
e.stopPropagation();
const copytext = window.getSelection();
const clipdata = e.clipboardData || window.clipboardData;
if (clipdata) {
clipdata.setData("Text", copytext);
}
}
document.addEventListener("copy", handleCopy, true);
})();