EasyCSDN

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

目前為 2023-11-25 提交的版本,檢視 最新版本

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