As the title says, I want to run a piece of javascript whenever firefox starts.
My actual problem is that the firefox window always opens at 0,0 in the screen. I am on a debian system, with dwm as my window manager. I can successfully change the size of new firefox windows (by passing in the -geometry commandline options), but all attempts to coax it to remember its location have failed.
What works is the following bookmarklet:
javascript:window.moveTo (32, 32);
So now, my problem could be resolved if I could get this piece of javascript to run everytime firefox starts. I've tried putting it in user.js
(without the 'javascript:'), but to no avail.