3DM论坛美化

精简多余内容

Versione datata 06/11/2020. Vedi la nuova versione l'ultima versione.

  1. // ==UserScript==
  2. // @name 3DM论坛美化
  3. // @version 1.0.0
  4. // @author X.I.U
  5. // @description 精简多余内容
  6. // @icon https://bbs.3dmgame.com/favicon.ico
  7. // @match *://bbs.3dmgame.com/*
  8. // @license GPL-3.0 License
  9. // @run-at document-start
  10. // @namespace https://greasyfork.org/scripts/413593
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. var style_Add = document.createElement('style');
  15. style_Add.innerHTML = `
  16. [url=home.php?mod=space&uid=945662]@media[/url] (min-width:1366px) {
  17. body {
  18. background: none;
  19. }
  20. .wp {
  21. width: 70%;
  22. }
  23. }
  24. @media (max-width:650px) {
  25. #postlist .favatar.pls .avatar img {
  26. margin: 0 0 2px;
  27. }
  28. }
  29. #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, img[border="0"].zoom, .md_ctrl, .pls.favatar .xg1, .wp.a_h, .hd_table, .a_cn, .wp.a_f, .bm.lk, .a_pt {
  30. display: none !important;
  31. }
  32. .pls .avatar img {
  33. width: 100px;
  34. height: 100px;
  35. background: none;
  36. padding: 0;
  37. border: 4px solid #ffffff
  38. }
  39. .avtm img {
  40. width: 60px;
  41. }
  42. .pls .avatar {
  43. text-align: center;
  44. }
  45. .t_fsz {
  46. min-height: 60px;
  47. }
  48. .pls .pi {
  49. text-align: center;
  50. padding: 10px 0 0 0;
  51. border: none;
  52. overflow: visible;
  53. }
  54. .xw1 {
  55. font-size: 15px;
  56. }
  57. textarea#fastpostmessage {
  58. background: none !important;
  59. }
  60. .pcb img {
  61. max-width: 60%;
  62. margin: 4px;
  63. }
  64. .rate {
  65. margin: 0;
  66. }
  67. .ratl td {
  68. padding: 0px;
  69. }
  70. .xw1 {
  71. font-size: 12px;
  72. font-weight: 500;
  73. }
  74. .xi2,.xi2 a,.xi3 a {
  75. color: red;
  76. }
  77. .mtw {
  78. margin-top: 0px !important;
  79. }
  80. #p_btn {
  81. padding: 0px;
  82. margin: 0 0 0 1px;
  83. display: flex;
  84. justify-content: space-evenly;
  85. }
  86. #scbar {
  87. border-top: 0;
  88. border-bottom: 0;
  89. }`;
  90. document.head.appendChild(style_Add);
  91. })();