油猴脚本-CSDN

本脚本用于绕过CSDN网站未登录用户复制限制。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// ==UserScript==
// @name 取消复制限制
// @namespace http://tampermonkey.net/
// @version 2024-11-14
// @description try to take over the world!
// @author You
// @match https://**.csdn.net/**
// @icon https://www.google.com/s2/favicons?sz=64&domain=csdn.net
// @grant none
// ==/UserScript==

(function() {
'use strict';
const styleDom = document.createElement('style');
styleDom.textContent = `
#content_views pre code {
user-select: text !important;
}
`;
document.head.appendChild(styleDom);
})();