A function that will scan through an object to find a specific term or value. It searches recursively, and ignores duplicate objects along a path.
This function was made for performing datalayer explorations. It's not a perfect solution, as it cannot call functions or find locally scoped values.
Copy 1_object_scanner.min.js
and paste it onto desired page. Run the function searchForTerm(term, options)
. See object_scanner.js
for usage information.