Created
December 8, 2025 20:09
-
-
Save crashmax-dev/94f7acb37a2ea6a9eae17c396c65be7a to your computer and use it in GitHub Desktop.
Fix game covers on Steam profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Steam (Fix game covers on Steam profile) | |
| // @version 2025-12-08 | |
| // @author crashmax | |
| // @match https://steamcommunity.com/id/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=steamcommunity.com | |
| // @grant none | |
| // ==/UserScript== | |
| const covers = document.querySelectorAll('img.game_capsule') | |
| for (const cover of covers) { | |
| const isValid = cover.src !== location.href | |
| if (isValid) continue | |
| if (cover.parentElement instanceof HTMLAnchorElement) { | |
| const steamAppId = cover.parentElement.href.split('/').at(-1) | |
| cover.src = `https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/${steamAppId}/header.jpg?t=${Date.now()}` | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment