Hello,
I created a small addon that adds clipboard functionality for our web app FastX.
I only want this addon enabled when users go to the FastX page.
However, we do not host FastX. Customers purchase the entire server and host it themselves.
I am trying to figure out how to edit the manifest to allow the addon only on specific hosts, when the host is not known beforehand.
Here is my manifest. The “matches” portion matches the pages that this would be valid in, but any website that has this url would also match. Is there a better way to do this? Is there a different way my web page can send a message to an addon to load it?
{
“manifest_version”: 2,
“name”: “FastX”,
“version”: “1.0”,
“description”: “Adds extra functionality to FastX sessions.”,
“icons”: {
“48”: “fastx-48.png”,
“96”: “fastx-96.png”
},
“browser_specific_settings”: {
“gecko”: {
“id”: “fastx@starnet.com”,
“strict_min_version”: “63.0”
}
},
“content_scripts”: [
{
“matches”: [
“https:///client/connect”,
“https:///client/shortcut”,
“https:///client/custom”,
“https:///client/share”
],
“js”: [“fastx.js”]
}
],
“permissions”: [
“clipboardRead”,
“clipboardWrite”
]
}