A simple capacitor app to load yt music and to inject some scripts
As there are more capable (and native) youtube music players available, I'll not be making any further changes to ytm-wrapped. I recommend ViMusic (https://github.com/vfsfitvnm/ViMusic) for playing youtube music.
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 ./ytm-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 www/js/index.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/ytm-wrapped/releases
- Adblocking now works with XHR interception
- Background works when playing audio. If playing a video, the video will pause. Noting that videos can actually start while the app is in the background
- I'm not an android developer.