diff options
| author | coasteen <coasteen@proton.me> | 2026-07-09 10:42:28 +0330 |
|---|---|---|
| committer | coasteen <coasteen@proton.me> | 2026-07-09 10:42:28 +0330 |
| commit | 8cbadb61604667b407b53ee1258433994fa4765a (patch) | |
| tree | 97765fb29418fd6278fcb4cbb9760893afaf7a58 /config/qutebrowser/greasemonkey | |
Diffstat (limited to 'config/qutebrowser/greasemonkey')
| -rwxr-xr-x | config/qutebrowser/greasemonkey/yt-ads.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config/qutebrowser/greasemonkey/yt-ads.js b/config/qutebrowser/greasemonkey/yt-ads.js new file mode 100755 index 0000000..932fd29 --- /dev/null +++ b/config/qutebrowser/greasemonkey/yt-ads.js @@ -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); |
