From c38a85d68322b473525821e1feec4ac70f7c61a8 Mon Sep 17 00:00:00 2001 From: Dreamliner Date: Mon, 18 Sep 2023 18:51:21 +0200 Subject: [PATCH] firefox --- chrome/skipper.js | 2 +- firefox/skipper.js | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/chrome/skipper.js b/chrome/skipper.js index 85f4844a..ae912998 100644 --- a/chrome/skipper.js +++ b/chrome/skipper.js @@ -910,7 +910,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) { console.log("adding stream links"); let title = document.querySelector("h1[data-automation-id='title']")?.textContent?.split(" [")[0]; if (title) { - // if not already free + // if not already free blue in prime icon if (document.querySelector("._1sIAAm")) { let card = document.querySelector("div#dv-action-box"); if (!DBCache[title]) { diff --git a/firefox/skipper.js b/firefox/skipper.js index 07b8be74..56e43627 100644 --- a/firefox/skipper.js +++ b/firefox/skipper.js @@ -910,11 +910,14 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar) { console.log("adding stream links"); let title = document.querySelector("h1[data-automation-id='title']")?.textContent?.split(" [")[0]; if (title) { - let card = document.querySelector("div#dv-action-box"); - if (!DBCache[title]) { - getMovieInfo(title, card, false); - } else { - setJustWatchOnCard(card, DBCache[title], title); + // if not already free blue in prime icon + if (document.querySelector("._1sIAAm")) { + let card = document.querySelector("div#dv-action-box"); + if (!DBCache[title]) { + getMovieInfo(title, card, false); + } else { + setJustWatchOnCard(card, DBCache[title], title); + } } } }