Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/szepeviktor/fast-forward-youtube-ads

⏩ Bookmarklet for YouTube ads with two JavaScript function calls only
https://github.com/szepeviktor/fast-forward-youtube-ads

ads advertisement bookmarklet fast-forward skip youtube

Last synced: 1 day ago
JSON representation

⏩ Bookmarklet for YouTube ads with two JavaScript function calls only

Awesome Lists containing this project

README

        

# 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`](./bookmarklet.url) file.
Set name to ⏩

## Source code

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

Made with `chriszarate/bookmarkleter`