Amazon video skip ads

Automatically skip ad by Amazon video.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           Amazon video skip ads
// @name:ja        Amazon video 自動広告スキップ
// @namespace      http://tampermonkey.net/
// @version        1.0
// @description    Automatically skip ad by Amazon video.
// @description:ja Amazon video の広告を自動的にスキップ
// @author         6uclz1
// @match          https://www.amazon.co.jp/*
// @grant          none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){
        //Skip Ad
        var adSB_UserScript = document.getElementsByClassName("adSkipButton")[0];
        if(typeof(adSB_UserScript) != "undefined"){
            if(adSB_UserScript.className.split(" ")[1] == "skippable"){
                console.log("Skip that ad");
                adSB_UserScript.click();
            }
        }
    }, 1500);
})();