為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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?