From 283f6cd29f04e8ef86501c099576ef3605c491f6 Mon Sep 17 00:00:00 2001 From: kenji Date: Mon, 5 Jan 2026 15:53:56 -0600 Subject: [PATCH] feat(firefox): implement URL-based dynamic newtab for tridactyl Automatically sets the newtab page based on the initial active tab URL, enabling modular per-profile configuration. --- apps/firefox/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/firefox/default.nix b/apps/firefox/default.nix index b72e010..35250ea 100644 --- a/apps/firefox/default.nix +++ b/apps/firefox/default.nix @@ -38,6 +38,9 @@ bind J tabnext bind K tabprev unbind + + " Modular NewTab: Detect profile by initial URL and set newtab accordingly + js tri.browser.tabs.query({active: true, currentWindow: true}).then(tabs => { if (tabs.length > 0) { const url = tabs[0].url; if (url.includes("youtube.com")) { tri.config.set("newtab", "https://youtube.com"); } } }) ''; programs.firefox = {