From c29a7b6a33c02f1f5322b346e1d3a6ca9e61e985 Mon Sep 17 00:00:00 2001 From: ApocalypseCalculator Date: Tue, 11 Jun 2024 13:57:16 -0700 Subject: [PATCH] fix youtube ads --- injects/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/injects/youtube.js b/injects/youtube.js index 4c60f26..c4f04f4 100644 --- a/injects/youtube.js +++ b/injects/youtube.js @@ -6,7 +6,7 @@ try { let ad = document.querySelector('.ad-showing') if (defined(ad)) { console.log('[AnotherAdBlock]: Detected an ad video!'); - let video = document.querySelectorAll('video'); + let video = ad.querySelectorAll('video'); if(video.length > 0) { video.forEach(vid => { try {