From 3a06a83cc9abf8b15ce742793e4205c58e0363c4 Mon Sep 17 00:00:00 2001 From: Marvin Alexander Krebber Date: Tue, 31 Oct 2023 12:15:24 +0100 Subject: [PATCH] removed streamLinks setting --- firefox/cr.js | 2 +- firefox/popup/settings.js | 7 +++---- firefox/skipper.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/firefox/cr.js b/firefox/cr.js index e0325b4e..21aa340a 100644 --- a/firefox/cr.js +++ b/firefox/cr.js @@ -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 }, diff --git a/firefox/popup/settings.js b/firefox/popup/settings.js index 43edf1a2..803c593a 100644 --- a/firefox/popup/settings.js +++ b/firefox/popup/settings.js @@ -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 }, @@ -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); @@ -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 diff --git a/firefox/skipper.js b/firefox/skipper.js index 27869e87..1a855a32 100644 --- a/firefox/skipper.js +++ b/firefox/skipper.js @@ -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 },