学术洛谷

洛谷学术模式

  1. /* ==UserStyle==
  2. @name 学术洛谷
  3. @namespace USO Archive
  4. @author Hello8693
  5. @description 洛谷学术模式
  6. @version 1.2.1
  7. @license NO-REDISTRIBUTION
  8. @preprocessor uso
  9. ==/UserStyle== */
  10. @-moz-document url-prefix("https://www.luogu.com.cn") {
  11. .lg-index-content.am-center>div:first-child>div:first-child>div:first-child /* 隐藏首页的 "本站公告" */
  12. {
  13. display: none;
  14. }
  15.  
  16.  
  17.  
  18. .lg-index-content.am-center>div:first-child+div+div>div:first-child>div:first-child+div+div /* 隐藏首页的"友情链接" */
  19. {
  20. display: none!important;
  21. }
  22.  
  23. .lg-index-content.am-center>div:first-child+div+div>div:first-child+div>div:first-child+div /* 隐藏首页的讨论 */
  24. {
  25. display: none!important;
  26. }
  27.  
  28. .lg-index-benben>div+div+div /* 隐藏首页的发送犇犇 */
  29. {
  30. display: none!important;
  31. }
  32.  
  33. .lg-index-benben>div+div+div+ul /* 隐藏首页的犇犇内容 */
  34. {
  35. display: none!important;
  36. }
  37.  
  38. .lg-punch /* 隐藏今日运势(包括签到) */
  39. {
  40. display: none!important;
  41. }
  42.  
  43. div.feed /* 隐藏个人主页的犇犇 */
  44. {
  45. display: none!important;
  46. }
  47.  
  48. div.feed+.spinner /* 隐藏犇犇加载中的 spinner */
  49. {
  50. display: none;
  51. }
  52.  
  53. div.feed+.load-more,#feed-more /* 隐藏犇犇的"查看更多"按钮 */
  54. {
  55. display: none!important;
  56. }
  57.  
  58. a[href="/discuss/lists"] /* 隐藏侧边栏的讨论按钮 */
  59. {
  60. display: none;
  61. }
  62.  
  63. a[href$="/chat"] /* 隐藏右上角头像左边的私信按钮 */
  64. {
  65. display: none;
  66. }
  67.  
  68. a[href$="/user/notification"] /* 隐藏右上角头像左边的通知按钮 */
  69. {
  70. display: none;
  71. }
  72.  
  73. div[currentTemplate="UserNotification"] /* 隐藏通知页面 */
  74. {
  75. display: none!important;
  76. }
  77.  
  78. div[currentTemplate="Chat"] /* 隐藏私信页面 */
  79. {
  80. display: none!important;
  81. }
  82.  
  83. div[currentTemplate="ProblemShow"]>.side>div:first-child+div+div /* 隐藏题目界面的讨论 */
  84. {
  85. display: none!important;
  86. }
  87. #app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu > ul > li:nth-child(2),
  88. #app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu > ul > li:nth-child(6){
  89. display: none!important;
  90. }
  91. #app > div.main-container > div:nth-child(3) > div.footer > div.info:after {
  92. content: "增强学术模式 By Hello8693";
  93. }
  94. #app > div.main-container > div:nth-child(3) > div.footer > div.info > p > a:nth-child(7):after {
  95. content: "(不可用)";
  96. }
  97. #app > div.main-container > div.wrapper.wrapped.lfe-body.header-layout.tiny > div.container > div.link-container:after,
  98. #app > div.main-container > div.wrapper.wrapped.lfe-body.header-layout.normal > div.header > nav > span:nth-child(3):after{
  99. color: red;
  100. content: "[学术模式已开启]";
  101. }
  102. div[data-v-0a593618]{
  103. display:none;
  104. }
  105. #app > nav > div.popup-button > div > div > div > a:nth-child(5):after {
  106. content: "(不可用)";
  107. }
  108. }
  109.  
  110. @-moz-document regexp("https://www.luogu.com.cn/user/.*#main"), regexp("https://www.luogu.com.cn/user/.*"), regexp("https://www.luogu.com.cn/user/.*#activity") {
  111. #app > div.main-container > main > div > section.side > div:nth-child(1) > a:nth-child(3) {
  112. display: none!important;
  113. }
  114. #app > div.main-container > main > div > div.full-container > section.main > div {
  115. display: none!important;
  116. }
  117. #app > div.main-container > main > div > div.full-container > section.side {
  118. width: 100%;
  119. }
  120. }
  121.  
  122.  
  123. @-moz-document url-prefix("https://www.luogu.com.cn/discuss/") {
  124. #app /* 隐藏讨论页面 */
  125. {
  126. display: none!important;
  127. }
  128.  
  129. body:before
  130. {
  131. margin-top: 100px;
  132. margin-left: 200px;
  133. font-size: xx-large;
  134. content: "503 Service Temporarily Unavailable";
  135. }
  136. }
  137.  
  138. @-moz-document url-prefix("https://www.luogu.com.cn/ranking") {
  139. #app /* 隐藏ranklist页面 */
  140. {
  141. display: none!important;
  142. }
  143.  
  144. body:before
  145. {
  146. margin-top: 100px;
  147. margin-left: 200px;
  148. font-size: xx-large;
  149. content: "503 Service Temporarily Unavailable"; /*字可以自行更改*/
  150. }
  151. }
  152.  
  153. @-moz-document url-prefix("https://www.luogu.com.cn/judgement") {
  154. #app /* 隐藏陶片页面 */
  155. {
  156. display: none!important;
  157. }
  158.  
  159. body:before
  160. {
  161. margin-top: 100px;
  162. margin-left: 200px;
  163. font-size: xx-large;
  164. content: "503 Service Temporarily Unavailable"; /*字可以自行更改*/
  165. }
  166. }
  167.  
  168.  
  169. @-moz-document url-prefix("https://www.luogu.com.cn/problem/solution") {
  170. #app /* 隐藏题解页面 */
  171. {
  172. display: none!important;
  173. }
  174.  
  175. body:before
  176. {
  177. margin-top: 100px;
  178. margin-left: 200px;
  179. font-size: xx-large;
  180. content: "503 Service Temporarily Unavailable"; /*字可以自行更改*/
  181. }
  182. }

QingJ © 2025

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