Skip to content
Merged

MV-3 #921

Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "prettier"],
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
},
"globals": {
"browser" :"readonly",
"chrome" :"readonly"
}
}
10 changes: 9 additions & 1 deletion package.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should look into using Dependabot for the dependencies. I'll look into implementing it.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"adm-zip": "^0.5.9",
"es-main": "^1.2.0"
},
"type": "module"
"type": "module",
"devDependencies": {
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7"
},
"scripts": {
"lint": "eslint"
}
}
34 changes: 14 additions & 20 deletions platform_spec/chromium/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"manifest_version": 2,
"manifest_version": 3,
"icons": {
"48": "icon/48.png",
"128": "icon/128.png",
Expand All @@ -17,29 +17,17 @@
"permissions": [
"alarms",
"storage",
"webRequest",
"webRequestBlocking",
"<all_urls>"
"webNavigation"
],
"options_ui": {
"page": "html/options.html",
"open_in_tab": true
},
"browser_action": {
"default_icon": {
"48": "icon/48.png",
"128": "icon/128.png",
"150": "icon/150.png",
"176": "icon/176.png",
"512": "icon/512.png"
},
"default_popup": "html/popup.html"
},
"background": {
"scripts": [
"background.js"
]
"service_worker": "background.js"

},
"action": {},
"content_scripts": [
{
"matches": [
Expand All @@ -51,13 +39,19 @@
"run_at": "document_start"
}
],
"web_accessible_resources": [

"web_accessible_resources": [{
"resources": [
"html/before-navigate.html",
"html/blocked.html",
"html/crowd-bypassed.html",
"html/firstrun.html",
"html/firstrun-noscript.html",
"html/options.html",
"icon/48.png"
]
"icon/48.png",
"injection_script.js",
"bypasses/*",
"helpers/*"],
"matches": ["<all_urls>"]
}]
}
Loading