summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/nixfiles/chromium.nix2
-rw-r--r--modules/nixfiles/common/users.nix3
-rw-r--r--modules/nixfiles/emacs/default.nix1
-rw-r--r--modules/nixfiles/firefox/default.nix9
-rw-r--r--modules/nixfiles/firefox/userChrome.css37
-rw-r--r--modules/nixfiles/firefox/userContent.css78
-rw-r--r--modules/nixfiles/profiles/headless.nix2
7 files changed, 66 insertions, 66 deletions
diff --git a/modules/nixfiles/chromium.nix b/modules/nixfiles/chromium.nix
index 20b5347..6a7c771 100644
--- a/modules/nixfiles/chromium.nix
+++ b/modules/nixfiles/chromium.nix
@@ -19,7 +19,7 @@ in {
package = pkgs.chromium;
extensions = [
- {id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # Unblock Origin
+ {id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # uBlock Origin
];
};
};
diff --git a/modules/nixfiles/common/users.nix b/modules/nixfiles/common/users.nix
index e312477..fb85c1b 100644
--- a/modules/nixfiles/common/users.nix
+++ b/modules/nixfiles/common/users.nix
@@ -6,9 +6,6 @@ with lib; {
mutableUsers = false;
users = {
- # This will unset the root password so that it would be impossible to
- # login as it directory. The root user will still be accessable via
- # `sudo`.
root.hashedPassword = "@HASHED_PASSWORD@";
${my.username} = {
diff --git a/modules/nixfiles/emacs/default.nix b/modules/nixfiles/emacs/default.nix
index 732cab5..ff0238d 100644
--- a/modules/nixfiles/emacs/default.nix
+++ b/modules/nixfiles/emacs/default.nix
@@ -137,7 +137,6 @@ in {
;; :input japanese
(setq skk-large-jisyo "${pkgs.skk-dicts}/share/skk/SKK-JISYO.L")
-
'';
};
diff --git a/modules/nixfiles/firefox/default.nix b/modules/nixfiles/firefox/default.nix
index d04adfd..3380eb3 100644
--- a/modules/nixfiles/firefox/default.nix
+++ b/modules/nixfiles/firefox/default.nix
@@ -19,10 +19,9 @@ in {
programs.firefox = {
enable = true;
- arkenfox = {
- enable = true;
- version = "105.0";
- };
+ package = pkgs.firefox;
+
+ arkenfox.enable = true;
profiles.default = let
mkCssWithRoot = css:
@@ -248,6 +247,8 @@ in {
"extensions.update.enabled" = false;
"full-screen-api.warning.delay" = 0;
"full-screen-api.warning.timeout" = 0;
+ "general.autoScroll" = true;
+ "general.smoothScroll" = false;
"identity.fxaccounts.enabled" = false;
"media.autoplay.blocking_policy" = 2;
"media.autoplay.default" = 5;
diff --git a/modules/nixfiles/firefox/userChrome.css b/modules/nixfiles/firefox/userChrome.css
index 4d83391..23fc336 100644
--- a/modules/nixfiles/firefox/userChrome.css
+++ b/modules/nixfiles/firefox/userChrome.css
@@ -56,7 +56,7 @@
}
.tab-background {
- border-right: 0px solid var(--black) !important;
+ border-right: 0px solid var(--brightBlack) !important;
margin-left: -4px !important;
}
@@ -75,7 +75,7 @@
}
#urlbar-input-container {
- border: 3px solid var(--black) !important;
+ border: 3px solid var(--brightBlack) !important;
}
#urlbar[focused="true"] > #urlbar-background {
@@ -120,37 +120,4 @@
#context_sendTabToDevice {
display: none !important;
}
-
- .identity-color-blue {
- --identity-tab-color: var(--blue) !important;
- --identity-icon-color: var(--blue) !important;
- }
- .identity-color-turquoise {
- --identity-tab-color: var(--cyan) !important;
- --identity-icon-color: var(--cyan) !important;
- }
- .identity-color-green {
- --identity-tab-color: var(--green) !important;
- --identity-icon-color: var(--green) !important;
- }
- .identity-color-yellow {
- --identity-tab-color: var(--yellow) !important;
- --identity-icon-color: var(--yellow) !important;
- }
- .identity-color-orange {
- --identity-tab-color: var(--brightRed) !important;
- --identity-icon-color: var(--brightRed) !important;
- }
- .identity-color-red {
- --identity-tab-color: var(--red) !important;
- --identity-icon-color: var(--red) !important;
- }
- .identity-color-pink {
- --identity-tab-color: var(--brightMagenta) !important;
- --identity-icon-color: var(--brightMagenta) !important;
- }
- .identity-color-purple {
- --identity-tab-color: var(--magenta) !important;
- --identity-icon-color: var(--magenta) !important;
- }
}
diff --git a/modules/nixfiles/firefox/userContent.css b/modules/nixfiles/firefox/userContent.css
index ff74e01..3f6894b 100644
--- a/modules/nixfiles/firefox/userContent.css
+++ b/modules/nixfiles/firefox/userContent.css
@@ -24,7 +24,34 @@
}
@-moz-document regexp("https?:\/\/(.*\.)?github.com.*") {
- .footer {
+ /*
+ * Remove useless information, links, sponsorship buttons from which GitHub
+ * gets a cut, useless "social" stuff and other "features". Unfortunately, I
+ * cannot disable reactions because a lot of repositories use these as a
+ * certain indicator of something, or as a voting tool.
+ */
+ #org-repo-pin-select-menu,
+ #sponsor-button,
+ .dropdown-divider,
+ .footer,
+ .octicon.octicon-info,
+ .pt-3.mt-3.d-none.d-md-block, /* Profile achievements. */
+ .details-overlay.details-reset.position-relative.d-block, /* Add file button. */
+ .starring-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"],
+ get-repo /* Find files button. */ {
display: none !important;
}
@@ -39,7 +66,17 @@
}
}
-@-moz-document regexp("https?:\/\/.*(stack(exchange|overflow)|askubuntu|superuser|serverfault)\.com.*") {
+@-moz-document regexp("https?:\/\/github.com/?") {
+ /*
+ * Remove the stupid GitHub news and updates page if I ever click that by
+ * accident.
+ */
+ .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;
@@ -47,6 +84,13 @@
--ff-serif: var(--serif-font-family) !important;
}
+ /*
+ * This removes all bloat and useless information from Q/A pages. Since I
+ * usually find these through a search engine all of the navigation buttons
+ * and such are removed. I don't want to see any dumb messages, user names
+ * and promos. Comments on answers are kept because they sometimes have
+ * useful information but usernames and metadata is omitted.
+ */
#announcement-banner,
#footer,
#left-sidebar,
@@ -103,6 +147,11 @@
}
@-moz-document regexp("https:\/\/habr\.com\/(ru|en)\/(article|company\/.*\/blog|post)\/.*") {
+ /*
+ * Remove everything and keep only the meat and potatoes of the article. I'm
+ * espeically not interested in comments or "witty" remarks of users this
+ * website's users.
+ */
.Vue-Toastification__container,
.tm-article-presenter__footer,
.tm-article-presenter__meta,
@@ -127,6 +176,9 @@
display: none !important;
}
+ /*
+ * Remove all animations.
+ */
* {
transition: none !important;
}
@@ -168,13 +220,6 @@
}
}
-@-moz-document regexp("https?:\/\/search\.nixos\.org.*") {
- .search-sidebar,
- footer.container {
- display: none !important;
- }
-}
-
@-moz-document regexp("https?:\/\/gog.com.*") {
.galaxy-section-wrapper {
display: none !important;
@@ -188,6 +233,9 @@
}
@-moz-document regexp("https:\/\/\.*\.hh\.ru.*") {
+ /*
+ * Doing my best here to avoid the "work" of this company's webdevs.
+ */
.HH-Supernova-Footer,
.index-dashboard-applicant__banners,
.notification-manager,
@@ -215,18 +263,6 @@
}
}
-@-moz-document regexp("https?:\/\/tabs\.ultimate-guitar\.com.*") {
- #comments,
- #shots,
- a[rel*="noreferrer"],
- a[target="_blank"],
- div[class*="SiteWideBanner"],
- footer,
- iframe {
- display: none !important;
- }
-}
-
@-moz-document regexp("https?:\/\/developer\.mozilla\.org.*") {
.main-document-header-container.top-navigation {
display: none !important;
diff --git a/modules/nixfiles/profiles/headless.nix b/modules/nixfiles/profiles/headless.nix
index 369f457..520b97f 100644
--- a/modules/nixfiles/profiles/headless.nix
+++ b/modules/nixfiles/profiles/headless.nix
@@ -40,7 +40,7 @@ in {
optimise = {
automatic = true;
- dates = ["weekly"];
+ dates = ["daily"];
};
};