Skip to content

Commit

Permalink
fixed disney top 10 ratings and title cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Nov 9, 2024
1 parent b273081 commit 7734ea2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
?.replace(" Disney+ Original", "")
?.replace(" STAR Original", "")
?.replace(" Select for details on this title.", "")
?.replace(/Nummer \d* /, "")
?.replace(/Number \d* /, "")
// big title cards in the beginning of the page
.split(" Season")[0]
// individual episodes
Expand All @@ -383,7 +385,10 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
.split("Staffel")[0]
.split(" Neue")[0]
.split(" Alle")[0]
.split(" Jeden")[0];
.split(" Jeden")[0]
.split(" Altersfreigabe")[0]
.split(" Demnächst")[0]
.split(" Premiere")[0];
if (title.includes(" minutes remaining")) title = title.replace(/ \d+ minutes remaining/g, "");
} else if (isHotstar) title = card?.getAttribute("alt")?.replace(/(S\d+\sE\d+)/g, "");
// amazon
Expand Down

0 comments on commit 7734ea2

Please sign in to comment.