How I use the Open With extension
· updated
A very useful browser extension is Open With. Although it hasn’t been updated for a while, I’ve yet to find something to replace it.
Open With presents itself in the Chrome web store this way: “Quickly test out your web pages in Edge, Firefox, Safari, or Opera.” However, it is much more powerful than that: it actually allows you to run any external program on your computer passing the URL of the current tab or selected link.
After installing the extension, you should define a list of commands. Here are a few from mine.
Other browsers
The most obvious use for this extension is to open a page in another browser. For that, you should add your browsers to the list. Thankfully, this is easy, as the extension tries to detect your installed browsers automatically.
Incognito mode
Sometimes you want to open the page in incognito mode. So, for each browser (even the current one), I also add an entry for that.
Temporary browser profile
Now and then you might stumble upon a broken webpage and wonder if it is conflicting with some of your extensions or settings. In that case, opening it in a clean browser profile might be useful.
The exact command for running a temporary profile depends on your browser. For some, like Chromium, you just run chromium --temp-profile. For other browsers, you are better off writing a small script to do the job.
Add the command to your Open With list, and now with just a click you open the page in a clean browser profile that will be removed from disk when you close it.
MPV
Another entry on my list is for MPV. This allows me to play individual videos and even entire YouTube playlists in that fantastic player. By the way, I wrote a whole article about that.
youtube-dl
With a click, the page URL is sent to youtube-dl, which will try to download the video or playlist for you. I also have a separate entry for youtube-dl -x which only downloads the audio. Please don’t use it for anything illegal.
Wishlist
A few features I wish Open With had:
- Support for sending multiple tabs at once.
- An option to import/export settings. The lack of it makes switching browsers or profiles a pain.
- Better keyboard bindings.
Have comments? Email me.
Updates to this post
- Aug 03, 2022
Add note introducing dmenu_url.