Imgur - Minimal Design for non-Imgurians

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

当前为 2022-07-04 提交的版本,查看 最新版本

  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.8
  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. /* ------------------------------
  83. Logo always in original colors
  84. ------------------------------ */
  85.  
  86. .Navbar-logo path:not([fill="#ffffff"]),
  87. .Navbar-logo path:not([fill="#1BB76E"])
  88. { fill: #fff !important; }
  89. /* v--- Letter "i" dot's color ---v */
  90. .Navbar-logo path[d^="M3.51952 0.756104C1.58599 0.756104"]
  91. { fill: #1BB76E !important; }
  92.  
  93. /* v--- Last three blue colored paths on top (OUTDATED, for example purpose) ---v
  94. .Navbar-logo [fill="#FFD500"]:nth-child(-n+6) { transform: translateY(-1px); } */
  95.  
  96. /* ------------------------------ */
  97.  
  98. .Button.upload { font-size: 0; }
  99.  
  100. .Button.upload:after {
  101. content: "Upload";
  102. font-size: 15px;
  103. }
  104.  
  105. .Button.upload img {
  106. margin-right: 9px;
  107. margin-top: -7px;
  108. }
  109.  
  110. .NewCover.GalleryCover.isFixed, .NewCover.isFixed .GoUp {
  111. visibility: hidden !important;
  112. transition: inherit !important;
  113. box-shadow: none !important;
  114. }
  115.  
  116. .Navbar-signin {
  117. background: #5c940d;
  118. padding: 9px 20px;
  119. border-radius: 3px;
  120. box-shadow: 0 6px 10px 0 rgba(27,28,30,.31);
  121. text-shadow: none !important;
  122. }
  123.  
  124. .Navbar-signup {
  125. padding-left: 20px;
  126. padding-right: 20px;
  127. min-width: inherit !important;
  128. }
  129.  
  130. .EmeraldButton {
  131. font-size: 0 !important;
  132. padding-left: 16px !important;
  133. padding-right: 16px !important;
  134. }
  135.  
  136. .EmeraldButton:after {
  137. content: "Support Imgur!";
  138. font-size: 15px !important;
  139. }
  140.  
  141. .ProfileNavbar-loggedIn .EmeraldButton { margin-right: 25px !important; }
  142.  
  143. .btn-wall--yes {
  144. display: block !important;
  145. width: 100% !important;
  146. height: auto !important;
  147. padding: 20px 0 22px !important;
  148. font-size: 28px !important;
  149. margin: 0 auto !important;
  150. }
  151.  
  152. .Page404Cover-logo {
  153. position: absolute !important;
  154. top: 25vh !important;
  155. margin-top: 0 !important;
  156. margin-bottom: 0 !important;
  157. }
  158. /* ------------------------------
  159. Download button always visible
  160. ------------------------------ */
  161. .Gallery-Options .Dropdown-title,
  162. .Gallery-OptionsMenu button[type="button"]:first-child
  163. { display: none !important; }
  164.  
  165. .Gallery-OptionsMenu .Dropdown-menu {
  166. display: inherit !important;
  167. visibility: hidden !important;
  168. }
  169.  
  170. .Gallery-OptionsMenu .Dropdown-list {
  171. margin: -51px 0 0 -158px !important;
  172. padding: 17px 0 !important;
  173. }
  174.  
  175. .Gallery-OptionsMenu button:not([class=""]) {
  176. width: auto !important;
  177. border-radius: 5px !important;
  178. color: #b4b9c2 !important;
  179. visibility: visible !important;
  180. }
  181.  
  182. .Gallery-OptionsMenu button:hover {
  183. background: #1bb76e !important;
  184. color: #fff !important;
  185. }
  186.  
  187. .Gallery-OptionsMenu button:hover .icon [fill] { fill: #fff !important; }
  188.  
  189. /* -------------------------
  190. Image / video size tweaks
  191. ------------------------- */
  192.  
  193. /* ------- NOT MODAL ------- */
  194.  
  195. .Gallery-ContentWrapper .Gallery-Content--media video:not(.fullscreen) { max-height: 70vh !important; }
  196.  
  197. /* -------- IN MODAL ------- */
  198.  
  199. .ImageViewer > .Dialog-wrapper > div[style^="height:"] {
  200. width: auto !important;
  201. height: auto !important;
  202. }
  203.  
  204. .ImageViewerContent img {
  205. max-height: 99.5vh !important;
  206. max-width: 99vw !important;
  207. min-height: inherit !important;
  208. border: 5px solid #fff !important;
  209. border-radius: 6px !important;
  210. }
  211.  
  212. .ImageViewer {
  213. border: 0 !important;
  214. border-radius: 0 !important;
  215. }
  216.  
  217. /* ------------------------- */
  218.  
  219. .Gallery-ContentWrapper .Gallery-Content--media { background-color: rgba(0,0,0,0.4) !important; }
  220.  
  221. .Gallery-Content--descr {
  222. background: rgba(0,0,0,.3) !important;
  223. padding: 20px !important;
  224. border-radius: 10px !important;
  225. }
  226.  
  227. .loadMore {
  228. padding: 0 0 3px 0 !important;
  229. margin-bottom: 25px !important;
  230. }
  231.  
  232. .loadMore svg { margin-top: 3px !important; }
  233.  
  234. .UploadPost .ImageDescription { padding: 0 24px 24px !important; }
  235.  
  236.  
  237. /* ================================
  238. ========== OLD DESIGN ==========
  239. ================================ */
  240.  
  241. .Open-Save-To-Folder-Button, #cta-container, #comments-container, .left #recommendations,
  242. .next-prev, #side-gallery, .search-container, #notification-container, .post-action *,
  243. .side-footer-links, .divider, [class^="post-options-tag"]
  244. { display: none !important; }
  245.  
  246. #topbar .account { left: -175px !important; }
  247.  
  248. .post-pad {
  249. transform: translateX(22.5%) !important;
  250. margin-bottom: 20px !important;
  251. }
  252.  
  253. .upload-global-post .post-pad { transform: inherit !important; }
  254.  
  255. ul.post-options-extra { margin-top: 20px !important; }
  256.  
  257. .post-action {
  258. padding: 0 !important;
  259. min-height: 15px !important;
  260. }
  261. }
  262.  
  263. @-moz-document url-prefix("https://zip.imgur.com/") { * { color: #fff !important; } }