about summary refs log tree commit diff
path: root/modules/nixos/firefox/userContent.css
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-01-08 16:37:46 +0300
committerAzat Bahawi <azat@bahawi.net>2024-01-08 16:37:46 +0300
commit45f4b3f347f1ca401471993e9a115eb7686e4a25 (patch)
treefa3e14f3b620d503ba12ee733d901ae5c24f0777 /modules/nixos/firefox/userContent.css
parent2024-01-07 (diff)
2024-01-08
Diffstat (limited to '')
-rw-r--r--modules/nixos/firefox/userContent.css541
1 files changed, 280 insertions, 261 deletions
diff --git a/modules/nixos/firefox/userContent.css b/modules/nixos/firefox/userContent.css
index c9a33b7..8df7325 100644
--- a/modules/nixos/firefox/userContent.css
+++ b/modules/nixos/firefox/userContent.css
@@ -1,63 +1,63 @@
 @-moz-document media-document(all) {
-    body {
-        background-image: none !important;
-        background-color: var(--background) !important;
-    }
+  body {
+    background-image: none !important;
+    background-color: var(--background) !important;
+  }
 }
 
 @-moz-document regexp("about:(blank|home|newtab|privatebrowsing|welcome)") {
-    html,
-    body {
-        background: var(--background) !important;
-    }
-
-    body {
-        display: none !important;
-    }
+  html,
+  body {
+    background: var(--background) !important;
+  }
+
+  body {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://.*")
 {
-    iframe[src^="https://accounts.google.com/gsi/iframe"]
-    {
-        display: none !important;
-    }
+  iframe[src^="https://accounts.google.com/gsi/iframe"]
+  {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://(www)?yandex\.(com|ru)/search/.*")
 {
-    #search-result-aside,
-    .RelatedAbove {
-        display: none !important;
-    }
+  #search-result-aside,
+  .RelatedAbove {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://music\.yandex\.ru.*")
 {
-    .bar-below.bar-below_plus,
-    .footer,
-    .notify,
-    .teaser {
-        display: none !important;
-    }
+  .bar-below.bar-below_plus,
+  .footer,
+  .notify,
+  .teaser {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://(.*.)?gitlab(\..*)?\.(com|org).*")
 {
-    body {
-        font-family: var(--sans-serif-font-family) !important;
-        font-size: var(--sans-serif-font-size) !important;
-    }
-
-    code {
-        font-family: var(--monospace-font-family) !important;
-        font-size: var(--monospace-font-size) !important;
-    }
+  body {
+    font-family: var(--sans-serif-font-family) !important;
+    font-size: var(--sans-serif-font-size) !important;
+  }
+
+  code {
+    font-family: var(--monospace-font-family) !important;
+    font-size: var(--monospace-font-size) !important;
+  }
 }
 
 @-moz-document regexp("https?://(.*\.)?github.com.*")
 {
-    .color-fg-muted.f6.mt-4, /* GitHub profile guide. */
+  .color-fg-muted.f6.mt-4, /* GitHub profile guide. */
     .flex-order-1.flex-md-order-none, /* Follow button. */
     .js-user-status-item,
     .protip,
@@ -79,295 +79,314 @@
     button[data-testid="copilot-popover-button"],
     details[id^="funding-links-modal"],
     footer {
-        display: none !important;
-    }
-
-    .application-main {
-        padding-bottom: 20px !important;
-    }
-
-    .blob-num,
-    .blob-code-inner {
-        font-family: var(--monospace-font-family) !important;
-        font-size: var(--monospace-font-size) !important;
-    }
+    display: none !important;
+  }
+
+  .application-main {
+    padding-bottom: 20px !important;
+  }
+
+  .blob-num,
+  .blob-code-inner {
+    font-family: var(--monospace-font-family) !important;
+    font-size: var(--monospace-font-size) !important;
+  }
 }
 
 @-moz-document regexp("https?://github.com/?")
 {
-    .application-main {
-        display: none !important;
-    }
+  .application-main {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://.*(stack(exchange|overflow)|askubuntu|superuser|serverfault)\.com/questions/.*")
 {
-    html,
-    body {
-        --ff-mono: var(--monospace-font-family) !important;
-        --ff-sans: var(--sans-serif-font-family) !important;
-        --ff-serif: var(--serif-font-family) !important;
-    }
-
-    #announcement-banner,
-    #footer,
-    #left-sidebar,
-    #noscript-warning,
-    #notify-container,
-    #post-form,
-    #sidebar,
-    .ai-start,
-    .bottom-notice,
-    .d-flex.g4,
-    .d-flex.s-btn-group,
-    .js-add-link.comments-link,
-    .js-consent-banner,
-    .js-dismissable-hero,
-    .js-post-issue,
-    .js-saves-btn,
-    .js-show-link.comments-link,
-    .js-vote-down-btn,
-    .js-vote-up-btn,
-    .post-taglist,
-    .s-notice,
-    .s-topbar,
-    .site-header,
-    a.ws-nowrap {
-        display: none !important;
-    }
-
-    #mainbar {
-        width: 100% !important;
-    }
-
-    #content {
-        margin-top: -50px !important;
-        border-width: 0 0 0 0 !important;
-    }
+  html,
+  body {
+    --ff-mono: var(--monospace-font-family) !important;
+    --ff-sans: var(--sans-serif-font-family) !important;
+    --ff-serif: var(--serif-font-family) !important;
+  }
+
+  #announcement-banner,
+  #footer,
+  #left-sidebar,
+  #noscript-warning,
+  #notify-container,
+  #post-form,
+  #sidebar,
+  .ai-start,
+  .bottom-notice,
+  .d-flex.g4,
+  .d-flex.s-btn-group,
+  .js-add-link.comments-link,
+  .js-consent-banner,
+  .js-dismissable-hero,
+  .js-post-issue,
+  .js-saves-btn,
+  .js-show-link.comments-link,
+  .js-vote-down-btn,
+  .js-vote-up-btn,
+  .post-taglist,
+  .s-notice,
+  .s-topbar,
+  .site-header,
+  a.ws-nowrap {
+    display: none !important;
+  }
+
+  #mainbar {
+    width: 100% !important;
+  }
+
+  #content {
+    margin-top: -50px !important;
+    border-width: 0 0 0 0 !important;
+  }
 }
 
 @-moz-document regexp("https?://kubernetes\.io/docs/.*")
 {
-    .announcement,
-    .announcement-main,
-    .d-none {
-        display: none !important;
-    }
+  .announcement,
+  .announcement-main,
+  .d-none {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://min\.io/docs/.*")
 {
-    #cookie {
-        display: none !important;
-    }
+  #cookie {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://werf\.io/documentation/.*")
 {
-    .guides-banner {
-        display: none !important;
-    }
+  .guides-banner {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://grafana\.com/docs/.*")
 {
-    .ads__content,
-    .scroll,
-    .sticky-footer {
-        display: none !important;
-    }
+  .ads__content,
+  .scroll,
+  .sticky-footer {
+    display: none !important;
+  }
 }
 
-@-moz-document regexp("https?://habr\.com/(ru|en)/(articles|company/.*/news|companies|blog|post)/.*")
+@-moz-document regexp("https?://habr\.com/(ru|en)/(articles|company/.*/news|news|companies|blog|post)/.*")
 {
-    .Vue-Toastification__container,
-    .tm-article-labels,
-    .tm-article-presenter__banner,
-    .tm-article-presenter__footer,
-    .tm-article-presenter__meta,
-    .tm-article-snippet__labels,
-    .tm-base-layout__header,
-    .tm-block.tm-block_spacing-bottom,
-    .tm-comment-footer,
-    .tm-comment__header,
-    .tm-editoral-subscription,
-    .tm-footer,
-    .tm-footer-menu,
-    .tm-header,
-    .tm-notice,
-    .tm-page__header,
-    .tm-page__sidebar,
-    .tm-placeholder-inset,
-    .tm-placeholder-promo,
-    .tm-user-info,
-    vue-portal-target {
-        display: none !important;
-    }
-
-    * {
-        transition: none !important;
-    }
-
-    html,
-    body {
-        font-family: var(--sans-serif-font-family) !important;
-        font-size: var(--sans-serif-font-size) !important;
-    }
-
-    #app {
-        height: auto !important;
-    }
-
-    .tm-article-presenter__footer,
-    .tm-page__main_has-sidebar {
-        margin-left: auto !important;
-        margin-right: auto !important;
-        max-width: 100% !important;
-    }
-
-    .tm-page {
-        padding: 0 !important;
-    }
-
-    .tm-comment__buttons {
-        margin: 0 !important;
-    }
-
-    html,
-    body {
-        font-family: var(--sans-serif-font-family) !important;
-        font-size: var(--sans-serif-font-size) !important;
-    }
-
-    code {
-        font-family: var(--monospace-font-family) !important;
-        font-size: var(--monospace-font-size) !important;
-    }
+  .Vue-Toastification__container,
+  .tm-article-labels,
+  .tm-article-presenter__banner,
+  .tm-article-presenter__footer,
+  .tm-article-presenter__meta,
+  .tm-article-snippet__labels,
+  .tm-base-layout__header,
+  .tm-block.tm-block_spacing-bottom,
+  .tm-comment-footer,
+  .tm-comment__header,
+  .tm-editoral-subscription,
+  .tm-footer,
+  .tm-footer-menu,
+  .tm-header,
+  .tm-notice,
+  .tm-page__header,
+  .tm-page__sidebar,
+  .tm-placeholder-inset,
+  .tm-placeholder-promo,
+  .tm-user-info,
+  vue-portal-target {
+    display: none !important;
+  }
+
+  * {
+    transition: none !important;
+  }
+
+  html,
+  body {
+    font-family: var(--sans-serif-font-family) !important;
+    font-size: var(--sans-serif-font-size) !important;
+  }
+
+  #app {
+    height: auto !important;
+  }
+
+  .tm-article-presenter__footer,
+  .tm-page__main_has-sidebar {
+    margin-left: auto !important;
+    margin-right: auto !important;
+    max-width: 100% !important;
+  }
+
+  .tm-page {
+    padding: 0 !important;
+  }
+
+  .tm-comment__buttons {
+    margin: 0 !important;
+  }
+
+  html,
+  body {
+    font-family: var(--sans-serif-font-family) !important;
+    font-size: var(--sans-serif-font-size) !important;
+  }
+
+  code {
+    font-family: var(--monospace-font-family) !important;
+    font-size: var(--monospace-font-size) !important;
+  }
 }
 
 @-moz-document regexp("https?://jisho\.org.*")
 {
-    header,
-    footer {
-        display: none !important;
-    }
+  header,
+  footer {
+    display: none !important;
+  }
+}
+
+@-moz-document regexp("https?://.*\.fandom\.com/wiki/.*")
+{
+  #WikiaBar,
+  #highlight__main-container,
+  .global-footer,
+  .global-navigation,
+  .global-registration-buttons {
+    display: none !important;
+  }
+
+  .fandom-sticky-header {
+    left: 0px !important;
+  }
+
+  body {
+    background-image: none !important;
+  }
 }
 
 @-moz-document regexp("https?:\/\/gog\.com.*") {
-    .galaxy-section-wrapper,
-    footer {
-        display: none !important;
-    }
+  .galaxy-section-wrapper,
+  footer {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://steamdb\.info.*")
 {
-    #steamdb-extension-protip {
-        display: none !important;
-    }
+  #steamdb-extension-protip {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://(.*\.)?hh\.ru.*")
 {
-    .HH-Supernova-Footer,
-    .index-dashboard-applicant__banners,
-    .notification-manager,
-    .resume-sidebar-background,
-    .supernova-overlay {
-        display: none !important;
-    }
+  .HH-Supernova-Footer,
+  .index-dashboard-applicant__banners,
+  .notification-manager,
+  .resume-sidebar-background,
+  .supernova-overlay {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://www\.songsterr\.com.*")
 {
-    #favorite,
-    #fullscreen,
-    #logo,
-    #menu-favorites,
-    #menu-help,
-    #menu-plus,
-    #menu-signin,
-    #menu-submit,
-    #promo,
-    #revisions,
-    #showroom,
-    #showroom_sidebar,
-    #text-showroom,
-    footer {
-        display: none !important;
-    }
+  #favorite,
+  #fullscreen,
+  #logo,
+  #menu-favorites,
+  #menu-help,
+  #menu-plus,
+  #menu-signin,
+  #menu-submit,
+  #promo,
+  #revisions,
+  #showroom,
+  #showroom_sidebar,
+  #text-showroom,
+  footer {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://developer\.mozilla\.org.*")
 {
-    #nav-footer,
-    .main-document-header-container.top-navigation,
-    .mdn-cta-container,
-    .top-banner.fallback {
-        display: none !important;
-    }
-
-    .sidebar {
-        --offset: default !important;
-    }
-
-    html,
-    body {
-        font-family: var(--sans-serif-font-family) !important;
-        font-size: var(--sans-serif-font-size) !important;
-    }
+  #nav-footer,
+  .main-document-header-container.top-navigation,
+  .mdn-cta-container,
+  .top-banner.fallback {
+    display: none !important;
+  }
+
+  .sidebar {
+    --offset: default !important;
+  }
+
+  html,
+  body {
+    font-family: var(--sans-serif-font-family) !important;
+    font-size: var(--sans-serif-font-size) !important;
+  }
 }
 
 @-moz-document regexp("https?://(.*\.)?wikipedia\.org/wiki/.*")
 {
-    #footer,
-    #mp-topbanner,
-    #siteNotice,
-    #siteSub,
-    #wmde-banner-app,
-    .mw-footer-container,
-    .mw-header,
-    .vector-page-toolbar {
-        display: none !important;
-    }
-
-    html,
-    body {
-        font-family: var(--sans-serif-font-family) !important;
-        font-size: var(--sans-serif-font-size) !important;
-    }
-
-    .k-player,
-    body.mediawiki,
-    #dialogEngineContainer #dialogEngineDialog {
-        background: inherit !important;
-    }
+  #footer,
+  #mp-topbanner,
+  #siteNotice,
+  #siteSub,
+  #wmde-banner-app,
+  .mw-footer-container,
+  .mw-header,
+  .vector-page-toolbar {
+    display: none !important;
+  }
+
+  html,
+  body {
+    font-family: var(--sans-serif-font-family) !important;
+    font-size: var(--sans-serif-font-size) !important;
+  }
+
+  .k-player,
+  body.mediawiki,
+  #dialogEngineContainer #dialogEngineDialog {
+    background: inherit !important;
+  }
 }
 
 @-moz-document regexp("https?://open-vsx\.org.*")
 {
-    MuiCollapse-container,
-    cc-window.cc-banner,
-    footer {
-        display: none !important;
-    }
+  MuiCollapse-container,
+  cc-window.cc-banner,
+  footer {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://duckduckgo\.com.*")
 {
-    .badge-link, /* Annoying DuckDuckGo extension ads. */
-    .footer {
-        display: none !important;
-    }
+  .badge-link, /* Annoying DuckDuckGo extension ads. */
+  .footer {
+    display: none !important;
+  }
 }
 
 @-moz-document regexp("https?://ecosia\.org.*")
 {
-    .cookie-wrapper,
-    .main-header__install-cta,
-    .meta-results,
-    .notifications,
-    .personal-counter {
-        display: none !important;
-    }
+  .cookie-wrapper,
+  .main-header__install-cta,
+  .meta-results,
+  .notifications,
+  .personal-counter {
+    display: none !important;
+  }
 }

Consider giving Nix/NixOS a try! <3