I would like to change the context of the javascript executed in the webkit developer tool/firebug console to execute its code like it is running from inside an iframe on th
For firebug solution see this answer on another SO question. Doesn't work cross-domain like Dennis's Chrome solution however.
Edit: With newer versions of firebug they may have fixed cross-domain issue.