Greasy Fork is available in English.

Skip Amazon Prime Video Ads

This script skips primevideo ADS

< Commentaires sur Skip Amazon Prime Video Ads

Avis: OK - le script fonctionne, mais souffre de quelques problèmes

dgw
§
Posté le: 20/12/2021

I have tweaked this to cancel its interval function once the skip button has been clicked, to remove any background performance impact once the main video content has started.

(function() {
    'use strict';
    let handlerID = setInterval(
        function(){
            if(document.querySelectorAll('.adSkipButton.skippable').length){
                document.querySelector('.adSkipButton.skippable').click();
                clearInterval(handlerID);
            }
        }
        ,100);
})();

Poster une réponse

Connectez-vous pour poster une réponse.