您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Block VP and VP Extended Universe on IP2
// ==UserScript== // @name VP Blocker // @namespace http://tampermonkey.net/ // @version 1.01 // @description Block VP and VP Extended Universe on IP2 // @include https://communities.win/c/IP2Always* // @grant none // @run-at document-end // @license MIT // ==/UserScript== (function() { 'use strict'; const wordsToBlock = ["Vegan Patriot", "VP", "giraffe", "IBL", "gloryhole", "Gloryhole", "Dex", "Brandon Que", "Mike", "Eric", "Strokeoff", "Abbey", "Abbie", "Abby", "Nano", "Homeless RV", "IncelBinLaden", "Daddies Little Princess", "methwhore", "distracted driving", "Doordash", "Tapeworm"]; function hasForbiddenWord(text) { return wordsToBlock.some(word => text.includes(word)); } function blockContent() { // Target only divs with the class 'post' const postElements = document.querySelectorAll('div.post'); postElements.forEach(post => { if (hasForbiddenWord(post.textContent)) { // Hide the entire 'post' div if the condition is met post.style.display = 'none'; } }); } // Run the blockContent function when the page loads and whenever the page is modified window.addEventListener('load', blockContent); document.addEventListener('DOMNodeInserted', blockContent); })();