Skip to content

Commit

Permalink
inverse Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 24, 2023
1 parent e2b741b commit 8a01344
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion firefox/popup/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,15 @@ function listenForClicks() {
setSettings("All AmazonSkips");
} else if (e.target.id === "AmazonCredits") {
settings.Amazon.skipCredits = !settings.Amazon.skipCredits;
if (settings.Amazon.skipCredits) {
settings.Amazon.watchCredits = false;
}
setSettings("AmazonCredits");
} else if (e.target.id === "AmazonWatchCredits") {
settings.Amazon.watchCredits = !settings.Amazon.watchCredits;
if (settings.Amazon.watchCredits) {
settings.Amazon.skipCredits = false;
}
setSettings("AmazonWatchCredits");
} else if (e.target.id === "AmazonIntro") {
settings.Amazon.skipIntro = !settings.Amazon.skipIntro;
Expand Down Expand Up @@ -444,11 +450,17 @@ function listenForClicks() {
setSettings("NetflixRecap");
} else if (e.target.id === "NetflixCredits") {
settings.Netflix.skipCredits = !settings.Netflix.skipCredits;
if (settings.Netflix.skipCredits) {
settings.Netflix.watchCredits = false;
}
setSettings("NetflixCredits");
} else if (e.target.id === "NetflixWatchCredits") {
settings.Netflix.watchCredits = !settings.Netflix.watchCredits;
if (settings.Netflix.watchCredits) {
settings.Netflix.skipCredits = false;
}
setSettings("NetflixWatchCredits");
} else if (e.target.id === "NetflixWatchCredits") {
} else if (e.target.id === "NetflixBlocked") {
settings.Netflix.skipBlocked = !settings.Netflix.skipBlocked;
setSettings("NetflixBlocked");
} else if (e.target.id === "NetflixAds") {
Expand All @@ -471,9 +483,15 @@ function listenForClicks() {
setSettings("DisneyIntro");
} else if (e.target.id === "DisneyCredits") {
settings.Disney.skipCredits = !settings.Disney.skipCredits;
if (settings.Disney.skipCredits) {
settings.Disney.watchCredits = false;
}
setSettings("DisneyCredits");
} else if (e.target.id === "DisneyWatchCredits") {
settings.Disney.watchCredits = !settings.Disney.watchCredits;
if (settings.Disney.watchCredits) {
settings.Disney.skipCredits = false;
}
setSettings("DisneyWatchCredits");
} else if (e.target.id === "DisneySpeedSlider") {
settings.Disney.speedSlider = !settings.Disney.speedSlider;
Expand Down

0 comments on commit 8a01344

Please sign in to comment.