Skip to content

Commit

Permalink
TEMP Add support for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Feb 25, 2024
1 parent b558f4a commit 2ff4e47
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
11 changes: 9 additions & 2 deletions manifest/chrome-manifest-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"optional_permissions": [
"declarativeContent",
"webNavigation"
]
}
],
"optional_host_permissions": [
"*://*/*"
],
"background": {
"service_worker": "./js/background.js",
"type": "module"
}
}
14 changes: 8 additions & 6 deletions manifest/firefox-manifest-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
"strict_min_version": "113.0"
}
},
"optional_permissions": [
"*://*/*"
],
"background": {
"persistent": false
"scripts": [
"background.js"
]
},
"permissions": [
"scripting"
],
"browser_action": {
"action": {
"default_area": "navbar"
}
}
}
7 changes: 0 additions & 7 deletions manifest/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@
"host_permissions": [
"https://*.bilibili.com/*"
],
"optional_host_permissions": [
"*://*/*"
],
"action": {
"default_title": "SponsorBlock",
"default_popup": "popup.html",
Expand Down Expand Up @@ -140,10 +137,6 @@
}
]
},
"background": {
"service_worker": "./js/background.js",
"type": "module"
},
"icons": {
"16": "icons/IconSponsorBlocker16px.png",
"32": "icons/IconSponsorBlocker32px.png",
Expand Down

0 comments on commit 2ff4e47

Please sign in to comment.