Greasy Fork is available in English.

CSDN Enable Right Click & Copy

绕过csdn烦人的复制限制

اعتبارا من 11-07-2023. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name          CSDN Enable Right Click & Copy
// @namespace     Absolute Right Click
// @description   绕过csdn烦人的复制限制
// @author        DM
// @version       1.0.0
// @match         *://*.csdn.net/*
// @grant         GM_registerMenuCommand
// @license       BSD
// ==/UserScript==

(function() {
   var follow_text = document.getElementsByClassName('follow-text')[0];
   if (follow_text && follow_text.parentElement) {
       document.querySelector("#article_content").removeAttribute("style");
       follow_text.parentElement.parentElement.removeChild(follow_text.parentElement);
       var hide_article_box = document.getElementsByClassName(' hide-article-box')[0];
       hide_article_box.parentElement.removeChild(hide_article_box);
   }
   window.oncontextmenu = document.oncontextmenu = document.oncopy = null;
   [...document.querySelectorAll('body')].forEach(dom => {dom.outerHTML = dom.outerHTML});
   [...document.querySelectorAll('body, body *')].forEach(dom => {
       ['onselect', 'onselectstart', 'onselectend', 'ondragstart', 'ondragend', 'oncontextmenu', 'oncopy'].forEach(ev => dom.removeAttribute(ev));
       dom.style['user-select'] = 'auto';
   });
})();