Use predicates to match DOM nodes and pass them to custom functions.This extension traverses the DOM (both static and dynamically generated). Each node for which the predicate function returns true will be passed to the handling function.
You can configure the extension through the extensions page (chrome://extensions/)