Pure_CSDN

净化CSDN

As of 2023-04-18. See the latest version.

  1. // ==UserScript==
  2. // @name Pure_CSDN
  3. // @namespace https://blog.csdn.net/*
  4. // @match https://blog.csdn.net/*
  5. // @grant none
  6. // @version 0.5
  7. // @author 13号寄信人
  8. // @description 净化CSDN
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14. const css =
  15. `
  16. .blog_container_aside {
  17. display: none !important;
  18. }
  19. #rightAside {
  20. display: none !important;
  21. }
  22. .csdn-side-toolbar {
  23. display: none !important;
  24. }
  25. #mainBox {
  26. display: flex !important;
  27. justfy-content: center !important;
  28. }
  29. `
  30.  
  31. //------------------------移动端------------------------
  32. let mobileAll = []
  33. mobileAll.push(...document.getElementsByClassName('guide-box'))
  34. for (let i = 0; i < mobileAll.length; i++) {
  35. let self = mobileAll[i]
  36. self.parentElement.removeChild(self)
  37. }
  38. })();