diff --git a/background.js b/background.js index 6120185..0e18229 100644 --- a/background.js +++ b/background.js @@ -15,7 +15,7 @@ const skipAds = (tabId) => { if($skip_container == null) return; const observer = new MutationObserver(() => { - const $skip_button = document.getElementsByClassName('ytp-ad-skip-button ytp-button')[0] || null; + const $skip_button = document.getElementsByClassName('ytp-ad-skip-button-modern ytp-button')[0] || null; if($skip_button == null) return; $skip_button.click(); }); diff --git a/manifest.json b/manifest.json index 96373a7..d908a75 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "auto skip ads", - "version": "1.0.0", + "version": "1.0.2", "manifest_version": 3, "background": { "service_worker": "background.js"