Skip to content

Commit

Permalink
firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Sep 18, 2023
1 parent b2a7fb4 commit c38a85d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion chrome/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
13 changes: 8 additions & 5 deletions firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit c38a85d

Please sign in to comment.