Skip to content

Commit

Permalink
feat: upgrade to Manifest V3
Browse files Browse the repository at this point in the history
Co-authored-by: Marcus <marcustyphoon@gmail.com>
  • Loading branch information
AprilSylph and marcustyphoon committed Jan 10, 2025
1 parent 2fe52a3 commit 63e9d38
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
WEB_EXT_ID: ${{ secrets.WEB_EXT_ID }}
chrome:
name: Chrome
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
chrome.browserAction.onClicked.addListener(() => chrome.runtime.openOptionsPage());
chrome.action.onClicked.addListener(() => chrome.runtime.openOptionsPage());

const handledRequests = new Map();

Expand Down
19 changes: 11 additions & 8 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "Outbox for Tumblr",
"version": "1.0.4",

Expand All @@ -10,7 +10,7 @@
"128": "icons/128.png"
},

"browser_action": {
"action": {
"default_icon": {
"16": "icons/16.png",
"48": "icons/48.png",
Expand All @@ -19,27 +19,30 @@
},

"background": {
"scripts": [ "background.js" ],
"persistent": true
"service_worker": "background.js",
"scripts": [ "background.js" ]
},
"homepage_url": "https://github.com/AprilSylph/Outbox-for-Tumblr#readme",
"permissions": [
"storage",
"webRequest",
"webRequest"
],
"host_permissions": [
"*://*.tumblr.com/*"
],
"optional_permissions": [
"optional_host_permissions": [
"<all_urls>"
],
"options_ui": {
"page": "outbox.html",
"open_in_tab": true
},

"minimum_chrome_version": "80",
"minimum_chrome_version": "121",
"browser_specific_settings": {
"gecko": {
"strict_min_version": "74.0a1"
"id": "{ff20bd71-d65d-439f-b48a-c12627f3f2a3}",
"strict_min_version": "128.0"
}
}
}

0 comments on commit 63e9d38

Please sign in to comment.