EasyJIANSHU

这是一款促进简书极致简洁和高效的插件。免费共享大量创新功能,如:净化页面、展示全屏等。让我们的学习体验无比简洁、专注、高效、畅快。

  1. // ==UserScript==
  2. // @name EasyJIANSHU
  3. // @description 这是一款促进简书极致简洁和高效的插件。免费共享大量创新功能,如:净化页面、展示全屏等。让我们的学习体验无比简洁、专注、高效、畅快。
  4. // @version 6.0
  5. // @author xcanwin
  6. // @namespace https://github.com/xcanwin/EasyJIANSHU/
  7. // @supportURL https://github.com/xcanwin/EasyJIANSHU/
  8. // @license GPL-2.0-only
  9. // @match *://www.jianshu.com/p/*
  10. // @match *://*.jianshu.io/p/*
  11. // @grant GM_addStyle
  12. // @run-at document-start
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. const $ = (Selector, el) => (el || document).querySelector(Selector);
  19. const $$ = (Selector, el) => (el || document).querySelectorAll(Selector);
  20.  
  21. /*电脑端净化样式*/
  22. const purify_style_pc = `
  23. #__next>header /*隐藏[置顶的][顶部的]菜单栏*/,
  24. footer /*隐藏[置顶的][底部的]评论查看栏*/,
  25. .ant-back-top /*隐藏[置顶的][底部的]返回顶部*/,
  26. ._3Pnjry /*隐藏[左边的]栏*/,
  27. ._2OwGUo /*隐藏[右边的]栏*/,
  28. ._3kba3h /*隐藏[正文的][顶部的]关注*/,
  29. ._3URWaO /*隐藏[正文的][顶部的]归属地*/,
  30. ._3tCVn5 /*隐藏[正文的][顶部的]钻石*/,
  31. ._1kCBjS /*隐藏[正文的][底部的]文章分类*/,
  32. ._19DgIp /*隐藏[正文的][底部的]下划线*/,
  33. ._13lIbp /*隐藏[正文的][底部的]APP推荐*/,
  34. .d0hShY /*隐藏[正文的][底部的]用户介绍*/,
  35. .ouvJEz:nth-of-type(2) /*隐藏[正文的][底部的]推荐文章*/,
  36. .ouvJEz:nth-of-type(3) /*隐藏[正文的][底部的]空白*/,
  37. #note-page-comment /*隐藏[正文的][底部的]评论发言栏*/
  38. {
  39. display: none !important;
  40. }
  41.  
  42. /*隐藏背景*/
  43. ._3kbg6I {
  44. background: none !important;
  45. background-image: unset !important;
  46. background-color: unset !important;
  47. }
  48.  
  49. /*调整标题*/
  50. ._1RuRku {
  51. display: flex;
  52. justify-content: center;
  53. margin-top: 35px !important;
  54. margin-bottom: 20px !important;
  55. color: black !important;
  56. font-size: 33px !important;
  57. font-family: 'PingFang SC','Microsoft YaHei','SimHei','Arial','SimSun';
  58. }
  59.  
  60. /*调整头像*/
  61. ._13D2Eh {
  62. display: none !important;
  63. min-width: unset !important;
  64. min-height: unset !important;
  65. border: unset !important;
  66. border-radius: 4px !important;
  67. width: 28px !important;
  68. height: 28px !important;
  69. margin: 6px !important;
  70. margin-right: 25px !important;
  71. }
  72.  
  73. /*调整文章信息栏*/
  74. .rEsl9f {
  75. background: #f8f8f8;
  76. border-radius: 4px !important;
  77. }
  78. ._3U4Smb {
  79. margin-bottom: unset !important;
  80. margin-right: 15px !important;
  81. float: left !important;
  82. }
  83. .FxYr8x {
  84. font-size: unset !important;
  85. }
  86.  
  87. /*展示全屏*/
  88. ._3VRLsv {
  89. padding-left: unset !important;
  90. padding-right: unset !important;
  91. padding-top: unset !important;
  92. width: unset !important;
  93. }
  94. ._gp-ck {
  95. margin-bottom: unset !important;
  96. margin-right: unset !important;
  97. width: 80% !important;
  98. }
  99. .ouvJEz {
  100. padding: unset !important;
  101. }
  102. `;
  103.  
  104. //净化页面
  105. const purifyPage = function() {
  106. GM_addStyle(purify_style_pc);
  107. };
  108.  
  109. //调整头像
  110. const beautyLOGO = function() {
  111. $('._13D2Eh').src = $('link[rel="shortcut icon"]').href;
  112. $('._13D2Eh').style = 'display: block !important';
  113. };
  114.  
  115. window.onload = function() {
  116. beautyLOGO();
  117. };
  118.  
  119. purifyPage();
  120.  
  121. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址