A simple capacitor app to load yt and to inject some scripts
capacitor android cli development tools
npm install
npm run debug
npm run release
This is what I use. You'll need to create an appropriate keystore
apksigner sign --ks my.keystore ./yt-unsigned.apk
- plugins are stored in www/js/plugins. They're injected into the browser after the browser has loaded
- the plugin list is in src/plugins.js
I've added some code that will allow plugins to receive the responses to XMLHttpRequests and Fetch requests. This has allowed a new adblock plugin to be created (it filters out the ad details from the player response). The functionality to intercept the responses, and make changes, should allow for some good plugins.
Here's the link to the releases page https://github.com/4v3ngR/yt-wrapped/releases
- Adblocking now works with XHR interception