Skip to content

Instantly share code, notes, and snippets.

@crashmax-dev
Created December 8, 2025 20:09
Show Gist options
  • Select an option

  • Save crashmax-dev/94f7acb37a2ea6a9eae17c396c65be7a to your computer and use it in GitHub Desktop.

Select an option

Save crashmax-dev/94f7acb37a2ea6a9eae17c396c65be7a to your computer and use it in GitHub Desktop.
Fix game covers on Steam profile
// ==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