I want to develop an extension that activates only for a specific domain.
I don't want it to appear in browser menus while not browsing this specific domain.
Is it possible to do that?
Possible: for the menus you could add a popupshowing listener that checks the currently loaded URL (docs for the context menu, where this would make the most sense).
You can also update always visible elements (like status bar icons) whenever the currently displayed URL is changed. This is done via gBrowser.addEventListener.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With