Greasy Fork

Skip Amazon Prime Video Ads

This script skips Amazon Prime Video Ads

目前为 2019-12-12 提交的版本。查看 最新版本

// ==UserScript==
// @name        Skip Amazon Prime Video Ads
// @description This script skips Amazon Prime Video Ads
// @author Maxeo | maxeo.net
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @match        https://www.primevideo.com/*
// @version     1.0
// @icon        https://images-eu.ssl-images-amazon.com/images/I/411j1k1u9yL.png
// @namespace https://greasyfork.org/users/88678
// ==/UserScript==

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