From dd10e16eac0b73ea83a827ed62111701a6efa150 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Mon, 11 Aug 2025 12:07:08 +0900 Subject: [PATCH] Add bookmarks --- README.md | 7 +++++++ config/firefox-bookmarks.nix | 13 +++++++++++++ config/projects.nix | 18 ++++++++++++++++-- modules/firefox.nix | 21 +++++++++++++++++++++ 4 files changed, 57 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d75745..1ca8892 100644 --- a/README.md +++ b/README.md @@ -443,6 +443,13 @@ The fonts are automatically installed and configured system-wide through the nix - Enhanced tracking protection active - All telemetry and experiments disabled - Pocket integration removed +- Firefox View completely disabled (button hidden via userChrome.css) + +### UI Customizations: +- Firefox View functionality and button removed entirely +- Password manager and form autofill disabled +- Search suggestions disabled for privacy +- Sidebar features hidden ### Usage: ```bash diff --git a/config/firefox-bookmarks.nix b/config/firefox-bookmarks.nix index d725ed0..6faf97d 100644 --- a/config/firefox-bookmarks.nix +++ b/config/firefox-bookmarks.nix @@ -50,6 +50,19 @@ } ]; } + { + name = "Scholar"; + bookmarks = [ + { + name = "OpenReview"; + url = "https://openreview.net/"; + } + { + name = "CMT"; + url = "https://cmt3.research.microsoft.com/Conference/Recent"; + } + ]; + } { name = "RSS"; url = "https://rss.nas.yanlincs.com"; diff --git a/config/projects.nix b/config/projects.nix index b7960bb..3519737 100644 --- a/config/projects.nix +++ b/config/projects.nix @@ -111,8 +111,8 @@ ]; }; - daki3 = { - session = "DAKI3"; + daki3c = { + session = "DAKI3-C"; description = "DAKI3 course"; windows = [ { @@ -132,6 +132,20 @@ ]; }; + daki3g = { + session = "DAKI3-G"; + description = "DAKI3 group supervision"; + windows = [ + { + name = "group"; + path = "/Users/yanlin/Documents/Projects/DAKI3 Semester Project Group"; + ai = true; + git = true; + shell = false; + } + ]; + }; + matmeet = { session = "MaterialMeet"; description = "Material Meeting Slides"; diff --git a/modules/firefox.nix b/modules/firefox.nix index 5959cd5..8ba403d 100644 --- a/modules/firefox.nix +++ b/modules/firefox.nix @@ -1,6 +1,20 @@ { config, pkgs, lib, ... }@args: { + # Create userChrome.css to hide Firefox View button + home.file.".mozilla/firefox/yanlin/chrome/userChrome.css".text = '' + /* Hide Firefox View button */ + #firefox-view-button { + display: none !important; + } + + /* Also hide from tab context menu */ + #context_moveTabOptions > menuitem[data-l10n-id="tab-context-send-tabs-to-device"] + menuseparator, + #context_moveTabOptions > menuitem[command="Browser:SendTabToDevice"] { + display: none !important; + } + ''; + programs.firefox = { enable = true; @@ -132,6 +146,10 @@ # Hide UI elements "browser.tabs.firefox-view" = false; + "browser.tabs.firefox-view-max-entries" = 0; + "browser.tabs.firefox-view-next" = false; + "browser.firefox-view.feature-tour" = "{\"screen\":\"\",\"complete\":true}"; + "browser.firefox-view.view-count" = 0; "identity.fxaccounts.enabled" = false; # Disable all search suggestions @@ -160,6 +178,9 @@ # Language and translation settings "intl.accept_languages" = "en-US,en,zh-CN,zh-TW,zh-HK,zh"; # Accept English and all Chinese variants "browser.translations.automaticallyPopup" = false; # Prevent automatic translation suggestions + + # Enable userChrome.css support + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; }; };