How to execute a javascript every time i open a specific website in Firefox?
Actually, the problem is every time i access zedge.net i have to select my phone from the list. Now, what i can do is, once i 开发者_运维问答click on 'no phone selected' i can write: javascript:zlibQuicklinkPhone(2, 1476, 0);
in address bar and pressing Return key will select my phone. But i want this to be done automatically. How can i do this?
Note: i am not using greasemonkey, but if this problem can't be solved without it, then i can install that too.
If you already have a plan to use greasemonkey, install it and
- create "New User Script"
- give it a name, and set Includes
http://zedge.net/*
- in post body,
- set checkbox of 'no phone selected' to true with script
- and on next line
zlibQuicklinkPhone(2, 1476, 0);
basically thats all.
You could put the javascript into a bookmarklet: Create a new bookmark and replace the http link with our javascript (including the "javascript:" part). When you place the bookmarklet in the toolbar, your phone number is just one click away. It's not automatic, but it's the best you can do without GM.
精彩评论