Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
⏩ Bookmarklet for YouTube ads with two JavaScript function calls only
- Host: GitHub
- URL: https://github.com/szepeviktor/fast-forward-youtube-ads
- Owner: szepeviktor
- License: unlicense
- Created: 2023-11-12T12:09:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-14T03:43:27.000Z (6 months ago)
- Last Synced: 2024-10-09T10:09:02.491Z (3 months ago)
- Topics: ads, advertisement, bookmarklet, fast-forward, skip, youtube
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`