From ce42fff915f0654a365fcfc200ed5545eb5880e5 Mon Sep 17 00:00:00 2001 From: Jimmy GALLAND Date: Sat, 19 Sep 2026 18:27:11 +0200 Subject: [PATCH] don't hide media cards whose title matches a guard keyword substring --- Jellyfin.Plugin.ShareLinks/Web/sharelinks.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jellyfin.Plugin.ShareLinks/Web/sharelinks.js b/Jellyfin.Plugin.ShareLinks/Web/sharelinks.js index 7d9f064..0f2ccc9 100644 --- a/Jellyfin.Plugin.ShareLinks/Web/sharelinks.js +++ b/Jellyfin.Plugin.ShareLinks/Web/sharelinks.js @@ -614,6 +614,12 @@ Array.from( root.querySelectorAll('button, a, [role="button"], [role="menuitem"]') ).forEach(function (node) { + if (node.closest(".card")) { + // Never hide anything inside a media card: a movie/show title or + // poster link is not navigation, and titles like "Spider-Man: Far + // From Home" can accidentally contain a keyword like "home". + return; + } if (shouldHideNode(node, keywords)) { node.setAttribute(hiddenAttr, "1"); }