summaryrefslogtreecommitdiff
path: root/ar/.config/qutebrowser/greasemonkey/youtube-ads.js
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-16 11:39:32 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-16 11:39:32 +0900
commitb15e249d2d9cd503c39b3adede854f08f6fcf5fd (patch)
treef13507bbe02e7ab8ef1ccdc30cf4c5a88050fb51 /ar/.config/qutebrowser/greasemonkey/youtube-ads.js
parentcd4ab86d34904aa4b1b39f97da71f21f9e9a0102 (diff)
updates
Diffstat (limited to 'ar/.config/qutebrowser/greasemonkey/youtube-ads.js')
-rw-r--r--ar/.config/qutebrowser/greasemonkey/youtube-ads.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/ar/.config/qutebrowser/greasemonkey/youtube-ads.js b/ar/.config/qutebrowser/greasemonkey/youtube-ads.js
deleted file mode 100644
index 21d4214..0000000
--- a/ar/.config/qutebrowser/greasemonkey/youtube-ads.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// ==UserScript==
-// @name Skip YouTube ads
-// @description Skips the ads in YouTube videos
-// @run-at document-start
-// @include *.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,
-);