User:Theooolone/common.js

// Hides E-mail address // Use with User:Theooolone/common.css to prevent e-mail from showing before script runs. var homepageEmail = document.getElementsByClassName("growthexperiments-homepage-startemail-address")[0];

if (homepageEmail) { homepageEmail.style.display = "none"; homepageEmail.insertAdjacentHTML("afterend", " (show)"); var homepageEmailToggle = document.getElementById("homepageEmailToggle"); }

function EmailToggleButton { if (homepageEmail.style.display == "none") { homepageEmail.style.display = "inline"; homepageEmailToggle.innerHTML = "hide" } else { homepageEmail.style.display = "none"; homepageEmailToggle.innerHTML = "show" } }