C站页面简化

还原UI

  1. // ==UserScript==
  2. // @name C站页面简化
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description 还原UI
  6. // @author You
  7. // @match https://bbs.colg.cn/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=colg.cn
  9. // @grant none
  10. // @run-at document-start
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. let style_Add = document.createElement('style');
  17. style_Add.innerHTML = `
  18. [url=home.php?mod=space&uid=945662]@media[/url] (min-width:1366px) {
  19.         body {
  20.                 background: none;
  21.         }
  22.         .wp {
  23.                 width: 100%;
  24.         }
  25. }
  26. @media (max-width:650px) {
  27.         #postlist .favatar.pls .avatar img {
  28.                 margin: 0 0 2px;
  29.         }
  30. }
  31. #toptb, .dnch_eo_pt,.dnch_eo_pr, .dnch_eo_f, .bml, dl.pil.cl, td.plc.plm .sign, .dnch_eo_pb,.dnch_eo_pt, .pls .side-star, .pls .side-group, div#h_nv, .res-footer-note, a>img[border="0"].zoom, .md_ctrl, .pls.favatar .xg1, .wp.a_h, .hd_table, .a_cn, .wp.a_f, .bm.lk, .a_pt {
  32.         display: none !important;
  33. }
  34. .pls .avatar img {
  35.         width: 100px;
  36.         height: 100px;
  37.         background: none;
  38.         padding: 0;
  39.         border: 0px solid #ffffff;
  40.     display: none !important;
  41. }
  42.  
  43. html.widthauto body#nv_forum.pg_viewthread div#wp.wp div.optimize-layout div.optimize-right
  44. {
  45. display: none !important;
  46. }
  47.  
  48. .pls .tns.xg2 {
  49. display: auto !important;
  50. }
  51.  
  52. .avtm img {
  53.         width: 60px;
  54. }
  55.  
  56. .pls .pbg2 {
  57.         //font-size: 0px;
  58. display: none;
  59.  
  60. }
  61.  
  62. .pls .avatar {
  63.         text-align: center;
  64. }
  65.  
  66. .pls {
  67.         //font-size: 0px;
  68.     //display: none;
  69.         width: 175px;
  70.         height: 0px;
  71.     text-align: center;
  72. }
  73.  
  74. .pls .pbg2 {
  75.         //font-size: 0px;
  76. display: none;
  77.  
  78. }
  79.  
  80. .pls .sprite_start_2 {
  81. display: auto;
  82.  
  83. }
  84.  
  85. .pls .sprite_start_1 {
  86. display: auto;
  87.  
  88. }
  89.  
  90. .pls .sprite_start_3 {
  91. display: auto;
  92.  
  93. }
  94.  
  95. .pls .pm2 {
  96. display: auto;
  97.  
  98. }
  99.  
  100. .t_fsz {
  101.         min-height: 60px;
  102. }
  103. .pls .pi {
  104.         text-align: center;
  105.         padding: 10px 0 0 0;
  106.         border: none;
  107.         overflow: visible;
  108. }
  109. .xw1 {
  110.         font-size: 15px;
  111. }
  112. textarea#fastpostmessage {
  113.         background: none !important;
  114. }
  115. .pcb img {
  116.         max-width: 60%;
  117.         margin: 4px;
  118. }
  119. .rate {
  120.         margin: 0;
  121. }
  122. .ratl td {
  123.         padding: 0px;
  124. }
  125. .xw1 {
  126.         font-size: 12px;
  127.         font-weight: 500;
  128. }
  129. .xi2,.xi2 a,.xi3 a {
  130.         ;
  131. }
  132. .mtw {
  133.         margin-top: 0px !important;
  134. }
  135. #p_btn {
  136.         padding: 0px;
  137.         margin: 0 0 0 1px;
  138.         display: flex;
  139.         justify-content: space-evenly;
  140. }
  141. #scbar {
  142.         border-top: 0;
  143.         border-bottom: 0;
  144. }
  145.  
  146. .optimize-layout>.optimize-layout-ignore-width
  147. {
  148. width:100% !important;
  149. }
  150.  
  151. .t_f, .t_f td {
  152. font-size: 15px !important;
  153. }
  154.  
  155. .f_textArea{
  156. padding:3px 5px !important;
  157. }
  158.  
  159. /* 私货,限制勋章区高度 不喜可删 */
  160. .md_ctrl {
  161. max-height: 150px;
  162. overflow-y: scroll;
  163. width: 147px;
  164. scrollbar-width: none;
  165. }
  166. /* 控制滚动条的样式 */
  167. ::-webkit-scrollbar {
  168. width: 6px; /* 设置滚动条宽度 */
  169. }
  170. /* 滚动槽 */
  171. ::-webkit-scrollbar-track {
  172. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  173. border-radius: 10px;
  174. }
  175. /* 滚动条滑块 */
  176. ::-webkit-scrollbar-thumb {
  177. border-radius: 10px;
  178. background: rgba(255,255,255,0.2); /* 滚动条颜色为透明 */
  179. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
  180. }
  181. /* 滚动条角落 */
  182. ::-webkit-scrollbar-corner {
  183. background: transparent; /* 角落颜色为透明 */
  184. }
  185.  
  186. /* 发帖、回复按钮还原 */
  187. .sprite_pn_post {
  188. width: 75px;
  189. height: 29px;
  190. display: inline-block;
  191. background-position: -100px -60px;
  192. background-image: url(https://static.colg.cn/image/sprites/sprite-list.png);
  193. }
  194. #post_replytmp .sprite_pn_post,#post_reply .sprite_pn_post{
  195. background-position: -182px -60px;
  196. }
  197. .sprite_pn_post * {
  198. opacity: 0;
  199. }
  200.  
  201. /*迷之广告浮窗*/
  202. .cooperation_bd_wapper{
  203. display:none !important;
  204. }
  205.  
  206. `;
  207. if (document.head) {
  208. document.head.appendChild(style_Add);
  209. } else {
  210. let timer = setInterval(function(){
  211. if (document.head) {
  212. document.head.appendChild(style_Add);
  213. clearInterval(timer);
  214. }
  215. });
  216. }
  217.  
  218. })();

QingJ © 2025

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