Patreon responsive + customizations

Patreon website is more suitable for wide screens.

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

  1. /* ==UserStyle==
  2. @name Patreon responsive + customizations
  3. @version 1.0.9
  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
  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. :root {
  29. --fontsize: fontsize;
  30. }
  31. /* Loved */
  32. [data-tag="like-button"][aria-checked="true"] > div > svg path {
  33. fill: #c6374d;
  34. }
  35. /* No double scrollbar */
  36. #__next > .sc-uiqay7-0.cnwZin {
  37. overflow: hidden;
  38. }
  39. if bigimages {
  40. .kZrqiR,
  41. .gFIRbI,
  42. .ekfOSd,
  43. .dlPwPr,
  44. .kBqPDk {
  45. height: 100%;
  46. max-height: 100%;
  47. }
  48. .gFIRbI,
  49. .ekfOSd,
  50. .kZrqiR {
  51. display: block;
  52. }
  53. .kZrqiR img {
  54. margin-bottom: 2px;
  55. object-fit: cover;
  56. }
  57. .image-carousel {
  58. height: 112px;
  59. object-fit: cover;
  60. width: auto;
  61. }
  62. /* Little unblur */
  63. .dgyaSI {
  64. background: transparent !important;
  65. opacity: 0 !important;
  66. }
  67. .image-grid > img {
  68. background: transparent !important;
  69. }
  70. .jQZWvF > div > div,
  71. .image-grid div {
  72. display: none !important;
  73. height: 0 !important;
  74. width: 0 !important;
  75. }
  76. }
  77. /* Custom font size */
  78. :root,
  79. button,
  80. div,
  81. li,
  82. p,
  83. .cuiKYE,
  84. .cQjDCC,
  85. .fxePXf,
  86. .jYEggK {
  87. font-size: fontsize !important;
  88. }
  89. .vWGl {
  90. font-size: calc(var(--fontsize) - .2rem)!important;
  91. }
  92. span > .vWGl {
  93. font-size: inherit !important;
  94. }
  95. .gxOVkK {
  96. font-size: calc(var(--fontsize) - .4rem)!important;
  97. }
  98. if nocomments {
  99. [data-tag="content-card-comment-thread-container"],
  100. .bmnjsr {
  101. display: none !important;
  102. }
  103. }
  104. if nojump {
  105. .sc-jrQzAO.bAzCwM,
  106. .sc-o4u8m1-2 > div > div:nth-child(2),
  107. [data-tag="upgrade-free-membership-button"],
  108. [data-tag="free-membership-upgrade-cta"] {
  109. display: none !important;
  110. height: 0 !important;
  111. max-height: 0 !important;
  112. }
  113. }
  114. if widemode {
  115. section.fZbiny>div,
  116. .bNdQpa,
  117. .bnFcNI,
  118. .cuHeCZ,
  119. .hGVSIy,
  120. .idaEYe,
  121. .kYRjdn,
  122. .lghRlU,
  123. .McnWk,
  124. .PSylB {
  125. max-width: 100% !important;
  126. }
  127. .gwGwhu {
  128. padding: 0;
  129. }
  130.  
  131. .bcGqVn {
  132. grid-template-columns: 80% 20%;
  133. }
  134.  
  135. .jwWBqC {
  136. grid-column-end: span 1;
  137. }
  138. .leSNuf:nth-child(odd)> .dGdDmr {
  139. flex-direction: row-reverse !important;
  140. }
  141. .sc-o4u8m1-4.hBubtn > div > div > h2 {
  142. margin-top: 1rem;
  143. }
  144. .dzWUmz,
  145. .cgDWfu {
  146. max-width: max-content !important;
  147. }
  148. }
  149. }