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.
This commit is contained in:
kenji
2026-01-05 15:53:56 -06:00
parent d3d9371e71
commit 283f6cd29f
+3
View File
@@ -38,6 +38,9 @@
bind J tabnext
bind K tabprev
unbind <C-e>
" 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 = {