Skip to content

Commit

Permalink
split netflix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Oct 26, 2023
1 parent 0f2fa69 commit 89538c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
titleCards.forEach((card) => {
// let card = document.querySelectorAll(".title-card .boxart-container:not(.imdb)");
let title;
if (isNetflix) title = card?.children?.[1]?.firstChild?.textContent;
if (isNetflix) title = card?.children?.[1]?.firstChild?.textContent.split(" – ")[0];
else if (isDisney) title = card?.getAttribute("alt");
// amazon
// remove everything after - in the title
Expand All @@ -274,6 +274,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) {
}
});
}
// deprecated justwatch api
async function setAlternativesOnCard(card, data) {
let div = document.createElement("div");
div.style = "display:flex;";
Expand Down

0 comments on commit 89538c6

Please sign in to comment.