Greasy Fork镜像 支持简体中文。

智友邦论坛美化

精简多余内容、样式优化、宽屏显示

安裝腳本?
作者推薦腳本

您可能也會喜歡 智友邦论坛增强

安裝腳本
  1. // ==UserScript==
  2. // @name 智友邦论坛美化
  3. // @version 1.0.2
  4. // @author X.I.U
  5. // @description 精简多余内容、样式优化、宽屏显示
  6. // @icon http://bbs.zhiyoo.net/favicon.ico
  7. // @match *://bbs.zhiyoo.net/*
  8. // @license GPL-3.0 License
  9. // @run-at document-start
  10. // @namespace https://gf.qytechs.cn/scripts/412361
  11. // @supportURL https://github.com/XIU2/UserScript
  12. // @homepageURL https://github.com/XIU2/UserScript
  13. // ==/UserScript==
  14.  
  15. 'use strict';
  16. (function() {
  17. let style_Add = document.createElement('style');
  18. style_Add.innerHTML = `
  19. /* 精简多于内容 */
  20. .forum_top,#main_sidebar,.drag,.nav,.tps,.bm.bml,.ct2 .sd,.mn div.box.cl:nth-of-type(3),#f_pst,.plc.plm,#diy_like1,#hm_qrcode_main,#ft,.po.bbd.reply_p,.ft_top.cl,div a[href="https://weibo.com/372458419"] {
  21. display: none !important;
  22. }
  23. /* 调整主体宽度(因为隐藏了右侧侧栏) */
  24. .ct2 .mn,#wp .forum-left,#thread_types1 {
  25. width: auto !important;
  26. }
  27. /* 隐藏底部 */
  28. #footer {
  29. height: 0 !important;
  30. margin: 0 !important;
  31. }
  32. /* 调整帖子内,标题文字大小 */
  33. #thread_subject {
  34. font-size: 19px !important;
  35. }
  36. /* 调整帖子内,隐藏内容提示区域样式 */
  37. .locked a {
  38. color: #ffffff;
  39. border: 1px dashed #ffffff;
  40. padding: 0 5px 3px;
  41. margin: 0 5px;
  42. font-size: 20px;
  43. background-color: #e24e72;
  44. }
  45. /* 调整帖子内,图片最大宽度(即一排可以放三个图片) */
  46. #postlist .pcb img {
  47. max-width: 30%;
  48. }`;
  49. if (document.head) {
  50. document.head.appendChild(style_Add);
  51. } else {
  52. let timer = setInterval(function(){
  53. if (document.head) {
  54. document.head.appendChild(style_Add);
  55. clearInterval(timer);
  56. }
  57. }, 1);
  58. }
  59. })();

QingJ © 2025

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