A simple cordova app to load yt music and to inject some scripts


cordova android cli development tools bundle tool


debug build (creates an apke in platforms/android/app/build/outputs/apk/debug/app-debug.apk)

cordova platform add android


npm run build:debug

release (creates a bundle file in android/app/build/outputs/bundle/release/app-release.aab)

  • this requires bundletool
npm run build:release

release apk: (creates a zip file containing a universal apk)

npm run package:release


  • 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

XHR/Fetch intercepting

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


  • 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.


View Github