zombieFox / nightTab

A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks with nightTab.
https://zombiefox.github.io/nightTab/
GNU General Public License v3.0
1.78k stars 254 forks source link

Just switched to nightTab, have a couple of questions #319

Open 2ndHouse opened 2 years ago

2ndHouse commented 2 years ago

Just switched to this Firefox addon from FVD, I have to say that it is really impressive. I'm trying to figure out if there are solutions or work arounds for two of the minor problems I'm experiencing from the switch.

  1. Is it possible to open bookmarks and groups in new background tabs? I don't see an option for opening tabs in the background. I'm aware that holding control can do that for individual bookmarks, but it doesn't work for groups. It would be nice to have checkbox options to just open tabs/groups in the background.

  2. Is there a way to have nightTab not revert to default settings in private windows/tabs? FVD would remember settings even in private mode, but nightTab does not seem to. I'm wondering if there is a work around or a Firefox setting I can change to make it work in such a way.

2ndHouse commented 2 years ago

OK, I fixed opening bookmarks in background by editing about:config, but it still doesn't work for groups. If you don't have any plans to implement open in background options sometime, would it be possible to make the "open all bookmarks in group" button obey the users about:config preference?

metruzanca commented 2 years ago

@2ndHouse

obey the users about:config preference

Do you mind sharing which specific rule you're talking about? An option for open all in background as like a toggle so it will always open in background could be possible.

2 [...]

Unfortunately no. Nighttab is a minimalist and privacy focussed start page with no browser permissions (aside from changing new tab page). Its very likely that FVD uses firefox account storage to save your data, where as nighttab uses localstorage. (Once you're happy with your setup btw, might be worth saving an export as like I mentioned nighttab doesn't save data in your firefox account)

2ndHouse commented 2 years ago

Do you mind sharing which specific rule you're talking about? An option for open all in background as like a toggle so it will always open in background could be possible.

Well I just changed all the rules that started with "browser.tabs.load" to true as that helped me with minor annoyances I have had with Firefox for awhile now. It made the regular bookmarks open in background but not the groups. Not even control clicking the groups button opened them in the background.

These two rules in particular should probably be obeyed by the groups button: browser.tabs.loadDivertedInBackground browser.tabs.loadInBackground

I do hope to see them make it in as options in the future. Maybe two separate options, one for just bookmarks and one for whole groups?

Nighttab is a minimalist and privacy focussed start page with no browser permissions...

Yeah I figured it had to do with permissions. Just a minor annoyance, but something I can live with.

Thanks for the wonderful addon, you've done an amazing job! It's overall the best new tab addon I've used.

metruzanca commented 2 years ago

but not the groups. Not even control clicking the groups button opened them in the background.

That's because the groups aren't links. Theres no way to make "link groups" in html, nighttab needs to open them via javascript.

These two rules in particular should probably be obeyed by the groups button: browser.tabs.loadDivertedInBackground browser.tabs.loadInBackground

Unless these rules fundamentally change how tabs get opened in the browser, we cannot "obey" them. Websites, webapps & extensions cannot read changes to firefox settings/config. Its like this for security reasons.


Yeah, potentially we could see adding a checkbox for links/groups where when enabled, clicking them opens in background instead of foreground.

2ndHouse commented 2 years ago

Yeah, potentially we could see adding a checkbox for links/groups where when enabled, clicking them opens in background instead of foreground.

OK, hope to see it, thanks for the replies @metruzanca

zombieFox commented 2 years ago

Thanks @2ndHouse and @metruzanca for details and thoughts on this topic.

Reading up on opening links in the background while keeping the current tab in focus seems like fighting an uphill battle. There doesn't seem to any recommenced way to achieve this - its mostly hacky stuff that goes against expected user behaviour or user preferences set at the browser level.

Yeah, potentially we could see adding a checkbox for links/groups where when enabled, clicking them opens in background instead of foreground.

Do you have references or docs on how to achieve this?