How to open a web page from a bash script?
$ xdg-open http://your/url
However, it opened Chrome by default while I’m a Firefox believer. Here is the remedy:
$ xdg-settings set default-web-browser firefox.desktop $ xdg-open http://your/url
Now it works as it is supposed to work.
You visit some websites quite often but the focus is not put on the input field, so you need to click there each time. Google puts the focus on the input field when you want to do a query. Why can’t other sites do the same?
I got fed up so I wrote a Greasemonkey script that does the autofocus job for me. Thus, after opening such a site, I can type immediately.
You can find the script here: https://github.com/jabbalaci/AutoFocus . The script is very simple and can be customized easily. Currently it contains 2 rules: one for Wikipedia, and one for IMDb.
I use several machines and I would like to create a unified list that contains my favourite Firefox add-ons. This list could be kept in Dropbox, thus I could access it on all my machines. How to generate a list of installed add-ons?
The add-on Addon List Dumper can do exactly this. Here is a screenshot about this add-on:
There are certain sites where links are randomly redirected to other sites and if you want to visit the intended link, you need to click on the link three or four times and then maybe you are sent to the correct URL.
I found a Firefox add-on called Redirect Bypasser that allows you to visit the correct URL. On a link it shows a little icon, and the little icon is linked to the good URL.
Alt+Enter (no need to release the
If you want to use several Firefox instances with different profiles, read this post.
- close Firefox
- Start Firefox Profile Manager (
firefox -P) and create a new profile. Give a specific name to the new profile, e.g. “
- Launch Firefox normally. It will start the default (old) profile.
- Start another Firefox instance with the new profile:
firefox -P NewProfile -no-remote