EasyCSDN

这是一款提高CSDN简洁度的插件。它可以让你的CSDN学习之路变得简洁、专注、高效、畅快。主要功能是净化页面,净化99%多余元素,只展示文章正文和关联文章。

目前为 2023-11-25 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name EasyCSDN
  3. // @description 这是一款提高CSDN简洁度的插件。它可以让你的CSDN学习之路变得简洁、专注、高效、畅快。主要功能是净化页面,净化99%多余元素,只展示文章正文和关联文章。
  4. // @version 4.0
  5. // @author xcanwin
  6. // @namespace https://github.com/xcanwin/EasyCSDN/
  7. // @supportURL https://github.com/xcanwin/EasyCSDN/
  8. // @license GPL-2.0-only
  9. // @match *://blog.csdn.net/*/article/details/*
  10. // @match *://*.blog.csdn.net/article/details/*
  11. // @grant GM_addStyle
  12. // @run-at document-start
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. GM_addStyle(`
  19. .passport-login-container, /*隐藏登录提示*/
  20. .passport-login-tip-container, /*隐藏登录权益提示*/
  21. #toolbarBox, /*隐藏顶部*/
  22. .blog_container_aside, /*隐藏左边栏*/
  23. #rightAside, /*隐藏右边栏*/
  24. .csdn-side-toolbar, /*隐藏右边栏-磁吸*/
  25. .blog-footer-bottom, /*隐藏底部*/
  26. .recommend-nps-box, /*隐藏打分*/
  27. .left-toolbox /*隐藏关注*/,
  28. #blogColumnPayAdvert /*隐藏专栏收录*/,
  29. #treeSkill /*隐藏技能树*/
  30. {
  31. display: none !important;
  32. }
  33.  
  34. /*隐藏背景*/
  35. body {
  36. background: none !important;
  37. background-image: unset !important;
  38. background-color: #f5f6f7 !important;
  39. }
  40.  
  41. /*正文居中*/
  42. #mainBox {
  43. display: flex;
  44. justify-content: center;
  45. }
  46.  
  47. /*展示全屏*/
  48. #mainBox, #mainBox main {
  49. width: 100%;
  50. }
  51. .main_father.d-flex {
  52. display: unset !important;
  53. }
  54. `);
  55.  
  56. })();