summaryrefslogtreecommitdiff
path: root/modules/nixos/firefox/userContent.css
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/firefox/userContent.css')
-rw-r--r--modules/nixos/firefox/userContent.css323
1 files changed, 323 insertions, 0 deletions
diff --git a/modules/nixos/firefox/userContent.css b/modules/nixos/firefox/userContent.css
new file mode 100644
index 0000000..2de8cde
--- /dev/null
+++ b/modules/nixos/firefox/userContent.css
@@ -0,0 +1,323 @@
+@-moz-document media-document(all) {
+ 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;
+ }
+}
+
+@-moz-document regexp("https?://(www)?yandex\.(com|ru)/search/.*")
+{
+ #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;
+ }
+}
+
+@-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;
+ }
+}
+
+@-moz-document regexp("https?://(.*\.)?github.com.*")
+{
+ #org-repo-pin-select-menu,
+ #sponsor-button,
+ .dropdown-divider,
+ .footer,
+ .octicon.octicon-info,
+ .pt-3.mt-3.d-none.d-md-block, /* Profile achievements. */
+ .starring-container,
+ .user-following-container,
+ .user-profile-link,
+ .user-status-circle-badge-container,
+ .user-status-container,
+ a[href^="/account/choose?action=upgrade"],
+ a[href^="/codespaces"],
+ a[href^="/collections"],
+ a[href^="/events"],
+ a[href^="/explore"],
+ a[href^="/marketplace"],
+ a[href^="/organizations/enterprise"],
+ a[href^="/sponsors"],
+ a[href^="/topics"],
+ a[href^="/trending"] {
+ 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;
+ }
+}
+
+@-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,
+ .comment-user,
+ .d-flex.g4,
+ .d-flex.s-btn-group,
+ .js-add-link.comments-link,
+ .js-consent-banner,
+ .js-dismissable-hero,
+ .js-post-issue,
+ .js-show-link.comments-link,
+ .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;
+ }
+}
+
+@-moz-document regexp("https?://min\.io/docs/.*")
+{
+ #cookie {
+ display: none !important;
+ }
+}
+
+@-moz-document regexp("https?://werf\.io/documentation/.*")
+{
+ .guides-banner {
+ display: none !important;
+ }
+}
+
+@-moz-document regexp("https?://habr\.com/(ru|en)/(article|company/.*/news|blog|post)/.*")
+{
+ .Vue-Toastification__container,
+ .tm-article-presenter__footer,
+ .tm-article-presenter__meta,
+ .tm-article-snippet__labels,
+ .tm-article-sticky-panel,
+ .tm-base-layout__header,
+ .tm-block.tm-block_spacing-bottom,
+ .tm-block_spacing-around,
+ .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;
+ }
+}
+
+@-moz-document regexp("https?:\/\/gog\.com.*") {
+ .galaxy-section-wrapper,
+ footer {
+ display: none !important;
+ }
+}
+
+@-moz-document regexp("https?://steamdb\.info.*")
+{
+ #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;
+ }
+}
+
+@-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;
+ }
+}
+
+@-moz-document regexp("https?://developer\.mozilla\.org.*")
+{
+ #nav-footer,
+ .main-document-header-container.top-navigation,
+ .mdn-cta-container {
+ 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,
+ .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;
+ }
+}