Skip navigation.

Sidebar Inspecting

, , , ,

From an earlier blog post, I've managed to enhance the example on cross document messaging, where as to the point I have made it so you can inspect an object and view its attributes assigned to it.

First of all, make this page into a sidebar/panel.
http://h1.ripway.com/shoust/sendmsg.html

And install this userjs.

http://h1.ripway.com/shoust/UserJS/sendmessage.js

How to install scripts here

Then when done, load the page and insert the address into the text field, and select either of the three options(source,dom and resources).

What the source option does is post the url's source to the textarea when loaded and closes the page that was opened. Resources does the same except you get a list of external/internal resources used on that page as links below the textarea.

The Dom option however does not grab the sourcecode of the targer page or close the target page. First it loads the page and adds a mousemove event, and sends the tagname of the element mouseovered, plus the attributes that it has.(To stop the inspecting, just tap ctrl key, to start again, hit ctrl key again)



What do you think? :smile:


Enable a sort of caret navigation for opera 9.Combining VBScript, Opera and Javascript for effective functions.

Comments

fearphage 21. September 2008, 21:34

You should update this. document.postMessage moved to window.postMessage
and postMessage's 2nd param has to be '*' now.

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.