Remove blocked films/series on Jelleseerr

Remove blocked films/series from search results

// ==UserScript==
// @name            Remove blocked films/series on Jelleseerr
// @name:ru         Удаляет заблокированные фильмы/сериалы в Jelleseerr
// @namespace       http://tampermonkey.net/
// @version         1.3
// @description:en     Remove blocked films/series from search results
// @description:ru  Удаляет из выдачи заблокированные фильмы
// @author          Shaman_Lesnoy
// @match           https://YOUR.DOMAIN
// @grant           none
// @license         GPL-3.0
// @description Remove blocked films/series from search results
// ==/UserScript==

(function () {
    'use strict';

    const SVG_PATH_TO_HIDE = "M3.53 2.47a.75.75 0 00-1.06 1.06l18 18a.75.75 0 101.06-1.06l-18-18zM22.676 12.553a11.249 11.249 0 01-2.631 4.31l-3.099-3.099a5.25 5.25 0 00-6.71-6.71L7.759 4.577a11.217 11.217 0 014.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113z";

    const targetSelector = '.w-full';

    function hideCardsWithSVG() {
        document.querySelectorAll(targetSelector).forEach(card => {
            const svgPaths = card.querySelectorAll('svg path');
            svgPaths.forEach(path => {
                if (path.getAttribute('d') === SVG_PATH_TO_HIDE) {
                    card.remove();
                }
            });
        });
    }

    const observer = new MutationObserver(hideCardsWithSVG);
    observer.observe(document.body, { childList: true, subtree: true });

    hideCardsWithSVG();
})();