forked from AirBashX/UserScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoveSuffix.user.js
More file actions
40 lines (36 loc) · 1009 Bytes
/
RemoveSuffix.user.js
File metadata and controls
40 lines (36 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ==UserScript==
// @name 移除复制后缀
// @version 1.0.3
// @namespace airbash/RemoveSuffix
// @homepage https://github.com/AirBashX/UserScript
// @author airbash
// @description 移除复制后缀,手机、电脑全平台通用,长期维护:CSDN、简书、掘金、知乎专栏、B站专栏、力扣
// @match *://*.csdn.net/*
// @match *://*.juejin.cn/*
// @match *://*.jianshu.com/*
// @match *://www.zhihu.com/*
// @match *://www.bilibili.com/read/*
// @match *://leetcode.cn/*
// @run-at document-start
// @grant none
// @license GPL-3.0
// ==/UserScript==
(function () {
"use strict";
function copy() {
document.addEventListener(
"copy",
function (event) {
event.stopPropagation();
},
true
);
}
function userSelect() {
let style = document.createElement("style");
style.append("*{user-select:auto !important}");
document.head.append(style);
}
copy();
userSelect();
})();