Created
June 16, 2019 10:30
-
-
Save Romern/c4c630f85cb6ff0138734fb1b99d4528 to your computer and use it in GitHub Desktop.
Userscript for automatically skipping ads on Amazon Prime Video.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Amazon autoskip | |
// @version 1 | |
// @author Roman Karwacik | |
// @run-at document-start | |
// @match https://www.amazon.de/gp/video/detail/* | |
// ==/UserScript== | |
setInterval(function() { | |
var skipButton = document.querySelector('div[class="adSkipButton skippable"]'); | |
if (skipButton !=null) { | |
skipButton.click(); | |
console.log("Ad skipped!"); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment