EasyCSDN

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

Verze ze dne 25. 11. 2023. Zobrazit nejnovější verzi.

  1. // ==UserScript==
  2. // @name EasyCSDN
  3. // @description 这是一款提高CSDN简洁度的插件。它可以让你的CSDN学习之路变得简洁、专注、高效、畅快。主要功能是净化页面,净化99%多余元素,只展示文章正文和关联文章。
  4. // @version 7.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. .blog-tags-box /*隐藏开头的专栏收录*/,
  29. #blogColumnPayAdvert /*隐藏结尾的专栏收录*/,
  30. #treeSkill /*隐藏技能树*/
  31. {
  32. display: none !important;
  33. }
  34.  
  35. /*隐藏背景*/
  36. body {
  37. background: none !important;
  38. background-image: unset !important;
  39. background-color: #ffebeb !important;
  40. }
  41.  
  42. /*正文居中*/
  43. #mainBox {
  44. display: flex;
  45. justify-content: center;
  46. }
  47.  
  48. /*展示全屏*/
  49. #mainBox, #mainBox main {
  50. width: 100%;
  51. margin-bottom: unset !important;
  52. }
  53. .main_father {
  54. padding: unset !important;
  55. }
  56. .main_father.d-flex {
  57. display: unset !important;
  58. }
  59.  
  60. /*展示分界线*/
  61. #toolBarBox {
  62. margin-bottom: 4rem;
  63. }
  64. `);
  65.  
  66. })();