Have you tried Firebug Lite. It is an in-browser tool similar to that found in Chrome.
http://getfirebug.com/firebuglite
It will give you most of the capabilities you are looking for (most likely), and will allow you to programmatically enable it and destroy it.
What do you think?