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

[migration] Migrate manifest v2 -> v3 #98

Open
hydrosquall opened this issue May 21, 2022 · 1 comment
Open

[migration] Migrate manifest v2 -> v3 #98

hydrosquall opened this issue May 21, 2022 · 1 comment

Comments

@hydrosquall
Copy link

hydrosquall commented May 21, 2022

Motivation

image

This project will stop working in Chrome in 2023 once Manifest v2 support is removed. This error message is currently logged at browser startup time.

Resources

Changing the host permissions part will be straightforward

"permissions": [
      "storage",
      "history",
      "webRequest",
      "webRequestBlocking",
      "contextMenus"
    ],
    "host_permissions": ["http://*/*", "https://*/*", "*://localhost/*", "<all_urls>"],

It may be a more involved process to rewrite the entries in background.scripts as service workers.

https://developer.chrome.com/docs/extensions/mv3/migrating_to_service_workers/

wildcard/manifest.json

Lines 34 to 39 in 156cc98

"background": {
"scripts": [
"dist/wildcard-background.js",
"src/wildcard-ajax.js"
]
},

@lrq3000
Copy link

lrq3000 commented Aug 20, 2023

It stopped working as far as I know, pease try to update, it looks like an amazing extension but it's not working anymore.

There is a migration guide here: https://developer.chrome.com/blog/mv2-transition/

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

2 participants