Skip to content

Commit

Permalink
modern support
Browse files Browse the repository at this point in the history
  • Loading branch information
pantyetta committed Nov 10, 2023
1 parent 90ec224 commit a3fcd16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auto skip ads",
"version": "1.0.0",
"version": "1.0.2",
"manifest_version": 3,
"background": {
"service_worker": "background.js"
Expand Down

0 comments on commit a3fcd16

Please sign in to comment.