您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
移除Steam中与游戏无关的评论
当前为
// ==UserScript== // @name Steam 评论过滤 // @namespace https://mopokle.github.io // @version 1.0 // @description 移除Steam中与游戏无关的评论 // @author Mopokle // @match https://store.steampowered.com/app/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to check if a comment contains any of the specified phrases function containsUnwantedText(commentElement) { const unwantedPhrases = ["我是傻", "朋友口","请奖励这条评论","心中有党","这么多年都是这个价格","这里养了一","摸一下","牛子精灵","坤坤","牛子增加","一个赞封","⣿⠿⠶⠙⣿⡟⠡⣴⣿⣽⣿","⣿⣧⠙⠛⠛⡭⠅⠒⠦⠭⣭", "牛子加","牛子变","牛子缩","给我点赞","涩涩的头像","想要头像","色色的头像","需要点数","steam点数","Steam点数","STEAM点数","免费摸","赞=","点赞摸","摸赞一次"]; let commentText = commentElement.textContent || commentElement.innerText; return unwantedPhrases.some(phrase => commentText.includes(phrase)); } // Function to remove comments containing unwanted text function removeUnwantedComments() { const comments = document.querySelectorAll('.review_box'); comments.forEach(comment => { if (containsUnwantedText(comment)) { comment.remove(); //Highlight for debug //comment.style.border = '2px solid red'; } }); } // Callback function to execute when mutations are observed var callback = function(mutationsList, observer) { for(var mutation of mutationsList) { if (mutation.type == 'childList') { removeUnwantedComments(); } } }; // Create a MutationObserver instance var observer = new MutationObserver(callback); // Options for the observer var config = { childList: true, subtree: true }; // Start observing the target node for configured mutations observer.observe(document.body, config); // Initial check removeUnwantedComments(); })();