Greasy Fork is available in English.

YouTube Ad Skipper

Simple ad skip button for YouTube with enhanced SPA support

Autore
anas k
Installazioni giornaliere
0
Installazioni totali
50
Valutazione
0 0 0
Versione
1.6
Creato il
24/01/2025
Aggiornato il
25/01/2025
Dimensione
4,79 KB
Licenza
MIT
Applica a

How It Works

The script injects a floating button (>) that appears over YouTube videos. When clicked:

  1. Finds the current video player and timestamp

    const player = document.querySelector('video');
    const exactTime = player.currentTime;
    
  2. Extracts the YouTube video ID from the URL

    const videoId = new URLSearchParams(window.location.search).get('v');
    
  3. Reloads the video at the exact same timestamp

    const moviePlayer = document.getElementById('movie_player');
    if (moviePlayer) {
       moviePlayer.loadVideoById(videoId, exactTime);
    }
    
  4. Effectively bypasses ads

    • Forces a clean video reload while maintaining playback position
    • Skips ads without disrupting the viewing experience