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"); }