Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Steam profile visibility toggler.
javascript:(function(){var%20a=document.querySelector(".profile_content.has_profile_background").style;document.querySelector(".profile_header_bg").style.visibility=a.visibility=(a.visibility=="hidden"?"visible":"hidden");})();
var style = document.querySelector(".profile_content.has_profile_background").style;
var newVisibility;
if(style.visibility == "hidden")
newVisibility = "visible";
else
newVisibility = "hidden";
document.querySelector(".profile_header_bg").style.visibility = style.visibility = newVisibility;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment