Reddit - Big Card View

Makes the card view on Reddit bigger

目前为 2024-10-01 提交的版本。查看 最新版本

  1. /* ==UserStyle==
  2. @name Reddit - Big Card View
  3. @namespace 1N07
  4. @version 3.0.1
  5. @description Makes the card view on Reddit bigger
  6. @author 1N07
  7. @preprocessor uso
  8. @advanced text cardWidth "CardContainerWidthCSS" "75%"
  9. @advanced text cardHeight "CardContentHeightCSS" "70vh"
  10. ==/UserStyle== */
  11.  
  12. @-moz-document domain("reddit.com") {
  13. .subgrid-container {
  14. max-width: calc(100vw - 272px);
  15. width: calc(100vw - 272px);
  16. }
  17. .main-container {
  18. justify-content: center;
  19. }
  20. #main-content {
  21. max-width: calc(100% - 1rem - 316px);
  22. width: /*[[cardWidth]]*/;
  23. }
  24. #right-sidebar-container:has(> aside) {
  25. display: none;
  26. }
  27. #main-content:has(+ #right-sidebar-container > aside) {
  28. max-width: 100%;
  29. }
  30. /*Single image post height*/
  31. #main-content [slot='post-media-container'] shreddit-aspect-ratio{
  32. --max-height: min(100%, /*[[cardHeight]]*/) !important;
  33. }
  34. /*multi image post height*/
  35. /*
  36. Can't be done currently. Relevant element (faceplate-carousel-evolved) is in shadow DOM. Will need a JS solution.
  37. Might convert this whole style to a userscript later that just injects CSS to where I want...
  38. */
  39. /*temp - shows multiple iamges in a carousel at a time. Reddit only loads x images though...*/
  40. #main-content [slot='post-media-container'] gallery-carousel ul > li {
  41. width: auto !important;
  42. visibility: visible !important;
  43. }
  44. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址