New Firefox Extension: X-Ray

One of my “New Year’s resolutions”:http://www.designmeme.com/2005/12/30/new-years-resolutions-for-2006/ was to create an “interesting script, plugin, extension, or widget.” I didn’t think I’d write a Firefox Extension only six days into 2006, but after writing about using the CSS :before and :after pseudo elements to create “CSS Curly Quotes”:http://www.designmeme.com/articles/csscurlyquotes/, it got me thinking about other uses for that technique. I thought that wrapping the elements on a page with the actual tags from the sourcecode might be a good tool for learning and debugging, but wasn’t sure how to go about creating an extension. Fortunately, I found “a great tutorial at roachfiend.com”:http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/ and with a little trial and error, I’ve finished my first extension.

The “X-Ray Firefox Extension”:http://www.designmeme.com/xray/ let’s you see the tags on a page without viewing the sourcecode.

Install Extension Install X-Ray Extension for Firefox

One installed the X-Ray command is available by right-clicking as well as in the Tools menu. When applied to a page it can help you see how the document was constructed without having to go back and forth between the sourcecode and the page in your browser. Is that list made of li dd or p elements? Is that an h3 tag or just some bolded text? X-Ray shows you what’s beneath the surface of the page.

While I create webpages all the time, there’s something about writing a piece of code you have to _install_ that’s very satisfying. Even better was finding that it was actually something I’d find helpful myself.

For version 0.5 the current list of supported tags is: h1, h2, h3, h4, h5, h6, p, ol, ul, li, dt, dd, font, div, span, blockquote, pre, a, b, i, strong, em. If some other people find this extension useful, I’ll probably add support for more tags, and possibly experiment with adding some other enhancements as well.

Update

By request from the nice folk at digg.com here’s a screenshot of the extension in use:

Screenshot of X-Ray Firefox Extension in use

Donations to The X-Ray Tip Jar are greatly appreciated.

Thanks for your support!

Tagged : design, development, extension

