Imgur - Minimal Design for non-Imgurians

Removes all the unnecessary stuff, for people that's not interested about Imgur culture.

目前为 2021-10-22 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Imgur - Minimal Design for non-Imgurians
  3. @description Removes all the unnecessary stuff, for people that's not interested about Imgur culture.
  4. @author krisu (https://github.com/krisu5)
  5. @namespace github.com/krisu5/userstyles
  6. @homepageURL https://github.com/krisu5/userstyles/tree/master/Imgur%20-%20Minimal%20and%20Anti-Social%20for%20non-Imgurians
  7. @supportURL https://github.com/krisu5/userstyles/issues
  8. @version 1.2.4
  9. @license unlicense
  10. @preprocessor default
  11. ==/UserStyle== */
  12.  
  13. @-moz-document url("https://imgur.com/"), url-prefix("https://imgur.com/upload") {
  14. /* -----------------------------------------------
  15. _____ _
  16. | ___| | |
  17. | |_ _ __ ___ _ __ | |_ _ __ __ _ __ _ ___
  18. | _| '__/ _ \| '_ \| __| '_ \ / _` |/ _` |/ _ \
  19. | | | | | (_) | | | | |_| |_) | (_| | (_| | __/
  20. \_| |_| \___/|_| |_|\__| .__/ \__,_|\__, |\___|
  21. | | __/ |
  22. |_| |___/
  23. ------------------------------------------------ */
  24.  
  25. .InteractiveBackground, .Message.welcome, .TrendingTags, .CoverChangeGallery,
  26. .NewCover.isFixed, .PopUpClose, .Button.upload img, [class*="Emerald"]:not(.EmeraldButton), .SnowFlakesBg,
  27. [class^="UploadSpinner"]
  28. { display: none !important; }
  29.  
  30. body, html { overflow-y: hidden !important; }
  31.  
  32. .Button.upload {
  33. position: fixed !important;
  34. margin: 0 !important;
  35. top: 50% !important;
  36. left: 50% !important;
  37. transform: translate(-50%, -50%) !important;
  38. width: 60vw !important;
  39. height: 23vw !important;
  40. border-radius: 25px !important;
  41. display: flex !important;
  42. justify-content: center !important;
  43. align-items: center !important;
  44. }
  45.  
  46. .Button.upload:hover:before { border-radius: 25px !important; }
  47.  
  48. .Button.upload:after { font-size: clamp(2rem, 5vw, 7rem) !important; }
  49.  
  50. .NewCover { background: transparent !important; }
  51. }
  52.  
  53. @-moz-document domain("imgur.com") {
  54. /* --------------------------------
  55. _____ _ _
  56. | __ \ | | |
  57. | | \/ __ _| | | ___ _ __ _ _
  58. | | __ / _` | | |/ _ \ '__| | | |
  59. | |_\ \ (_| | | | __/ | | |_| |
  60. \____/\__,_|_|_|\___|_| \__, |
  61. __/ |
  62. |___/
  63. & Everything else
  64. --------------------------------- */
  65.  
  66. /* ================================
  67. ======= NEW DESIGN (2020) ======
  68. ================================ */
  69.  
  70. .CommentsList, .Footer, .Gallery-Sidebar, .NavbarNotifications, .Searchbar, .Navigation-Container,
  71. [class*="share-btn"]:not(.share-btn-other):not(.share-btn-download), .CoverPostMeta.Display,
  72. .Gallery-EngagementBarContainer, .ButtonBackToTop, .Gallery-Content--tags, .TagManager.PostOptions-section,
  73. .TagSuggestion-container, .toast2, [class*="bottomad"], [class*="BottomAd"], .Footer-whitelist,
  74. .BottomRecirc, .btn-wall--no, .BannerTop3, .UploadSpinner-contentWrapper, .Page404-contentWrapper
  75. { display: none !important; }
  76.  
  77. body:not([class=""]) {
  78. background-color: #27292d;
  79. overflow: auto;
  80. }
  81.  
  82. .Button.upload { font-size: 0; }
  83.  
  84. .Button.upload:after {
  85. content: "Upload";
  86. font-size: 15px;
  87. }
  88.  
  89. .Button.upload img {
  90. margin-right: 9px;
  91. margin-top: -7px;
  92. }
  93.  
  94. .NewCover.GalleryCover.isFixed, .NewCover.isFixed .GoUp {
  95. visibility: hidden !important;
  96. transition: inherit !important;
  97. box-shadow: none !important;
  98. }
  99.  
  100. .Navbar-signin {
  101. background: #5c940d;
  102. padding: 9px 20px;
  103. border-radius: 3px;
  104. box-shadow: 0 6px 10px 0 rgba(27,28,30,.31);
  105. text-shadow: none !important;
  106. }
  107.  
  108. .Navbar-signup {
  109. padding-left: 20px;
  110. padding-right: 20px;
  111. min-width: inherit !important;
  112. }
  113.  
  114. .EmeraldButton {
  115. font-size: 0 !important;
  116. padding-left: 16px !important;
  117. padding-right: 16px !important;
  118. }
  119.  
  120. .EmeraldButton:after {
  121. content: "Support Imgur!";
  122. font-size: 15px !important;
  123. }
  124.  
  125. .ProfileNavbar-loggedIn .EmeraldButton { margin-right: 25px !important; }
  126.  
  127. .btn-wall--yes {
  128. display: block !important;
  129. width: 100% !important;
  130. height: auto !important;
  131. padding: 20px 0 22px !important;
  132. font-size: 28px !important;
  133. margin: 0 auto !important;
  134. }
  135.  
  136. .Page404Cover-logo {
  137. position: absolute !important;
  138. top: 25vh !important;
  139. margin-top: 0 !important;
  140. margin-bottom: 0 !important;
  141. }
  142. /* ------------------------------
  143. Download button always visible
  144. ------------------------------ */
  145. .Gallery-Options .Dropdown-title,
  146. .Gallery-OptionsMenu button[type="button"]:first-child
  147. { display: none !important; }
  148.  
  149. .Gallery-OptionsMenu .Dropdown-menu {
  150. display: inherit !important;
  151. visibility: hidden !important;
  152. }
  153.  
  154. .Gallery-OptionsMenu .Dropdown-list {
  155. margin: -51px 0 0 -158px !important;
  156. padding: 17px 0 !important;
  157. }
  158.  
  159. .Gallery-OptionsMenu button:not([class=""]) {
  160. width: auto !important;
  161. border-radius: 5px !important;
  162. color: #b4b9c2 !important;
  163. visibility: visible !important;
  164. }
  165.  
  166. .Gallery-OptionsMenu button:hover {
  167. background: #1bb76e !important;
  168. color: #fff !important;
  169. }
  170.  
  171. .Gallery-OptionsMenu button:hover .icon [fill] { fill: #fff !important; }
  172.  
  173. /* -------------------------
  174. Image / video size tweaks
  175. ------------------------- */
  176.  
  177. /* ------- NOT MODAL ------- */
  178.  
  179. .Gallery-ContentWrapper .Gallery-Content--media video:not(.fullscreen) { max-height: 70vh !important; }
  180.  
  181. /* -------- IN MODAL ------- */
  182.  
  183. .ImageViewer > .Dialog-wrapper > div[style^="height:"] {
  184. width: auto !important;
  185. height: auto !important;
  186. }
  187.  
  188. .ImageViewerContent img {
  189. max-height: 99.5vh !important;
  190. max-width: 99vw !important;
  191. min-height: inherit !important;
  192. border: 5px solid #fff !important;
  193. border-radius: 6px !important;
  194. }
  195.  
  196. .ImageViewer {
  197. border: 0 !important;
  198. border-radius: 0 !important;
  199. }
  200.  
  201. /* ------------------------- */
  202.  
  203. .Gallery-ContentWrapper .Gallery-Content--media { background-color: rgba(0,0,0,0.4) !important; }
  204.  
  205. .Gallery-Content--descr {
  206. background: rgba(0,0,0,.3) !important;
  207. padding: 20px !important;
  208. border-radius: 10px !important;
  209. }
  210.  
  211. .loadMore {
  212. padding: 0 0 3px 0 !important;
  213. margin-bottom: 25px !important;
  214. }
  215.  
  216. .loadMore svg { margin-top: 3px !important; }
  217.  
  218. .UploadPost .ImageDescription { padding: 0 24px 24px !important; }
  219.  
  220.  
  221. /* ================================
  222. ========== OLD DESIGN ==========
  223. ================================ */
  224.  
  225. .Open-Save-To-Folder-Button, #cta-container, #comments-container, .left #recommendations,
  226. .next-prev, #side-gallery, .search-container, #notification-container, .post-action *,
  227. .side-footer-links, .divider, [class^="post-options-tag"]
  228. { display: none !important; }
  229.  
  230. #topbar .account { left: -175px !important; }
  231.  
  232. .post-pad {
  233. transform: translateX(22.5%) !important;
  234. margin-bottom: 20px !important;
  235. }
  236.  
  237. .upload-global-post .post-pad { transform: inherit !important; }
  238.  
  239. ul.post-options-extra { margin-top: 20px !important; }
  240.  
  241. .post-action {
  242. padding: 0 !important;
  243. min-height: 15px !important;
  244. }
  245. }
  246.  
  247. @-moz-document url-prefix("https://zip.imgur.com/") {
  248. body { background: #fff !important; }
  249. }