Imgur - Minimal Design for non-Imgurians

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

目前为 2020-11-13 提交的版本,查看 最新版本

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