this post was submitted on 07 Sep 2023
45 points (97.9% liked)

Firefox

17952 readers
388 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

Say I define different contexts or workspaces. So in my address bar I can type work and it will open up 5 pages that will be associated to that keyword. Then I can type bored and it will open up my 4 defined pages associated to that keyword.

I am NOT asking about pinning pages to the start/home page, and I am NOT asking about loading websites when Firefox starts up (because I don't want to always load the same things every time I launch ffox). I am also not asking about pinning tabs.

top 23 comments
sorted by: hot top controversial new old
[–] [email protected] 64 points 1 year ago (2 children)

You can create a bookmark folder with all the pages you want inside, e.g. bored. Right click folder > open all bookmarks. Hope that's helpful.

[–] Icaria 24 points 1 year ago (1 children)

You can also middle-click the bookmark folder itself.

Or you can open a second window, open all your work sites, then pin the tabs. If you have at least one pinned tab in the first window as well, even if that pinned tab is just about:blank, both windows will re-open when reopening firefox.

[–] [email protected] 5 points 1 year ago (2 children)

For some reason, I've never been able to get pinned tabs to actually persist. I'll pin the tabs, and then when I shut down Firefox and bring it back up later, the tabs are randomly gone / no longer pinned for some reason.

[–] [email protected] 4 points 1 year ago (1 children)

Some kind of privacy addon interfering maybe? Can't say I've ever had that issue.

[–] [email protected] 2 points 1 year ago (1 children)

I can't think of any that would trigger the issue (I don't actually use a lot of privacy oriented extensions, uBlock Origin probably being the only one most people would consider as such), and I remember the issue going back pretty far before I started using extensions in general.

There's no "proper" way to close Firefox right? Just close the window itself? Sounds silly, but that is the only thing I could think of over the last few years when I tried to use it.

[–] Icaria 4 points 1 year ago (1 children)

Oh, there's your mistake. If you close one window at a time, Firefox thinks you no longer want that window/pinned tabs, and only restores the last window still open when restarting. Close Firefox with Ctrl+Shift+Q or go to the hamburger menu and exit.

[–] [email protected] 2 points 1 year ago

Ahh that would explain it then, that's going to take some time to retrain my muscle memory on closing Firefox then 😅

[–] [email protected] 6 points 1 year ago

Interesting. This basically is what I want, thanks!

[–] [email protected] 18 points 1 year ago (2 children)

Other proposed solutions are valid, I just wanted to add that...

So in my address bar I can type work and it will open up 5 pages that will be associated to that keyword.

To get exactly this behaviour, you can have a bookmarklet with the keyword work and this in the URL field:

javascript:(() => { ['https://ddg.gg', 'https://google.com'].forEach(w => window.open(w)) })();

Some notes:

  • You can change the list of URLs with what you want to be open.
  • The first time you run it, it will ask you to allow it to open multiple tabs. But it should remember the answer for next executions.
  • Is possible to add arguments for advanced use cases
[–] [email protected] 2 points 1 year ago

That looks great, I really need to get into bookmarklets.

[–] [email protected] 2 points 1 year ago (2 children)

This seems like a really cool implementation, but I cannot get it to open anything beyond the first site I put into the array. I am never prompted about opening multiple tabs, either.

[–] [email protected] 5 points 1 year ago (1 children)

In Firefox you can add about:newtab To the pop-up exceptions list and it should work.

[–] [email protected] 5 points 1 year ago (1 children)

If you attempt in a new window you can also add about:home to the exceptions.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Great info!

@[email protected] adding these exceptions was the necessary trick.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

That's weird. The only reason I can think of is, if you have tweaked with userChrome.css, the toolbar with the question may not be visible. I say that because it has happened to me :). You can try restarting with add-ons disabled (via about:profiles) and see if there is any difference.

EDIT: Another option would be that there is some setting I've changed to allow this. But if I did, I don't remember doing it :/.

Here it is how it should look like:

[–] [email protected] 2 points 1 year ago (1 children)

I did give it a shot in a clean profile, but no difference. If I uncover a solution later I will definitely post my findings.

[–] [email protected] 1 points 1 year ago

Then I have no idea :/.

Good luck!

[–] wmrch 13 points 1 year ago

Bookmark folders as a built-in solution. The OneTab extension if you'd like a little more advanced features.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

I use tabs aside, it lets you define and load/unload sets of tabs from the sidebar. Does pretty much what you're asking for minus the addressbar keywords.

[–] [email protected] 1 points 1 year ago

Would a terminal command be acceptable?

[–] [email protected] 1 points 1 year ago

probably not the best solution in your use case, but you can open tabs in an existing Firefox instance via a shell script using the -new-tab flag.