Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DOM Inspection Scripts
/*
This function will list all of the functions on an HTML DOM Element that are non-standard.
temp0 is set by the Firefox Inspector when you right click on an element and choose "use in console";
You need to do that before running this script.
*/
var functionList = "";
var element = document.createElement('div');
for(var p in temp0){
if (typeof temp0[p] == 'function' && typeof element[p] == 'undefined') functionList += ", " + p;
}
functionList = functionList.substring(2); //remove the preceeding ", "
console.log(functionList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.