Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

How to detect if WebExtension is installed?

  • 3 답장
  • 2 이 문제를 만남
  • 4 보기
  • 최종 답변자: Alixandir

more options

I'm developing a firefox add on, using the new web extension mechanism. Now I need to check in my web page if the extension is installed. I know that in chrome you have: chrome-extension://nnhadaeaehpngjcegobbnogakdapkiph/{your content} Is there something like that in firefox? Is there an alternative way?

Best,

Ofer

I'm developing a firefox add on, using the new web extension mechanism. Now I need to check in my web page if the extension is installed. I know that in chrome you have: chrome-extension://nnhadaeaehpngjcegobbnogakdapkiph/{your content} Is there something like that in firefox? Is there an alternative way? Best, Ofer

모든 댓글 (3)

more options

hi ofer, for developement related questions it's best to ask in the official addon forum at https://discourse.mozilla-community.org/c/add-ons since there will be more mozilla staff from the addons team and other devs reading along there...

more options
more options

The best way is to add any class or data attribute to body or another part of DOM in case if you have content script. Also you can use sendMessage API and ask extension about status.

I hope that Mozilla team will support chrome method to request is extension installed.

But for now - little DOM modification the best way to deal with it :) And "has" cross browsers support.