`ctx.applyPatch`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 564
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request
Add a function that automatically patches all window functions in content scripts so any async callbacks are removed when context is invalidated.
Alternative is to pass the context around and call functions off that which can get quite annoying.
Is your feature request related to a bug?
N/A
Additional context
https://discord.com/channels/1212416027611365476/1297819470655520788/1297819470655520788
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 locating the ctx.applyPatch entry point and the content-script handling it would affect. Clarify how window functions, async callbacks, and context invalidation should interact, using the linked discussion for requirements; done means the proposed API patches those functions and removes callbacks after invalidation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100