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

permissions and host_permissions auto-collecting #379

Closed
honwhy opened this issue Jan 28, 2024 · 1 comment
Closed

permissions and host_permissions auto-collecting #379

honwhy opened this issue Jan 28, 2024 · 1 comment
Labels

Comments

@honwhy
Copy link

honwhy commented Jan 28, 2024

permissions and host_permissions auto-collecting

In defineContentScript or defineBackgound, excel from matches which is auto collecting into manifest.content_scripts[i].matches, how about define another keys permission, host_permissions, and auto collect them and deduplicate so as to generate manifest.permissions or host_permissions in mv3 style.

Is your feature request related to a bug?

"N/A"

What are the alternatives?

alternative solutions, is defined permissions, host_persmissions and web_accessible_resources according to mv2 or mv3 request.

Additional context

ex,

export default defineContentScript({
  matches: ['https://*.blog.csdn.net/**'],
  permission: [],
  host_permissions: [],
  main(ctx) {
   ...
  },
})
@aklinker1
Copy link
Collaborator

Closing in favor of #544, which includes these fields and others.

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

No branches or pull requests

2 participants