您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides all ignored games on Steam's front page, it works in real-time.
当前为
// ==UserScript== // @name Steam Ignored Games Hider // @namespace http://tampermonkey.net/ // @version 1.0 // @description Hides all ignored games on Steam's front page, it works in real-time. // @author Unbroken // @match https://store.steampowered.com/* // @grant none // @license GNU GPLv3 // ==/UserScript== (function() { 'use strict'; // Function to hide elements with class .ds_ignored function hideElements() { document.querySelectorAll('.ds_ignored').forEach(element => { element.style.display = 'none'; }); } // Hide elements on initial page load hideElements(); // Create a MutationObserver to watch for changes in the DOM const observer = new MutationObserver(mutationsList => { for (let mutation of mutationsList) { if (mutation.type === 'childList' || mutation.type === 'attributes') { hideElements(); // Re-hide elements if DOM changes } } }); // Start observing the target node for DOM changes const targetNode = document.body; const config = { attributes: true, childList: true, subtree: true }; observer.observe(targetNode, config); })();