Greasy Fork is available in English.

copy CSDN code

free copy csdn code !

  1. // ==UserScript==
  2. // @name copy CSDN code
  3. // @namespace https://www.beihuolang.net
  4. // @version 0.1
  5. // @description free copy csdn code !
  6. // @author superhan
  7. // @match https://blog.csdn.net/*
  8. // @icon https://g.csdnimg.cn/static/logo/favicon32.ico
  9. // @license AGPL-3.0
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. "use strict";
  15. let codes = document.querySelectorAll("code");
  16. codes.forEach((c) => {
  17. c.contentEditable = "true";
  18. });
  19. document.designMode = "off";
  20. })();