summaryrefslogtreecommitdiff
path: root/config/qutebrowser/greasemonkey
diff options
context:
space:
mode:
authorcoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
committercoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
commit8cbadb61604667b407b53ee1258433994fa4765a (patch)
tree97765fb29418fd6278fcb4cbb9760893afaf7a58 /config/qutebrowser/greasemonkey
Diffstat (limited to 'config/qutebrowser/greasemonkey')
-rwxr-xr-xconfig/qutebrowser/greasemonkey/yt-ads.js19
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);