CSDN Allow Copy

移除CSDN复制限制

La data de 22-05-2024. Vezi ultima versiune.

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.

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

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

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

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

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

  1. // ==UserScript==
  2. // @name CSDN Allow Copy
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-05-20
  5. // @description 移除CSDN复制限制
  6. // @author Mushr00mZhang
  7. // @match https://blog.csdn.net/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. // 创建style标签,添加用户选择样式。
  16. const style = document.createElement('style');
  17. style.innerHTML = `
  18. body #content_views pre {
  19. user-select: auto;
  20. }
  21. body #content_views pre code {
  22. user-select: auto;
  23. }
  24. `;
  25. document.head.appendChild(style);
  26. if (window.$) {
  27. window.$("#content_views").unbind("copy");
  28. }
  29. window.csdn.copyright.textData = '';
  30. })();