Skip to content

Commit

Permalink
Migrate to MV3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneezry committed Feb 1, 2023
1 parent 7e68e0d commit 5a79d41
Show file tree
Hide file tree
Showing 31 changed files with 1,207 additions and 11,117 deletions.
6 changes: 6 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@
"permission_identity": {
"message": "Allows sign in to 3rd party storage services."
},
"permission_alarms": {
"message": "Allows auto-lock to work."
},
"permission_scripting": {
"message": "Inject scripts into he current tab to scan QR codes and allow auto-fill to work."
},
"permission_clipboard_write": {
"message": "Grants write-only access to the clipboard to copy codes to clipboard when you click on the account."
},
Expand Down
42 changes: 23 additions & 19 deletions manifests/manifest-chrome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "__MSG_extName__",
"short_name": "__MSG_extShortName__",
"version": "6.3.4",
Expand All @@ -10,7 +10,7 @@
"48": "images/icon48.png",
"128": "images/icon128.png"
},
"browser_action": {
"action": {
"default_icon": {
"19": "images/icon19.png",
"38": "images/icon38.png"
Expand All @@ -29,7 +29,7 @@
},
"options_ui": {
"page": "view/options.html",
"chrome_style": true
"open_in_tab": false
},
"storage": {
"managed_schema": "schema.json"
Expand All @@ -41,32 +41,36 @@
]
},
"background": {
"scripts": [
"dist/background.js"
],
"persistent": true
"service_worker": "dist/background.js"
},
"sandbox": {
"pages": [
"view/argon.html"
],
"content_security_policy": "sandbox allow-scripts; script-src 'self' 'unsafe-eval';"
]
},
"permissions": [
"activeTab",
"storage",
"identity"
"identity",
"alarms",
"scripting"
],
"optional_permissions": [
"clipboardWrite",
"contextMenus",
"https://www.google.com/",
"https://*.dropboxapi.com/*",
"https://www.googleapis.com/*",
"https://accounts.google.com/o/oauth2/revoke",
"https://graph.microsoft.com/me/*",
"https://login.microsoftonline.com/common/oauth2/v2.0/token"
"contextMenus"
],
"optional_host_permissions": [
"https://www.google.com/",
"https://*.dropboxapi.com/*",
"https://www.googleapis.com/*",
"https://accounts.google.com/o/oauth2/revoke",
"https://graph.microsoft.com/me/*",
"https://login.microsoftonline.com/common/oauth2/v2.0/token"
],
"offline_enabled": true,
"content_security_policy": "script-src 'self'; font-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; connect-src https://www.google.com/ https://*.dropboxapi.com https://www.googleapis.com/ https://accounts.google.com/o/oauth2/revoke https://login.microsoftonline.com/common/oauth2/v2.0/token https://graph.microsoft.com/; default-src 'none'"
}
"content_security_policy": {
"extension_pages": "script-src 'self'; font-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; connect-src https://www.google.com/ https://*.dropboxapi.com https://www.googleapis.com/ https://accounts.google.com/o/oauth2/revoke https://login.microsoftonline.com/common/oauth2/v2.0/token https://graph.microsoft.com/; default-src 'none'",
"sandbox": "sandbox allow-scripts; script-src 'self' 'unsafe-eval';"
}
}

Loading

0 comments on commit 5a79d41

Please sign in to comment.