Add unlisted script to web_accessible_resources automatically
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 564
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request
It would be nice to have the appropriate web_accessible_resources entry added automatically based on the matches property.
// main-injected.ts
export default defineUnlistedScript({
matches: ["https://example.net/*"],
main() {
// ...
},
});
The entry can probably be added with use_dynamic_url: true by default.
Perhaps HTML pages could also have something like the following for the same effect:
<meta name="manifest.matches" content="['https://example.net/*']" />
Thanks!
Is your feature request related to a bug?
N/A
What are the alternatives?
Keeping things as-is.
Additional context
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing defineUnlistedScript and how the matches property is represented in the generated extension manifest. Compare the requested automatic web_accessible_resources entry, including use_dynamic_url, with the proposed HTML meta form; done means supported scripts receive the correct entry without manual manifest changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100