Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Fixing ad not skipping with update (chrome)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starcraft426 authored Nov 20, 2023
1 parent 6abc446 commit 16208ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/js/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ document.addEventListener("DOMContentLoaded", event => {
if (cache['auto_skip_ads'] === true) {

// Close overlay ads.
Array.from(document.querySelectorAll('.ytp-ad-overlay-close-button'))?.forEach(e => e?.click());
Array.from(document.querySelectorAll('.ytp-ad-skip-button-modern'))?.forEach(e => e?.click());

// Click on "Skip ad" button
const skippableAd = document.querySelectorAll('.ytp-ad-skip-button').length;
Expand Down

0 comments on commit 16208ab

Please sign in to comment.