Script Summary: See method calls on an object inside a jQuery wrapper (requires Greasemonkey)
This sample code logs all interaction on twitter.com with #profile_tab and its children at
How to use
getWatchFunction(jQuery, args$, blnElement) function to return a "watch" function whenever your elements of interest are jQuery'd (as identified by the jQuery object itself (parameter 1) and the arguments to jQuery (parameter 2).
getArrayLogger(arrLog) will return a suitable watch function that just records the access (method, arguments, context, selector, timestamp, and call stack) at arrLog, but you can create your own watch functions as well. They will be passed objDefault the value returned by the jQuery call, jQuery the jQuery object itself, strMethod the method name, arrArgs the arguments passed to strMethod, and objContext the
arguments context of user script code, and should return objDefault or a suitable replacement value (page code will see this returned from
- 0.1 (2010-03-08)
- original release