为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How do I edit an add on

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

more options

Normally add ons are perfect the way they are but recently I downloaded the add on "delaysites" to help with my procrastination.

It seems to work fine, but the list of websites it applies to is very small. One of the commentators states that the add on uses a blacklist to keep track of which websites it applies to and which it doesn't. It looks easy enough to edit if I could find the program.

My problem is I can't figure out where the add on is saved! When I go to the list in my browser there is no "edit" "options" or "open file here" button. When I search my computer I am unable to find the add ons folder or this add on in particular.

So my question is, how do I edit the add on? Where is it being saved to?

Normally add ons are perfect the way they are but recently I downloaded the add on "delaysites" to help with my procrastination. It seems to work fine, but the list of websites it applies to is very small. One of the commentators states that the add on uses a blacklist to keep track of which websites it applies to and which it doesn't. It looks easy enough to edit if I could find the program. My problem is I can't figure out where the add on is saved! When I go to the list in my browser there is no "edit" "options" or "open file here" button. When I search my computer I am unable to find the add ons folder or this add on in particular. So my question is, how do I edit the add on? Where is it being saved to?

所有回复 (3)

more options

It doesn't look like this Add-on allows the list of sites to be edited yet. The author says “This is an early version of the plug-in, and the blacklist is hardcoded for now.”

more options

You would have to edit the main.js file in the extension.

  • delaysites-0.3.rev97.3.1-fx.xpi/resources/alexischr-1/lib/main.js

An XPI file is a ZIP archive and you should be able to open the file directly for editing with most archive managers without the need to unpack the archive.


pageMod.PageMod({
  include: ["*.livejournal.com","*.facebook.com","*.reddit.com","http://www.google.com/reader/*","http://news.google.com/*","*.wikipedia.org","*.twitter.com"],
  contentScriptWhen: 'ready',
  contentScriptFile: data.url("blocker.js"),
});

You can use this button to go to the currently used Firefox profile folder:

more options
  • goes to profile folder*

.... I don't see it. *sets it to so I can see hidden folders*

  • opens everything I can find that even vaguely resembles what you are referring to and looks at it in notepad*

... I'm going to need you to spell it out for me much more clearly. I made it to the Firefox > Profiles directory but I can't find anything from there. Pretend your instructing a young child from that folder to reach the required text?