Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwas-r committed Jul 13, 2021
1 parent f92f5d7 commit d9de390
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "YouTube AdSkipper",
"short_name": "YouTube AdSkipper",
"description": "Skip YouTube ads automatically as soon as YouTube provides a skip button.",
"version": "1.1",
"version": "1.2",
"manifest_version": 2,
"author": "Vishwas R",
"icons": {
Expand Down
6 changes: 3 additions & 3 deletions script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions script.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

if (!skipButtonDomTreeObserver) {
skipButtonDomTreeObserver = new MutationdomTreeObserver(function() {
skipButtonDomTreeObserver = new MutationObserver(function() {
if (!isElementVisible(skipButton)) {
return;
}
Expand All @@ -104,7 +104,7 @@
}

function initDomTreeObserver() {
if (!('MutationdomTreeObserver' in window)) {
if (!('MutationObserver' in window)) {
return false;
}

Expand All @@ -116,7 +116,7 @@
return false;
}

var domTreeObserver = new MutationdomTreeObserver(function() {
var domTreeObserver = new MutationObserver(function() {
checkAndClickButtons();
});

Expand Down

0 comments on commit d9de390

Please sign in to comment.