Skip to content

KAYounes/yt-ad-auto-skip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Auto Ad Skipper Plug-in

This was a quick side project

Table of Content


Functionality

This plug-in monitors YouTube tabs and automatically reacts to ad playback by:

  • Muting the ad audio.

  • Increasing playback speed to 10x.

  • Skipping the ad after the countdown timer reaches zero.

Once the ad is finished or is skipped, the plugin restores the original playback speed and unmutes the audio.

Reliability

Based on my testing, I got consistent results. Ads were detected and countermeasures where executed.

It works with ads at the beginning of a video, as well as, ads during a video.

However, one major breaking point is the dependency on YouTube DOM structure (nesting + class names) to function. Therefore, functionality may be affected by changes in YouTube's DOM structure.

Local Use

The plug-in is NOT currently published on Chrom's Web Store; however, you can run it locally. It is pretty easy, either look up how to add/create a local plug-in, or do it manually

  1. download the file,
  2. go to the extensions manager on Google Chrome,
  3. enable developer mode,
  4. click load unpacked,
  5. choose the directory you just downloaded.

Not tested, however, changing the location of the directory after adding it as a plug-in might make the plug-in undetected by Google Chomre.

Known Issues & Fixes

  1. Occasionly the extension will stop working, I am planning on debugging the errors soon.

    • Right now, if the plugin stops working, open the extension manager and you will see a reload button on the plug-in's card, press it and also make sure to reload the YouTube tab.
  2. YouTube surveys are currently unhandled and will have to be either answered, or skipped.

Future Work

  1. Add pop-up for configuration.
  2. Publish on Chrome Web Store.
  3. Improve code and reliability.