clear all posts that want help

hide posts with help and question flairs does not work with old reddit

// ==UserScript==
// @name clear all posts that want help
// @description hide posts with help and question flairs does not work with old reddit
// @version 1.0
// @namespace clear help and question posts on r/robloxhackers
// @license MIT
// @author M-r7z
// @match https://www.reddit.com/r/robloxhackers/*
// ==/UserScript==

(function() {
    'use strict';
    function hide() {
        const posts = document.querySelectorAll('shreddit-post');

        posts.forEach(post => {
            const flair = post.querySelector('shreddit-post-flair .flair-content');
            if (flair && (flair.textContent.includes("HELP") || flair.textContent.includes("QUESTION"))) {
                post.style.display = 'none';
            }
        });
    }

    hide();

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