Last active
September 9, 2016 16:47
-
-
Save sbmaxx/93023231373f2e105eef to your computer and use it in GitHub Desktop.
remove beeline's toolbar
This file contains 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
document.addEventListener('DOMContentLoaded', function() { | |
var toolbar = document.getElementById('toolbar'), | |
iframe = toolbar && toolbar.firstElementChild; | |
if (iframe && /beeline/.test(iframe.getAttribute('src'))) { | |
toolbar.parentNode.removeChild(toolbar); | |
} | |
}); | |
setTimeout(function() { | |
var script = document.querySelector('script[name=ets-anchor]'); | |
if (script) { | |
script.parentNode.removeChild(script); | |
} | |
}, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment