搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Make firefox load a script on startup or for a particular url pattern

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 sreyan32

more options

Is there any way for Firefox to load a local Javascript file that is stored on the computer to load on startup ? Also similarly is there any way for it to be loaded if and only if the user opens a particular url pattern ? I am not talking about recognizing the exact pattern, maybe just the domain. For example all urls that have the domain of xyz.com. In the first case I want the script to be loaded for all webpages, and in the second case I want it to be loaded for only a select set of webpages. The script must be stored locally on the computer.

Is there any way for Firefox to load a local Javascript file that is stored on the computer to load on startup ? Also similarly is there any way for it to be loaded if and only if the user opens a particular url pattern ? I am not talking about recognizing the exact pattern, maybe just the domain. For example all urls that have the domain of xyz.com. In the first case I want the script to be loaded for all webpages, and in the second case I want it to be loaded for only a select set of webpages. The script must be stored locally on the computer.

所有回复 (2)

more options

See if this will help you. http://en.wikipedia.org/wiki/Bookmarklet

more options

the-edmeister said

See if this will help you. http://en.wikipedia.org/wiki/Bookmarklet

No unfortunately this does not help me. Since the page will not be bookmarked. Also what about loading a script for the whole browser ? Whenever the user makes a request for a web page matching a url pattern then a javascript file present in the local disk will be loaded.

What about the page-mod sdk ? Will that help me ?