My first bookmarklet
2004-05-03 01:07:54
hi, I needed a way to see an indented list of all nodes of a page cause I have to check the markup (and semantics) of more than 50 pages, and looking through all the code is too boring. DOM Inspector does it, but to see all nodes you have to expand them one by one. So I've created this little script. Despite being slightly incorrect (since returns bad formed markup) it brings the visual result correctly, just what I needed.
The code is as follows: node lister. You can try it by adding it to your favorites (all in one line). When you call it it will execute the script and then open a popup with the results (mozilla will block the popup but if you allow it it will open it next time).
If you spot errors or have suggestions let me know (just comment this post) but since I made this to save me some time during the next 24 hours I'm not sure I'll have time to make a lot of changes.
UPDATE: more bookmarklets (or faveletes) can be found at pixy, centricle favelets, wargers or tantek. Thanx for the tips to Dave and Tom.