update
This commit is contained in:
parent
87b1df2190
commit
8f6c20f8b2
15 changed files with 862 additions and 1 deletions
19
.config/qutebrowser/greasemonkey/yt-ads.js
Normal file
19
.config/qutebrowser/greasemonkey/yt-ads.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// ==UserScript==
|
||||
// @name Auto Skip YouTube Ads
|
||||
// @version 1.1.0
|
||||
// @description Speed up and skip YouTube ads automatically
|
||||
// @author jso8910 and others
|
||||
// @match *://*.youtube.com/*
|
||||
// ==/UserScript==
|
||||
|
||||
|
||||
document.addEventListener('load', () => {
|
||||
const btn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button-modern')
|
||||
if (btn) {
|
||||
btn.click()
|
||||
}
|
||||
const ad = [...document.querySelectorAll('.ad-showing')][0];
|
||||
if (ad) {
|
||||
document.querySelector('video').currentTime = 9999999999;
|
||||
}
|
||||
}, true);
|
||||
Loading…
Add table
Add a link
Reference in a new issue