Tuesday, 18. July 2006, 19:08:56
[user js] View page's DOM in a tree view
This script shows the current DOM held by the rendering engine, in a nice tree, which nodes are collapsible/expandable.Instruction are inside the script.
source-tree-view.js
A screenshot
stvsample.png
Wednesday, 9. May 2007, 03:13:11
Can someone post a button so that I can find out if I'm actually having a real issue here, or if I'm just going insane?
Wednesday, 9. May 2007, 14:53:03
Wednesday, 9. May 2007, 15:49:15
Originally posted by AyushJ:
I think this one is better: http://dev.opera.com/tools > Dom Snapshot
That is a very nice DOM source viewer, but I'm fairly certain that xErath's version works locally instead of by communicating with an online server, which makes xErath's version faster.
Wednesday, 9. May 2007, 16:03:20 (edited)
Originally posted by AyushJ:
I think this one is better: http://dev.opera.com/tools > Dom Snapshot
Source Tree View's code indentation is much better than DOM Snapshot's, and DOM Snapshot lacks the function of code folding, so Source Tree View is the best.
Wednesday, 9. May 2007, 16:31:03
Originally posted by mark_poleon:
Source Tree View's code indentation is much better than DOM Snapshot's, and DOM Snapshot lacks the function of code folding, so Source Tree View is the best.
I agree that Source Tree View's indentation and code folding is much better, but Opera's version is a bit easier to read...
Thursday, 10. May 2007, 15:12:20
Originally posted by xErath:
...and a lot older
. I have that script since the early 8s.
Well, it still works. And it does a good job.
Wednesday, 19. December 2007, 01:12:14
I hope you haven't missed upgrades for this script.
You have a new version available
source-tree-view.js
Changes:
- links are clickable (href, src, data)
- colors now are blueish (less agressive), font is smaller
- integration with my syntax highlighter script for script elements (check mysig)
When I have time I'll do some performance fixes. Currently there are many string operations being done. when I have time I'll optimize this part.
Forums » Opera Community » General Opera topics » User JavaScript
