Imgur - Minimal Design for non-Imgurians

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

当前为 2022-06-29 提交的版本,查看 最新版本

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