block youtube ads on chromecast


When watching youtube videos via chromecast, the advertisement has to be skipped manually after a few seconds, otherwise we have to watch the entire advertisement.

You can run this bash script in the background on a device ( e.g. raspberry or similar ) , the script will automaticaly find all chromecast in your network that are playing youtube videos, and will skip ads completely ( if it will find the advertise block on Sposorblock servers ) or it will skip an ad as soon as possible, by “pressing” skip ad.

You can find the script on github:

https://github.com/nichobi/sponsorblockcast