Create cross browser compatible extensions using WebExtentions API
By
Supriya
They are small software modules for customizing a web browser.
colorZilla
toby
Muzli
Grammarly
Stylus
Tree Style Tab
Dark Reader
LastPass
webMail Ad Blocker
Google Chrome and Opera - extension API
Fire Fox - WebExtensions API
your manifest.json can contain pointers to several other types of files
independent of the particular web page or window
you can use any webExtensions API
Background page
"background": {
"scripts": ["background-script.js"]
}
"background": {
"page": "background-page.html"
}
using the background key
windows.create()
tabs.create()
cannot directly access normal page scripts. But uses
window.postMessage()
they are blocked on some domains
content_scripts key
contentScripts API
tabs.executeScript() API
"web_accessible_resources": [
"images/my-image.png"
]