Skip to content

Instantly share code, notes, and snippets.

@anijatsu
Last active August 29, 2015 14:19
Show Gist options
  • Save anijatsu/f94d1ceaedcba61f55c5 to your computer and use it in GitHub Desktop.
Save anijatsu/f94d1ceaedcba61f55c5 to your computer and use it in GitHub Desktop.
Steam Community - Correctly sized backgrounds for 16:10 or 4:3
// ==UserScript==
// @name Steam Community - Correctly sized backgrounds for 16:10 or 4:3
// @namespace Anijatsu's_1
// @include *http*://steamcommunity.com/id/*
// @include *http*://www.steamcommunity.com/id/*
// @version v0.2
// @grant none
// ==/UserScript==
if (document.getElementsByClassName("profile_page has_profile_background").length == 1)
{var x = document.getElementsByClassName("profile_page has_profile_background").item(0);
x = x.style.backgroundSize = "100%"}
else if (document.getElementsByClassName("migrated_profile_page").length || document.getElementsByClassName("pagecontent bluebg").length == 1)
{document.body.style.backgroundSize = "100%";}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment