搜尋 Mozilla 技術支援網站

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

了解更多

Detect whether an add-on is installed

  • 2 回覆
  • 2 有這個問題
  • 6 次檢視
  • 最近回覆由 cor-el

more options

Hi,

Is there a way to detect in Java Script whether a certain add-on is installed? if so, can you please share a code example?

Thanks, B.

Hi, Is there a way to detect in Java Script whether a certain add-on is installed? if so, can you please share a code example? Thanks, B.

所有回覆 (2)

more options

A quick search resulted in these links, please check if these help you

  1. Using navigator.plugins
  2. Check if addon is installed or not
  3. Check if Firefox addon is installed on SO
  4. contentaccessible on MDN

Please check if any of the above help you in your query.

Thank you

more options

That is not possible for security and privacy reasons.

  • Bug 292789 - SCRIPT tags can access chrome