搜尋 Mozilla 技術支援網站

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

了解更多

Where can I view the source code of an extension on https://addons.mozilla.org/ without installing the extension?

  • 7 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 Shadow110

more options

I just can't find it even though the source code is available for every extension, correct? Shouldn't it be very upfront how to view the code so it's very easy to take a look, fork and validate?

I just can't find it even though the source code is available for every extension, correct? Shouldn't it be very upfront how to view the code so it's very easy to take a look, fork and validate?

被選擇的解決方法

Opps must have commented in the wrong file. Unless my comment was deleted.

So actually would say this is as solved as it is going to get, and should mark this as Solved so others can find the Solution and know what you know for now. To submit suggestions for new or changed features, may I suggest: Feedback: https://qsurvey.mozilla.com/s3/FirefoxInput/ or https://discourse.mozilla.org/c/add-ons

從原來的回覆中察看解決方案 👍 0

所有回覆 (7)

more options

hi, instead of hitting the install button you can right-click it and save the extension's .xpi file locally - that's just a different file extension for a zip container so you can inspect the contents of an addon this way...

more options

Hi Philipp, thanks for the information. I hoped there was an easier way to inspect the code, but that's something. Maybe this process can be streamlined with a browser view? One would also not know or even guess that was possible. I think information about that would be very nice to have.

more options

Not sure if I should mark this question as solved. Technically it's solved since I now know how to view the code. However I feel like the real problem is that people can't find out how to view the code.

more options

there has been a sourcecode viewer on addons.mozilla.org for extensions which enabled that till mid last year - reading this blog post doesn't make it appear likely that something like this will come back in the foreseeable future unfortunately: https://blog.mozilla.org/addons/2017/05/26/view-source-links-removed/

more options

I think it would be great if someone could expose a view based on issues likely to be of concern to the paranoid user. For example, what sites might connections be made to other than the site in the current tab?

If we're just going to have to read all of the code for ourselves with no bonus features, I'm not sure it's more convenient to view it online than in a text editor, which may have better syntax coloring and search features.

more options

Philipp, thanks a lot, that background information is interesting.

jscher2000 that is a valid point with the syntax highlighting etc. I also like your idea on this view of issues for paranoid users.

However I still think a sourcecode viewer were handy if you just quickly want to look up something.

And there definitely should be a note somewhere how to download the files without installing for inspection as I couldn't find out how to do it.

more options

選擇的解決方法

Opps must have commented in the wrong file. Unless my comment was deleted.

So actually would say this is as solved as it is going to get, and should mark this as Solved so others can find the Solution and know what you know for now. To submit suggestions for new or changed features, may I suggest: Feedback: https://qsurvey.mozilla.com/s3/FirefoxInput/ or https://discourse.mozilla.org/c/add-ons