Skip to content

Instantly share code, notes, and snippets.

@joshkalpin
Created January 12, 2014 05:01
Show Gist options
  • Save joshkalpin/8381141 to your computer and use it in GitHub Desktop.
Save joshkalpin/8381141 to your computer and use it in GitHub Desktop.
//Fucking huge hack, OMFG
setTimeout(function() {
getElementByXpath('/html/body/div[5]').remove();
}, 0);
setTimeout(function() {
nextElement = getElementByXpath('/html/body/div[5]');
if (nextElement !== null) {
getElementByXpath('/html/body/div[5]').remove();
}
}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment