Patreon responsive + customizations

Patreon website is more suitable for wide screens.

当前为 2024-06-03 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Patreon responsive + customizations
  3. @version 1.0.0
  4. @description Patreon website is more suitable for wide screens.
  5. @author BreatFR (https://breat.fr)
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/patreon-responsive-customizations
  8. @supportURL https://discord.gg/Q8KSHzdBxs
  9. @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
  10. @preprocessor stylus
  11.  
  12. @var checkbox bigimages "Big images" 1
  13. @var text fontsize "Custom font size" 1.2rem
  14. @var checkbox nojump "No Jump to level up" 1
  15. @var checkbox nocomments "No comments" 0
  16. @var checkbox widemode "Wide mode" 1
  17. ==/UserStyle== */
  18.  
  19. /* === Credits ===
  20. Website https://breat.fr
  21. facebook https://www.facebook.com/breatfroff
  22. mastodon https://mastodon.social/@breat_fr
  23. telegram https://t.me/breatfr
  24. vk https://vk.com/breatfroff
  25. X (twitter) https://x.com/breatfroff
  26. === Credits === */
  27. @-moz-document domain("patreon.com") {
  28. /* Loved */
  29. [data-tag="like-button"][aria-checked="true"] > div > svg path {
  30. fill: #c6374d;
  31. }
  32. if bigimages {
  33. .kZrqiR,
  34. .gFIRbI,
  35. .ekfOSd,
  36. .dlPwPr,
  37. .kBqPDk {
  38. height: 100%;
  39. max-height: 100%;
  40. }
  41. .gFIRbI,
  42. .ekfOSd,
  43. .kZrqiR {
  44. display: block;
  45. }
  46. .kZrqiR img {
  47. margin-bottom: 2px;
  48. object-fit: cover;
  49. }
  50. .image-carousel {
  51. height: 112px;
  52. object-fit: cover;
  53. width: auto;
  54. }
  55. }
  56. if fontsize {
  57. :root,
  58. button,
  59. div,
  60. li,
  61. p {
  62. font-size: fontsize !important;
  63. }
  64. }
  65. if nocomments {
  66. [data-tag="content-card-comment-thread-container"],
  67. .bmnjsr {
  68. display: none !important;
  69. }
  70. }
  71. if nojump {
  72. .sc-jrQzAO.bAzCwM,
  73. .sc-o4u8m1-2 > div > div:nth-child(2),
  74. [data-tag="upgrade-free-membership-button"],
  75. [data-tag="free-membership-upgrade-cta"] {
  76. display: none !important;
  77. height: 0 !important;
  78. max-height: 0 !important;
  79. }
  80. }
  81. if widemode {
  82. .PSylB,
  83. .bNdQpa,
  84. .kYRjdn,
  85. .idaEYe,
  86. .lghRlU {
  87. max-width: 100%;
  88. }
  89. .gwGwhu {
  90. padding: 0;
  91. }
  92.  
  93. .bcGqVn {
  94. grid-template-columns: 80% 20%;
  95. }
  96.  
  97. .jwWBqC {
  98. grid-column-end: span 1;
  99. }
  100. }
  101. }