Skip to content

Commit

Permalink
exclusive watch and skip credits
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 24, 2023
1 parent b753559 commit bdb4d99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions firefox/popup/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ function listenForClicks() {
// playOnFullScreen
settings.Video.playOnFullScreen =
VideoSkips;
if (VideoSkips) settings.Amazon.watchCredits = settings.Netflix.watchCredits = settings.Disney.watchCredits = false;
setSettings("All VideoSkips");
} else if (e.target.id === "VideoIntro") {
const skipIntro = settings?.Amazon.skipIntro && settings?.Netflix.skipIntro && settings?.Disney.skipIntro;
Expand All @@ -372,10 +373,16 @@ function listenForClicks() {
} else if (e.target.id === "VideoCredits") {
const skipCredits = settings?.Amazon.skipCredits && settings?.Netflix.skipCredits && settings?.Disney.skipCredits;
settings.Amazon.skipCredits = settings.Netflix.skipCredits = settings.Disney.skipCredits = !skipCredits;
if (!skipCredits) {
settings.Amazon.watchCredits = settings.Netflix.watchCredits = settings.Disney.watchCredits = false;
}
setSettings("VideoCredits");
} else if (e.target.id === "VideoWatchCredits") {
const watchCredits = settings?.Amazon.watchCredits && settings?.Netflix.watchCredits && settings?.Disney.watchCredits;
settings.Amazon.watchCredits = settings.Netflix.watchCredits = settings.Disney.watchCredits = !watchCredits;
if (!watchCredits) {
settings.Amazon.skipCredits = settings.Netflix.skipCredits = settings.Disney.skipCredits = false;
}
setSettings("VideoWatchCredits");
} else if (e.target.id === "VideoAds") {
const skipAd = settings?.Amazon.blockFreevee && settings?.Netflix.NetflixAds;
Expand Down

0 comments on commit bdb4d99

Please sign in to comment.