Skip to content

Commit

Permalink
startShowRatingInterval not on disney
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Sep 18, 2023
1 parent 9d2c150 commit 0618134
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion chrome/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
if (settings.Netflix?.skipBlocked) startNetflixSkipBlockedObserver();
if (settings.Netflix?.NetflixAds) startNetflixAdTimeout();
if (settings.Netflix?.speedSlider) startNetflixSpeedSliderObserver();

if (settings.Video?.showRating) startShowRatingInterval();
} else if (isPrimeVideo) {
if (settings.Amazon?.skipIntro) startAmazonSkipIntroObserver();
if (settings.Amazon?.skipCredits) startAmazonSkipCreditsObserver();
Expand All @@ -78,14 +80,15 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
}
if (settings.Amazon?.speedSlider) startAmazonSpeedSliderObserver();
if (settings.Amazon?.filterPaid) startAmazonFilterPaidObserver();

if (settings.Video?.showRating) startShowRatingInterval();
} else if (isDisney || isHotstar) {
if (settings.Disney?.skipIntro) startDisneySkipIntroObserver();
if (settings.Disney?.skipCredits) startDisneySkipCreditsObserver();
if (settings.Disney?.watchCredits) startDisneyWatchCreditsObserver();
if (settings.Disney?.speedSlider) startDisneySpeedSliderObserver();
}
if (settings.Video.playOnFullScreen) startPlayOnFullScreen(isNetflix);
if (settings.Video?.showRating) startShowRatingInterval();
// if there is an undefined setting, set it to the default
let changedSettings = false;
for (const key in defaultSettings.settings) {
Expand Down
5 changes: 4 additions & 1 deletion firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
if (settings.Netflix?.skipBlocked) startNetflixSkipBlockedObserver();
if (settings.Netflix?.NetflixAds) startNetflixAdTimeout();
if (settings.Netflix?.speedSlider) startNetflixSpeedSliderObserver();

if (settings.Video?.showRating) startShowRatingInterval();
} else if (isPrimeVideo) {
if (settings.Amazon?.skipIntro) startAmazonSkipIntroObserver();
if (settings.Amazon?.skipCredits) startAmazonSkipCreditsObserver();
Expand All @@ -78,14 +80,15 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
}
if (settings.Amazon?.speedSlider) startAmazonSpeedSliderObserver();
if (settings.Amazon?.filterPaid) startAmazonFilterPaidObserver();

if (settings.Video?.showRating) startShowRatingInterval();
} else if (isDisney || isHotstar) {
if (settings.Disney?.skipIntro) startDisneySkipIntroObserver();
if (settings.Disney?.skipCredits) startDisneySkipCreditsObserver();
if (settings.Disney?.watchCredits) startDisneyWatchCreditsObserver();
if (settings.Disney?.speedSlider) startDisneySpeedSliderObserver();
}
if (settings.Video.playOnFullScreen) startPlayOnFullScreen(isNetflix);
if (settings.Video?.showRating) startShowRatingInterval();
// if there is an undefined setting, set it to the default
let changedSettings = false;
for (const key in defaultSettings.settings) {
Expand Down

0 comments on commit 0618134

Please sign in to comment.