if (window.location.href.match(/\?app=1$/)){ document.getElementById('someID').style.display = "none"; }