mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
open-my-page
What it does
This extension includes:
- a background script, "background.js"
- a browser action
- a page "my-page.html"
All it does is: when the user clicks the button, open "my-page.html" in a new tab.
What it shows
- how to listen for browser action clicks in a background script
- how to open a page packaged with your extension