add forgotten userscripts

This commit is contained in:
Alexander Bocken 2023-10-15 14:45:32 +02:00
parent 8cbc8a0ffa
commit 184d26c50c
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 28017 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,18 @@
// ==UserScript==
// @name Auto Skip YouTube Ads
// @version 1.0.0
// @description Speed up and skip YouTube ads automatically
// @author jso8910
// @match *://*.youtube.com/*
// @exclude *://*.youtube.com/subscribe_embed?*
// ==/UserScript==
setInterval(() => {
const btn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button')
if (btn) {
btn.click()
}
const ad = [...document.querySelectorAll('.ad-showing')][0];
if (ad) {
document.querySelector('video').playbackRate = 10;
}
}, 50)