您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Completely hides posts containing AI/A.I. in title or body
当前为
// ==UserScript== // @name MetaFilter AI Post Hider // @namespace http://www.metafilter.com/ // @version 1.3 // @description Completely hides posts containing AI/A.I. in title or body // @match https://www.metafilter.com/ // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Find all post title + body pairs const titles = document.querySelectorAll('h2.posttitle'); titles.forEach(title => { const postBody = title.nextElementSibling; // Skip if next element isn't a post body if (!postBody || !postBody.classList.contains('post')) return; // Combine title and body text const fullText = title.textContent + ' ' + postBody.textContent; // Match any variation of AI (with/without periods, case insensitive) if (/(^|\W)A\.?I\.?(\W|$)/i.test(fullText)) { // Hide both title and body title.style.display = 'none'; postBody.style.display = 'none'; } }); })();