搜索 | 用户支持

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

详细了解

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

  • 7 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 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