Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

4v3ngR/yt-wrapped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt-wrapped

A simple capacitor app to load yt and to inject some scripts

dependencies

capacitor android cli development tools

building

install dependencies

npm install

debug build (creates an apk yt-debug.apk)

npm run debug

release (creates an apk yt-unsigned.apk)

npm run release

signing the apk

This is what I use. You'll need to create an appropriate keystore

apksigner sign --ks my.keystore ./yt-unsigned.apk

plugins

  • 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

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.

Releases

Here's the link to the releases page https://github.com/4v3ngR/yt-wrapped/releases

Notes

  • Adblocking now works with XHR interception