Created
October 24, 2017 23:34
-
-
Save mkpt/9ac088a5610c70462a6e778de735cd9e to your computer and use it in GitHub Desktop.
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
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) {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment