How can I automatically run a JavaScript script each time I navigate to a particular site using Firefox?

Opening a specific website always prompts me to choose my phone manually. I want the process to run a script automatically. For example:

javascript:chooseDevice(3, 2040, 1);

I’m open to using an add-on if required.

hey dancingbird, u might try greasemonkey. i used it to auto-run my scripts with a proper @include rule. so u can just drop your code in the user script and it runs every time. hope it helps!