您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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 }); })();