Skip to content

Instantly share code, notes, and snippets.

@carlin-q-scott
Created January 30, 2019 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlin-q-scott/bdca8327460eb351c0a5f2b5bcb1d005 to your computer and use it in GitHub Desktop.
Save carlin-q-scott/bdca8327460eb351c0a5f2b5bcb1d005 to your computer and use it in GitHub Desktop.
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