From 9167fc79102956c1338e4ccb56196d911701713b Mon Sep 17 00:00:00 2001 From: HandyRandyx Date: Thu, 27 Jun 2024 19:10:21 -0300 Subject: [PATCH 1/2] Fix csLib not defined --- plugins/hotCards/hotCards.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/hotCards/hotCards.yml b/plugins/hotCards/hotCards.yml index 92c6550..9b1308d 100644 --- a/plugins/hotCards/hotCards.yml +++ b/plugins/hotCards/hotCards.yml @@ -2,7 +2,10 @@ name: Hot Cards description: Adds custom css to card elements that match a tag id or a rating threshold. version: 1.0.0 url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/hotCards +# requires: CommunityScriptsUILibrary ui: + requires: + - CommunityScriptsUILibrary javascript: - hotCards.js - https://cdn.jsdelivr.net/gh/HandyRandyx/stash-plugins@main/utils/fetchInterceptor.js From 52a596f2759b8d59d4e8ce1b18f5072d56e7b367 Mon Sep 17 00:00:00 2001 From: HandyRandyx Date: Fri, 28 Jun 2024 05:36:58 -0300 Subject: [PATCH 2/2] Fix regex typo --- plugins/hotCards/hotCards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hotCards/hotCards.js b/plugins/hotCards/hotCards.js index 61e6a27..9f4d6a8 100644 --- a/plugins/hotCards/hotCards.js +++ b/plugins/hotCards/hotCards.js @@ -158,7 +158,7 @@ */ function handleScenesHotCards() { const pattern = - /^\/(scenes|(performers|studios|tags|movies)\/\d+\/scenes|(movies|galleries)\/\d+)$)/; + /^\/(scenes|(performers|studios|tags|movies)\/\d+\/scenes|(movies|galleries)\/\d+)$/; addHotCards(pattern, CARDS.scene); }