Skip to content

Commit

Permalink
removed streamLinks setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Oct 31, 2023
1 parent bf6d074 commit 3a06a83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion firefox/cr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const defaultSettings = {
settings: {
Amazon: { skipIntro: true, skipCredits: true, watchCredits: false, skipAd: true, blockFreevee: true, speedSlider: true, filterPaid: false, showRating: true, streamLinks: true },
Amazon: { skipIntro: true, skipCredits: true, watchCredits: false, skipAd: true, blockFreevee: true, speedSlider: true, filterPaid: false, showRating: true },
Netflix: { skipIntro: true, skipRecap: true, skipCredits: true, watchCredits: false, skipBlocked: true, skipAd: true, speedSlider: true, profile: true, showRating: true },
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true },
Expand Down
7 changes: 3 additions & 4 deletions firefox/popup/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (url.includes("#")) Menu(url.split("#")[1]);
// global variables in localStorage
const defaultSettings = {
settings: {
Amazon: { skipIntro: true, skipCredits: true, watchCredits: false, skipAd: true, blockFreevee: true, speedSlider: true, filterPaid: false, showRating: true, streamLinks: true },
Amazon: { skipIntro: true, skipCredits: true, watchCredits: false, skipAd: true, blockFreevee: true, speedSlider: true, filterPaid: false, showRating: true },
Netflix: { skipIntro: true, skipRecap: true, skipCredits: true, watchCredits: false, skipBlocked: true, skipAd: true, speedSlider: true, profile: true, showRating: true },
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true },
Expand Down Expand Up @@ -185,7 +185,7 @@ function setCheckboxesToSettings() {
// ------------- Default ---------------------------------------
setButtonChecked("DefaultSkips", settings?.Amazon.filterPaid);
// ------------- global buttons ---------------------------------------
setButtonChecked("AmazonSkips", settings?.Amazon.skipAd && settings?.Amazon.filterPaid && settings?.Amazon.streamLinks);
setButtonChecked("AmazonSkips", settings?.Amazon.skipAd && settings?.Amazon.filterPaid);
setButtonChecked("NetflixSkips", settings?.Netflix.skipRecap && settings?.Netflix.skipBlocked && settings?.Netflix.profile);
setButtonChecked("DisneySkips", settings?.Disney.skipIntro);
setButtonChecked("CrunchyrollSkips", settings?.Crunchyroll.skipIntro && settings?.Crunchyroll.releaseCalendar);
Expand Down Expand Up @@ -345,8 +345,7 @@ function listenForClicks() {
// ------------- Default ---------------------------------------
else if (e.target.id === "DefaultSkips") settings.Amazon.filterPaid = !settings?.Amazon.filterPaid;
// ------------- Amazon ---------------------------------------
else if (e.target.id === "AmazonSkips")
settings.Amazon.skipAd = settings.Amazon.filterPaid = settings.Amazon.streamLinks = !(settings.Amazon.skipAd && settings.Amazon.filterPaid && settings.Amazon.streamLinks);
else if (e.target.id === "AmazonSkips") settings.Amazon.skipAd = settings.Amazon.filterPaid = !(settings.Amazon.skipAd && settings.Amazon.filterPaid);
else if (e.target.id === "NetflixSkips")
settings.Netflix.skipRecap = settings.Netflix.skipBlocked = settings.Netflix.profile = !(settings?.Netflix.skipRecap && settings?.Netflix.skipBlocked && settings?.Netflix.profile);
// else if (e.target.id === "DisneySkips") settings.Disney.skipIntro = !settings?.Disney.skipIntro
Expand Down
2 changes: 1 addition & 1 deletion firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll) {
// global variables in localStorage
const defaultSettings = {
settings: {
Amazon: { skipIntro: true, skipCredits: true, watchCredits: false, skipAd: true, blockFreevee: true, speedSlider: true, filterPaid: false, showRating: true, streamLinks: true },
Amazon: { skipIntro: true, skipCredits: true, watchCredits: false, skipAd: true, blockFreevee: true, speedSlider: true, filterPaid: false, showRating: true },
Netflix: { skipIntro: true, skipRecap: true, skipCredits: true, watchCredits: false, skipBlocked: true, skipAd: true, speedSlider: true, profile: true, showRating: true },
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true },
Expand Down

0 comments on commit 3a06a83

Please sign in to comment.