fuck-csdn

去你妈的老子要复制粘贴

As of 2021-10-26. See the latest version.

  1. // ==UserScript==
  2. // @name fuck-csdn
  3. // @namespace https://blog.csdn.net/
  4. // @version 0.1
  5. // @description 去你妈的老子要复制粘贴
  6. // @author clarkqwq
  7. // @match https://blog.csdn.net/*
  8. // @grant none
  9. // @license MIT
  10. // @supportURL https://github.com/ClarkQAQ/fuck-csdn
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. let tags = ["pre", "code"];
  17. const style = "webkit-user-select: auto;user-select: auto;"
  18.  
  19. for (let i = 0; i < tags.length; i++) {
  20. let d = document.getElementsByTagName(tags[i]);
  21. for(let j = 0; j < d.length; j++) {
  22. d[j].setAttribute("style", style)
  23. }
  24. }
  25. })();