The goal of this code is to find javascript native objects which have been overriden (by various script tags).
- Open Chrome Devtools
- Run the "create clean iframe" code
- Switch to the "foo" console js context
- Run the "find non-native functions" code
- It will output any matches it finds
The usability could be improved drastically:
- Bookmarklet
- No need for chrome dev tools
- Output a nice reporting format
- Remove duplicates
Code quality: The code was just smashed together until it worked, it could use a fair amount of clean up and refactoring.