Skip navigation.

Posts tagged with "Source"

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:


Source panel(sort of)

, , ,

Using a bit of Cross document messaging its possible to comminucate between different documents, using the power of UserJS I made a sort of source panel :smile: .

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

http://dhost.info/shoust/sendmsg.html

With the html page, all you do is type in an address, and upon pressing Go, opera will open the page, and when the document fully loads, the pages source is viewed inside the html page, It works inside the panel too.. so the best bet is to bookmark the html page or save it, install the userjs file, and instruct the html page to open a site you want the source from and voila.. thats it :smile: When the source is grabbed. The window opened will be closed :smile: Thats all there is to it.

EDIT: For all those trying it out, it is b0rked currently in 9p1, :smile: works in 8 and above i think :smile: