Last active
May 15, 2017 22:24
-
-
Save Tithen-Firion/08252b863cdadfd1f9e9bab99985b6ac to your computer and use it in GitHub Desktop.
Steam profile visibility toggler.
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
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");})(); |
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
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