Skip to content

Instantly share code, notes, and snippets.

@mkpt
Created October 24, 2017 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkpt/a0c69c020b037681144da7064c77725a to your computer and use it in GitHub Desktop.
Save mkpt/a0c69c020b037681144da7064c77725a to your computer and use it in GitHub Desktop.
var cleanIt = function() {
var myIds = ['hplogo', 'my-tiles','most-visited','hplogop', 'dood', 'prm', 'prm-pt','gbq1'];
for (var i=0; i < myIds.length; i++) {
try {
var el = document.getElementById( myIds[i] );
el.parentElement.removeChild(el);
} catch(e) {}
}
}
window.onload = function() {
cleanIt();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment