您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlight My Products
// ==UserScript== // @name [STEAM] Highlight My Products // @namespace [STEAM] Highlight My Products // @description Highlight My Products // @version 0.1 // @author el9in // @license el9in // @match https://steamcommunity.com/market* // @match https://steamcommunity.com/market/ // @match https://steamcommunity.com/market/listings/* // @icon https://www.google.com/s2/favicons?sz=64&domain=steamcommunity.com // @grant GM.setValue // @grant GM.getValue // ==/UserScript== (async function() { 'use strict'; let _saveSteamIDs = await GM.getValue("STEAM_My_Items", []); const href = window.location.href; if(href == "https://steamcommunity.com/market" || href == "https://steamcommunity.com/market/") { function start() { const myElements = document.querySelector("#tabContentsMyListings").querySelectorAll('[id*="mylisting_"]'); myElements.forEach(function(element) { const match = element.id.match(/\d+/); if (match && _saveSteamIDs.indexOf(match[0]) === -1) { element.style.backgroundColor = "#8B0000"; _saveSteamIDs.push(match[0]); GM.setValue("STEAM_My_Items", _saveSteamIDs); } else if(_saveSteamIDs.indexOf(match[0]) !== -1) { element.style.backgroundColor = "#00FF00"; } }); } setInterval(start, 1000); } const searchResultsRows = document.querySelector("#searchResultsRows"); if(searchResultsRows) { function start() { console.log("I'll find."); const myElements = document.querySelectorAll('[id^="listing_"]'); myElements.forEach(function(element) { const match = element.id.match(/\d+/); if (match && _saveSteamIDs.indexOf(match[0]) !== -1) { element.style.backgroundColor = "#00FF00"; } }); } setInterval(start, 1000); } return; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址