├── yolo.py ├── LICENSE ├── README.md └── steam-followed-games-enhancer-source /yolo.py: -------------------------------------------------------------------------------- 1 | print("hello dumb world") 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Big-Z 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # steam-followed-games-enhancer 2 | Tampermonkey script for Steam Followed Games: Price, Discount, History & Sorting. 3 | 4 | # Steam Followed Games Enhancer 5 | 6 | Enhance your Steam Followed Games page with real-time pricing info, discount insights, and historical lows from Steam. This script adds powerful overlays and tools to your Steam experience for game tracking and decision-making. 7 | 8 | ## 🔧 Features 9 | - 🏷️ Displays Steam current price, discount %, and final price 10 | - 🕰️ Shows Steam's all-time historical low (via isthereanydeal.com) 11 | - 📊 Sort your followed games by price, discount %, and release date 12 | - 📉 Calculates total discounted value of all games on sale 13 | - ✅ Runs directly in your browser using Tampermonkey 14 | 15 | ## 🚀 Installation 16 | 17 | 1. Install the [Tampermonkey extension](https://tampermonkey.net/) 18 | 2. [Click here to install the userscript]() *(replace with raw GitHub script link)* 19 | 3. Visit your Steam followed games page: `https://steamcommunity.com/id/YOUR_ID/followedgames/` 20 | 4. Click the **📊 Load Game Info** button at the top left 21 | 5. Watch your games get enhanced with info 22 | 23 | ## 📂 How It Works 24 | 25 | - Uses Steam's public API to fetch pricing 26 | - Pulls historical low prices via isthereanydeal.com game history 27 | - Automatically highlights discounted games with colored borders: 28 | - 🟧 Orange if discounted 29 | - 🟩 Green if not discounted 30 | 31 | ## 🛠️ Developer Notes 32 | 33 | - Uses a 10-game batch system with a delay to avoid rate-limiting 34 | - Fully client-side and lightweight 35 | - Can be extended to show GG.deals, SteamDB tags, etc. 36 | 37 | ## 📜 License 38 | 39 | MIT — free to use, modify, or distribute. 40 | 41 | --- 42 | -------------------------------------------------------------------------------- /steam-followed-games-enhancer-source: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Steam Followed Games Enhancer 3 | // @namespace http://tampermonkey.net/ 4 | // @version 3.1 5 | // @description Enhance Steam Followed Games with Steam pricing, historical low info, sorting, and per-game overlays. 6 | // @author Big-Z 7 | // @match https://steamcommunity.com/* 8 | // @grant GM_xmlhttpRequest 9 | // @connect store.steampowered.com 10 | // @connect isthereanydeal.com 11 | // ==/UserScript== 12 | 13 | (function () { 14 | 'use strict'; 15 | 16 | const BATCH_SIZE = 10; 17 | const BATCH_DELAY = 1000; 18 | let totalDiscountedValue = 0; 19 | const gamesData = []; 20 | let progressBar, progressText; 21 | let sortMode = 'none'; 22 | 23 | const slugify = name => name.normalize("NFKD").replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-").toLowerCase(); 24 | const formatPrice = cents => cents === null ? 'No price info' : `$${(cents / 100).toFixed(2)}`; 25 | const parseDate = dateStr => new Date(Date.parse(dateStr)) || new Date(0); 26 | 27 | function fetchSteamData(appid, callback) { 28 | GM_xmlhttpRequest({ 29 | method: "GET", 30 | url: `https://store.steampowered.com/api/appdetails?appids=${appid}&cc=us&l=en`, 31 | onload: function (res) { 32 | try { 33 | const data = JSON.parse(res.responseText)[appid]; 34 | if (!data.success || !data.data) return callback(null); 35 | const priceInfo = data.data.price_overview; 36 | callback({ 37 | price: priceInfo?.initial ?? null, 38 | final: priceInfo?.final ?? null, 39 | discount: priceInfo?.discount_percent ?? 0, 40 | release: data.data.release_date?.date || 'Unknown' 41 | }); 42 | } catch { 43 | callback(null); 44 | } 45 | } 46 | }); 47 | } 48 | 49 | function fetchSteamHistoricalLow(gameName, callback) { 50 | const slug = slugify(gameName); 51 | GM_xmlhttpRequest({ 52 | method: "GET", 53 | url: `https://isthereanydeal.com/game/${slug}/history/`, 54 | onload: function (res) { 55 | try { 56 | const doc = new DOMParser().parseFromString(res.responseText, "text/html"); 57 | const rows = doc.querySelectorAll(".game-prices .history tbody tr"); 58 | let lowest = null; 59 | rows.forEach(row => { 60 | const store = row.querySelector("td:nth-child(2)")?.textContent.trim(); 61 | const priceStr = row.querySelector("td:nth-child(4)")?.textContent.trim(); 62 | if (store === "Steam" && priceStr?.startsWith("$") ) { 63 | const price = parseFloat(priceStr.replace("$", "")); 64 | if (!isNaN(price)) { 65 | lowest = lowest === null ? price : Math.min(lowest, price); 66 | } 67 | } 68 | }); 69 | callback(lowest ? `$${lowest.toFixed(2)}` : 'N/A'); 70 | } catch { 71 | callback('N/A'); 72 | } 73 | } 74 | }); 75 | } 76 | 77 | function updateProgress(current, total) { 78 | const percent = Math.round((current / total) * 100); 79 | progressBar.value = percent; 80 | progressText.textContent = `Progress: ${current}/${total} (${percent}%)`; 81 | } 82 | 83 | function renderSortedGames(container) { 84 | const sorters = { 85 | 'price-asc': (a, b) => (a.final ?? Infinity) - (b.final ?? Infinity), 86 | 'price-desc': (a, b) => (b.final ?? 0) - (a.final ?? 0), 87 | 'discount-desc': (a, b) => b.discount - a.discount, 88 | 'date-desc': (a, b) => parseDate(b.release) - parseDate(a.release), 89 | 'none': () => 0 90 | }; 91 | const sorted = [...gamesData].sort(sorters[sortMode]); 92 | container.innerHTML = ''; 93 | sorted.forEach(({ node }) => container.appendChild(node)); 94 | } 95 | 96 | function batchProcess(games, index = 0, container = null) { 97 | if (index >= games.length) return; 98 | 99 | const batch = games.slice(index, index + BATCH_SIZE); 100 | let doneCount = 0; 101 | 102 | batch.forEach(game => { 103 | const titleEl = game.querySelector('.followed_game_name, .gameListRowItemName, .title'); 104 | const appLink = game.querySelector('a')?.href; 105 | const appid = appLink?.match(/app\/(\d+)/)?.[1]; 106 | const name = titleEl?.textContent.trim(); 107 | 108 | if (!appid || !name) return checkDone(); 109 | 110 | fetchSteamData(appid, steamData => { 111 | if (!steamData) return checkDone(); 112 | fetchSteamHistoricalLow(name, historicalLow => { 113 | const box = document.createElement('div'); 114 | box.style = 'margin-top:6px;padding:6px;background:#222;color:white;font-size:13px;border-radius:6px;'; 115 | const discountPrice = steamData.final && steamData.price ? `$${(steamData.final / 100).toFixed(2)}` : 'N/A'; 116 | box.innerHTML = ` 117 |
Steam Price: ${formatPrice(steamData.price)}
118 |
Discount %: ${steamData.discount}%
119 |
Discount Price: ${discountPrice}
120 |
Steam Historical Low: ${historicalLow}
121 |
Release: ${steamData.release}
122 | `; 123 | game.appendChild(box); 124 | 125 | if (steamData.discount > 0 && steamData.final < steamData.price) { 126 | game.style.border = '2px solid orange'; 127 | totalDiscountedValue += steamData.final; 128 | } else { 129 | game.style.border = '2px solid green'; 130 | } 131 | 132 | gamesData.push({ 133 | name, appid, 134 | price: formatPrice(steamData.price), 135 | final: steamData.final, 136 | discount: steamData.discount, 137 | release: steamData.release, 138 | historical: historicalLow, 139 | node: game 140 | }); 141 | 142 | checkDone(); 143 | }); 144 | }); 145 | 146 | function checkDone() { 147 | doneCount++; 148 | updateProgress(index + doneCount, games.length); 149 | if (doneCount === batch.length) { 150 | renderSortedGames(container); 151 | setTimeout(() => batchProcess(games, index + BATCH_SIZE, container), BATCH_DELAY); 152 | } 153 | } 154 | }); 155 | } 156 | 157 | function addUI() { 158 | const wrapper = document.createElement('div'); 159 | wrapper.style = 'position:fixed;top:10px;left:10px;z-index:999999;display:flex;gap:8px;'; 160 | 161 | const btn = document.createElement('button'); 162 | btn.textContent = '📊 Load Game Info'; 163 | btn.style = 'padding:10px;background:#171a21;color:white;border:none;border-radius:8px;'; 164 | btn.onclick = () => { 165 | const games = [...document.querySelectorAll('.gameListRow.followed')]; 166 | const container = document.querySelector('.responsive_page_template_content') || document.body; 167 | batchProcess(games, 0, container); 168 | }; 169 | 170 | const dropdown = document.createElement('select'); 171 | dropdown.innerHTML = ` 172 | 173 | 174 | 175 | 176 | 177 | `; 178 | dropdown.style = 'padding:10px;border-radius:6px;'; 179 | dropdown.onchange = () => { 180 | sortMode = dropdown.value; 181 | const container = document.querySelector('.responsive_page_template_content') || document.body; 182 | renderSortedGames(container); 183 | }; 184 | 185 | wrapper.appendChild(btn); 186 | wrapper.appendChild(dropdown); 187 | document.body.appendChild(wrapper); 188 | 189 | const barBox = document.createElement('div'); 190 | barBox.style = 'position:fixed;top:60px;left:10px;z-index:999999;background:#222;padding:10px;border-radius:8px;color:white;'; 191 | 192 | progressBar = document.createElement('progress'); 193 | progressBar.max = 100; 194 | progressBar.value = 0; 195 | progressBar.style = 'width: 300px; margin-bottom: 5px;'; 196 | barBox.appendChild(progressBar); 197 | 198 | progressText = document.createElement('div'); 199 | progressText.textContent = 'Progress: 0/0 (0%)'; 200 | barBox.appendChild(progressText); 201 | 202 | const totalDiv = document.createElement('div'); 203 | totalDiv.id = 'discounted-total'; 204 | totalDiv.textContent = 'Total Discounted Value: $0.00'; 205 | barBox.appendChild(totalDiv); 206 | 207 | document.body.appendChild(barBox); 208 | } 209 | 210 | if (window.location.href.includes('/followedgames')) { 211 | addUI(); 212 | } 213 | })(); 214 | --------------------------------------------------------------------------------