271 Responses to “New Firefox Extension: X-Ray”

  1. Good works ………..thats help people……great thks

  2. a very great tool, i love it.

  3. Thank you for two great plug-ins. I appreciate this and professor x.

  4. thanx for the great extention

  5. [...] New Firefox Extension: X-Ray | Design Meme The X-Ray Firefox Extension let�s you see the tags on a page without viewing the sourcecode. [...]

  6. [...] XRay für Firefox 2.0: Install ( [...]

  7. That’s really helpful for finding the tags. I took much time before using this extension.
    Thanks ;)
    I’ll post about it in my blog

    Http://raizaM.BlogSpot.com

  8. I don’t usually agree with new year resolutions but I really like your idea. Good Luck!!!!!!!!!!!

  9. My 17…

    Information about 17…

  10. [...] X-Ray – Lets you see HTML/XHTML tags on a page without viewing the source code. Once installed, right-click the page and select X-Ray, all tags on the page will be displayed on the web page you are viewing. [...]

  11. Great!

  12. Nice site actually. Gone to my favourites. Thanks for creation.

  13. My ftop…

    Pipka ftop…

  14. Pipka italy…

    About italy…

  15. Pipka topnado…

    Information topnado…

  16. Popular top…

    Information top…

  17. [...] X-Ray [...]

  18. Awesome job thank you much
    missing one feature only
    copy and paste tags )))

  19. This is my favourite plugin together with web developer toolbar.

  20. Super work, great that people are still willing to contribute…

  21. My Firefox was also just updated and everything seems to be still ok with X-ray…

  22. [...] X-Ray – Stuart Robertson. “This Firefox extension lets you to see the markup of a page without viewing source, which can be useful when debugging. It’s also both fun and educational to use X-Ray to explore the markup used on other people’s sites.” [...]

  23. [...] Maus befindet. Ein Klick auf das Toolbar-Icon deaktiviert den Viewer dann wieder. Die Erweiterung X-Ray unterzieht die Seite einem »Röntgenblick« und zeigt das Markup innerhalb der Seite selbst [...]

  24. [...] design, then I have the Firefox extension of your dreams. The extension in question is called X-Ray and it gives you an inside out view of what elements a Web site is made up of. Here is some of the [...]

  25. [...] X-Ray zeigt per Mausklick HTML-Tags direkt im Browser an: [...]

  26. [...] Is that an h3 tag or just some bolded text? X-Ray shows you what s beneath the surface of the page. New Firefox Extension: X-Ray [Design Meme] read [...]

  27. [...] X-Ray is a cool new Firefox web development extension shows html tags inline with the page so you don’t have to keep flipping between the source and the page. Grab it here. Updated version that works with Firefox 1.5 here. [...]

  28. [...] Layouts Another good Firefox add in — X-Ray converts HTML tags to visible elements in the page. http://www.designmeme.com/2006/01/06/new-firefox-extension-x-ray/Friday, January 13, 2006 11:14 AM by Jeff [...]

  29. [...] [einfach-für-alle] heute gefunden eine schöne Erweiterung für den Firefox. [x-ray] heißt sie und zeigt die auf einer Webseite verwendeten hmtl-tags an. Zitat von einfach-für-alle [...]

  30. [...] to my list of "must-have" Firefox extensions, to make an even 10. Today I came across X-Ray, an extension that surrounds page elements with the HTML tags that created them, right there on the [...]

  31. [...] X-ray [...]

  32. [...] A neat addition to the list of Firefox extensions that really help make a web developer’s job a bit easier is X-Ray. [...]

  33. [...] X-RAY – This one will show you the html TAGS while you’re watching the site itself. COOL idea and it’s still getting developed for further usage. [...]

  34. [...] Your page is on StumbleUpon [...]

  35. [...] budding web dudes and dudettes, did I just find a gem! New New Firefox Extention: X-Ray, by Design Meme answers the question, How on earth did they code that? It lets you view webpages the way you [...]

  36. [...] X-ray,一个firefox extension,用于在页面上显示使用的html标记,比如一个段落就会在最终渲染的页面前后加上<p>和</p>,很直观,相当好用。记得Flash有个很猛的利用sharedobject的调试工具,也叫Xray,呵呵。 [...]

  37. [...] New Firefox Extension: X-Ray | Design Meme [...]

  38. [...] X-Ray Firefox Extension. [...]

  39. [...] Firefox X-Ray Extension [...]

  40. [...] <p><a>X-Ray</a> – rozszerzenie do Firefoksa wrapujące najbardziej popularne tagi w tekst obrazujący… jakie to tagi. Coś jak w tym poście. Od <a>Łukasza</a>.</p> [...]

  41. [...] X-Ray Tags und Elemente direkt sichtbar machen [...]

  42. [...] New Firefox Extension: X-Ray | Design Meme (tags: firefox extension webdesign) [...]

  43. [...] X-Ray [...]

  44. [...] X-Ray Firefox Extension css-web-tools & services [...]

  45. [...] X-Ray Une nouvelle extension de Firefox vient de faire son apparition, X-Ray, permettant de visualiser les tags d’une page sans avoir à regarder la source! Très [...]

  46. [...] ukratko radi u firefoxu skini firefox plugin x-ray http://www.designmeme.com/2006/01/06/new-firefox-extension-x-ray/i gledaj u ekran sto duze mozes uz otvoren x-ray bice ti malo jasnie kako sve funnckionise  kao [...]

  47. [...] X-Ray is another extension for Firefox to help out web devs – or anyone just curious about the underlying code of a webpage.The X-Ray Firefox Extension let’s you see the tags on a page without viewing the sourcecode [...]

  48. [...] desde una simple pantalla, y sin necesidad de tener que mirar el código fuente.Interesante.Mas InfoSalu2 spans = document.getElementsByTagName(‘span’); number = 0; for(i=0; i < spans.length; i++){ [...]

  49. [...] Per sviluppatori!Questa estensione di Firefox ti fa vedere i tag della pagina senza aprirla in vista codice.Link: New Firefox Extension: X-Ray | Design Meme [...]

  50. [...] to web pages WHILE browsing. It seems to fail when using frames through. This one can be found: here [edit] Gmail [...]