stopBefore(document, 'getElementById')
stopBefore('document.getElementById') // the same as the previous
stopBefore(Element.prototype, 'removeChild')
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/*global document*/ | |
//a function to get DOM nodes by nodeType property. | |
//If you do not supply a value I will give you every DOM node. | |
// | |
//example: | |
// var allComments = document.getNodesByType(8); | |
// or | |
// var allComments = document.getNodesByType("COMMENT_NODE"); | |
// | |
//The accepted string values are the actual node type names, so that the |