开发者

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

  1. create "New User Script"
  2. give it a name, and set Includes http://zedge.net/*
  3. in post body,
    1. set checkbox of 'no phone selected' to true with script
    2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