Skip to content

Commit

Permalink
Fix studio/category for clips4sale (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmKontrast authored Jul 31, 2024
1 parent 4ab236e commit a8b99b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/stashChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ export async function runStashChecker() {
case "www.clips4sale.com": {
let hrefStudio = "[href^='/studio/']";
check(Target.Studio, "h1[data-testid*='studio-title']", {urlSelector: currentSite});
check(Target.Studio, `a[data-testid*='studio-link']${hrefStudio}, a[data-testid*='clip-page-clipCategory']${hrefStudio}`);
check(Target.Studio, `a[data-testid*='clip-category-link']${hrefStudio}, a[data-testid*='clip-studio']${hrefStudio}, a[data-testid*='studioAnchor']${hrefStudio}`, {observe: true});
check(Target.Studio, `div[data-testid*='categoryTopStores'] a${hrefStudio}`, {observe: true});
check(Target.Studio, `a[data-testid*='studio-link']${hrefStudio}, a[data-testid*='clip-page-clipCategory']${hrefStudio}`, {urlSelector: e => closestUrl(e)?.split("/Cat")?.[0]});
check(Target.Studio, `a[data-testid*='clip-category-link']${hrefStudio}, a[data-testid*='clip-studio']${hrefStudio}, a[data-testid*='studioAnchor']${hrefStudio}, div[data-testid*='categoryTopStores'] a${hrefStudio}`, {
observe: true,
urlSelector: e => closestUrl(e)?.split("/Cat")?.[0]
});
if (window.location.pathname.startsWith("/clips/page/studios")) {
check(Target.Studio, `a${hrefStudio}`, {observe: true});
}
Expand Down

0 comments on commit a8b99b9

Please sign in to comment.