Skip to content

Instantly share code, notes, and snippets.

@Romern
Created June 16, 2019 10:30
Show Gist options
  • Save Romern/c4c630f85cb6ff0138734fb1b99d4528 to your computer and use it in GitHub Desktop.
Save Romern/c4c630f85cb6ff0138734fb1b99d4528 to your computer and use it in GitHub Desktop.
Userscript for automatically skipping ads on Amazon Prime Video.
// ==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