code-charity / code-charity/youtube
💡Project: Exploring Youtube's .JS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.6k
- Forks
- 996
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Description
-
We have not explored much of Youtube's .JS yet (million characters)
-
We could modify any separate component URL through forwarding it to a local URL.
The largest component is Youtube's player JS https://www.youtube.com/s/player/4918c89a/player_es6.vflset/en_US/base.js
(embedded version: https://www.youtube.com/s/player/4918c89a/player_embed_es6.vflset/en_US/base.js )
But we might not adjust the user's current URL itself (as seen with ctrl+U) before it runs
( Firefox can filterResponseData (intercept requests), while Chrome will require an "extension is debugging this tab" infobar. )
Yet we only have overridden some of youtube's 1000+ Experiment flags ( #4143 & appearance.js Line 4 )
-
Just like uBlockorigin rules
-
Youtube's other components:
https://www.youtube.com/s/desktop/1daead2b/jsbin/lottie-light.vflset/lottie-light.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/worker-serialization.vflset/worker-serialization.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/worker-performance.vflset/worker-performance.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/scheduler.vflset/scheduler.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/network.vflset/network.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/spf.vflset/spf.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/webcomponents-sd.vflset/webcomponents-sd.js
https://www.youtube.com/s/desktop/1daead2b/jsbin/intersection-observer.min.vflset/intersection-observer.min.js
Embedded:
https://www.youtube.com/s/player/4918c89a/www-player.css
https://www.youtube.com/iframe_api
https://www.youtube.com/s/player/4918c89a/www-widgetapi.vflset/www-widgetapi.js
https://www.youtube.com/s/player/4918c89a/player_embed_es6.vflset/en_US/captions.js
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 with js&css/web-accessible/www.youtube.com/appearance.js and compare the existing experiment-flag overrides with the listed YouTube component URLs and LuanRT/YouTube.js. Narrow the exploration to one component or interception target and define a reproducible supported outcome; the issue currently names no test or acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100