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 = {