this post was submitted on 18 Mar 2024
32 points (88.1% liked)
Firefox
17952 readers
458 users here now
A place to discuss the news and latest developments on the open-source browser Firefox
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
On windows (where I am trapped), I can make a script read the clipboard (or even a script directly in my clipboard manager, ditto) but what I don't know is how to make firefox open URLs in a specific window.
why does it need to be from the clipboard?
Because that is where they are and is convenient for me. I already have a matching, copy selected tabs to clipboard, button.
so you copy opened tabs to clipboard and want to re-open another copy?
It is a list of URLs, it can come from many places. I'm not just closing and reopening 100+ tabs from and to the same place. Example copying tabs from one computer, or vm, to another.
The list could also be out of a text editor.
You know that if you setup a mozilla account, you can view tabs from any device/vm? and its supposed to be e2ee
Yes, I use that between my main pc and phone. But doing that for multiple hundreds of tabs gets quite clunky compare to copy and pasting lists of urls.
I loved to see the statistics on how often you use each of those tabs
It really depends what the content of each tab is and if it has what I'm looking for. The whole thing about having loaded tabs versus bookmarks is that you can search and skim them, without a 5-10 second pause every time you go to the next one. Not that the bookmark manager even has a "magazine" system that would let you skip between bookmark with a single button like a tab does. Still this is very far from optimal. Firefox has an opaque tab data discard system and no tools at all for searching all content in all tabs. It also lacks a automatic AI tab categorization feature. You can't even assign tags to tabs, even manually.
if firefox is the default browser, I guess just
start "" "https://your.url.here.foo"
, as per https://superuser.com/a/36730otherwise, I guess you could just cd to firefox's directory and do the same
firefox.exe urlhere
as for specific window... yea that might be tad hard. https://wiki.mozilla.org/Firefox/CommandLineOptions doesn't seem to have any way to indicate any specific instance/window from cli.
could be firefox handles those internally, kinda seems like urls open up in the window which was last active. So.. I guess you could start the script by starting firefox with
--new-instance
or--new-window
, and patiently wait until urls are open? I guess.Maybe it's time I learn to use violent monkey