Created
October 5, 2013 19:11
-
-
Save quylaa/6844952 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
// Defines function | |
Element.prototype.remove = function() { | |
this.parentElement.removeChild(this); | |
} | |
NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { | |
for(var i = 0, len = this.length; i < len; i++) { | |
if(this[i] && this[i].parentElement) { | |
this[i].parentElement.removeChild(this[i]); | |
} | |
} | |
} | |
// Now you just find the overlay things in the HTML | |
// and add something like | |
// document.getElementById("some-element-id").remove(); | |
// or | |
// document.getElementsByClassName("some-class-name").remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment