Skip to content

⏩ Bookmarklet for YouTube ads with two JavaScript function calls only

License

Notifications You must be signed in to change notification settings

szepeviktor/fast-forward-youtube-ads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Bookmarklet to fast-forward YouTube ads

  1. Seek to the end
  2. Click the Skip ad button

Usage

Add a bookmark to your browser with the URL in the bookmarklet.url file. Set name to ⏩

Source code

var skipButton = document.querySelector("[id^=skip-button].ytp-skip-ad-button");
if (skipButton !== null) {
    skipButton.click();
} else {
    var video = document.querySelector("#container video.html5-main-video");
    video.currentTime = video.duration - 1;
    video.playbackRate = 2;
}

Made with chriszarate/bookmarkleter

About

⏩ Bookmarklet for YouTube ads with two JavaScript function calls only

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project