How can I open a web page when someone installs my firefox extension?
Go to solution
Solved by MotionFlex,
Essentially, what guitargirl15 said. You will also want to check out: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled. This event handler can be added to your background page, and will fire whenever a user install/update your extension.
Something like this:
browser.runtime.onInstalled.addListener(details => { if(details.reason == "install") { browser.tabs.create({ url: "https://example.com" //Your page goes here }); } });
You can also store the page inside your extension and use:
browser.runtime.getURL("/path/to/mywebpage.html")
to get a URL for it.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now