Idea: plugins, packaging JavaScript to be injected into pages
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 128
- Avg merge
- 9d 15h
- Merged PRs (30d)
- 2
Description
Tweet: https://twitter.com/simonw/status/1514657436287705119
I want to be able to use tricks like this one - where Readability.js is injected into a page - without relying on CDNs: https://til.simonwillison.net/shot-scraper/readability
One option would be to package things like this up as plugins using Pluggy (as seen in Datasette) - then serve the JavaScript assets using a /-/shot-scraper-xyz/plugins/... route configured using https://playwright.dev/python/docs/api/class-page#page-route
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
The issue names no repository files or tests. Start by reviewing the existing Playwright page setup and the page.route API, then determine how plugin JavaScript assets would be packaged and served without a CDN. Done would require an agreed plugin mechanism and a route that serves the injected assets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100