Skip to content

Instantly share code, notes, and snippets.

@sbmaxx
Last active September 9, 2016 16:47
Show Gist options
  • Save sbmaxx/93023231373f2e105eef to your computer and use it in GitHub Desktop.
Save sbmaxx/93023231373f2e105eef to your computer and use it in GitHub Desktop.
remove beeline's toolbar
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