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

Use new version for Chrome! #1

Open
zydjohnHotmail opened this issue Jul 10, 2022 · 0 comments
Open

Use new version for Chrome! #1

zydjohnHotmail opened this issue Jul 10, 2022 · 0 comments

Comments

@zydjohnHotmail
Copy link

Hello:
I need one chrome extension in CRX format for Windows 10 (Version 21H2).
My current chrome browser version is: Version 103.0.5060.114 (Official Build) (64-bit)
When I tried to load your extension, I got warning from Chrome developer tools, the version 2 is depreated, so I changed it to use version 3, like the following:
{
"name": "Ad Blocker",
"description": "Blocks ads on any website",
"manifest_version": 3,
"version": "1.01",
"background": {
"scripts": ["blockedsites.js", "script.js"]
},
"icons": {
"128" : "logo.PNG"
},
"permissions": ["webRequest", "webRequestBlocking", "http:///", "https:///"]
}

Then, this time, Chrome developer tools directly refused it with the reason:
The "background.scripts" key cannot be used with manifest_version 3. Use the "background.service_worker" key instead.
Could not load manifest.
I learned the extension for a few days last year, but I didn't encounter such issue, as last year version 2.0 was OK.
But for the time being, it seems version 2.0 is not OK any more.
Can you please modify your code to use "background.service_worker"?
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant