Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to chrome extension manifest version 2 -> 3 #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
69 changes: 37 additions & 32 deletions manifest.json
@@ -1,34 +1,39 @@
{
"name": "YouTube Blocker",
"version": "3.4",
"manifest_version": 2,
"description": "Block non educational YouTube videos",
"icons": {
"128": "resources/icon.png"
},
"background": {
"scripts": ["js/jquery-3.4.1.min.js","js/background.js"],
"persistent": true
},
"content_scripts": [
{
"matches": ["*://*.youtube.com/*"],
"run_at": "document_idle",
"js": ["js/jquery-3.4.1.min.js", "js/contentScript.js"]
}
],
"browser_action": {
"default_title": "YouTube Blocker",
"default_popup": "pages/popup.html"
},
"content_security_policy": "script-src 'self' https://ajax.googleapis.com https://www.googleapis.com; object-src 'self'",
"options_page": "pages/options.html",
"permissions": [
"notifications",
"storage",
"background",
"*://*.youtube.com/*",
"tabs",
"webNavigation"
]
"name": "YouTube Blocker",
"version": "3.5",
"manifest_version": 3,
"description": "Block non educational YouTube videos",
"icons": {
"128": "resources/icon.png"
},
"background": {
"scripts": ["js/jquery-3.4.1.min.js","js/background.js"],
"persistent": true
},
"content_scripts": [
{
"matches": ["*://*.youtube.com/*"],
"run_at": "document_idle",
"js": ["js/jquery-3.4.1.min.js", "js/contentScript.js"]
}
],
"browser_action": {
"default_title": "YouTube Blocker",
"default_popup": "pages/popup.html"
},
"content_security_policy": {
"script-src": "self https://ajax.googleapis.com https://www.googleapis.com",
"object-src": "self"
},
"options_page": "pages/options.html",
"permissions": [
"notifications",
"storage",
"background",
"tabs",
"webNavigation"
],
"host_permissions": [
"*://*.youtube.com/*"
]
}