Skip to content

Commit

Permalink
fix youtube ads
Browse files Browse the repository at this point in the history
  • Loading branch information
ApocalypseCalculator committed Jun 11, 2024
1 parent a5e03de commit c29a7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion injects/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c29a7b6

Please sign in to comment.