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. [...] to Roger Johansson, I’ve found a new firefox extension called X-Ray, which I think I’m going to find quite [...]

  2. [...] must stay away from the View Source command and use and use two of my favorite Firefox extensions, X-Ray and [...]

  3. [...] on a routine web surf that took me to Design Meme.com I discovered a Firefox Extension called X-Ray. “Well I have to have that! It will make my life so simple!” The I found myself crusing over to [...]

  4. [...] 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] 2 comments, latest by [Unknown] [...]

  5. [...] >>X-Ray タグの可視化。 [...]

  6. [...] Modern Syntax : ページ上にHTMLタグを表示してくれるFirefox用プラグイン という記事を読んでNew Firefox Extension: X-Ray | Design Memeを知ったわけですが、あー、なるほど、これは便利かもしれないなぁ、でも僕はFirefoxとか使わないからなぁ、Safariで使いたいなぁと思ったのでBookMarkletで似たようなモノを作ってみた(っていうか、パクリですね…、こりゃ…)。 [...]

  7. [...] pantalla, y sin necesidad de tener que mirar el cdigo fuente. Interesante. ENLACES RELACIONADOS http://www.designmeme.com/2006/01/06/new-f…xtension-x-ray/ Informacin hispamp3.com Normas del Foro, por favor leer para evitar confusiones, gracias.Si [...]

  8. [...] Firefox extensions I couldn’t live without MeasureIt 0.3.5 How to create Firefox extensions New Firefox Extension: X-Ray Web Developer Extension Rapid Web Development and Testing with Mozilla Firefox HTML VALIDATOR [...]

  9. [...] fresh XP installatie…! X-Ray (bekijk HTML source zonder daarvoor de source te bekijken, ja ja http://www.designmeme.com/2006/01/06/new…ion-x-ray/ View Source Chart http://jennifermadden.com/scripts/ViewRe…ource.html Superextensies voor mij [...]

  10. [...] Par Pascal, samedi 14 janvier 2006 à 06:00 :: WebMaster Voici une belle petite extension pour votre navigateur préféré (Firefox bien sûr). L’extension vous permettera de voir ou se situent vos TAG HTML directement dans une page HTML. Donc on évite ainsi l’aller retour entre l’HTML et la source. Firefox : X-Ray [...]

  11. Again she immediately bucked wrestling vixxxens and wiped it was, well. He groaned loudly as.

  12. Tell me. They became sucking horse dick delirious at her jack – - – - -.

  13. ok, muchas gracias por la extencion

  14. [...] X-Ray – Revisa las etiquetas de una web sin necesidad de acceder al código fuente. Tags estilos [...]

  15. [...] 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 [...]

  16. [...] X-Ray extension for Firefox will let you see HTML tags without looking at the source code. Once installed [...]

  17. [...] படத்தில் பார்க்கும் எக்ஸ் ரே! இதை உபயோகித்ததில் பல [...]

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

  19. [...] New Firefox Extension: X-Ray | Design Meme Enjoyed It ? Share It ! :These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  20. [...] x-ray extension [...]

  21. [...] X-Ray [...]

  22. [...] (javascript greasemonkey tools firefox) Bookmark  [Discover] New Firefox Extension: X-Ray | Design Meme http://www.designmeme.com/2006/01/06/new-firefox-extension-x-ray/ (firefox extension extensions [...]

  23. [...] Le fait d’entourer les blocs et d’afficher leurs id est aussi très pratique.Sinon, l’extension X-Ray est aussi pratique, pour afficher les tags html directement "au milieu" du texte. Hors [...]

  24. [...] x-ray extension [...]

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

  26. [...] code. X-ray Firefox plugin is written by Stuart Robertson and can be downloaded from his blogg Design Meme Posted by friweb on 08.04.2006 – [...]

  27. [...] mozilla firefox programming xml xul [»] Added >30 days ago by joelamantia, 3 Users saveNew Firefox Extension: X-Ray | Design Meme design firefox browser extension Added >30 days ago by ikepigott, 1 User save13 Great Firefox [...]

  28. great plugin, great article Thnx

  29. [...] Firefox Extension I have found another cool Firefox Extension called X-Ray. This extension allows you to see the HTML page markup right on the webpage, without having to [...]

  30. [...] advanced scripts, tutorials, online tools, live help, Perl, PHP, HTML, XHTML, Javascript, CSS New Firefox Extension: X-Ray | Design Meme One of my New Year’s [...]

  31. Cool, thanks for the great extension…

  32. [...] probably dugg beyond belief (1227 and counting), I’ve been using the X-Ray Firefox Extension and have been loving it. It’s kind of like the ability to paint with numbers and see how it [...]

  33. [...] on 2006-03-31 15:37:14 X-Ray is a new firefox extension for developers which when applied to a page it can help you see how the [...]

  34. [...] x-ray FF extension [...]

  35. [...] to Install:1) Download xray.xpi using IE browser from here.2) Open Firefox browser.3) Then Go to File –> Open File –> navigate to downloaded [ [...]

  36. Dude.. that’s awesome! I do web development as a full-time job, and soon I’ll probably be close to starting my own business with it if I can. This tool will save me a TON of time chasing down those rogue tags! Sir, I congratulate you on an awesome add-on!

  37. [...] [...]

  38. [...] in den Quelltext gucken geht nicht mehr: die X-Ray Extension fr Firefox stellt auf Knopdruck die verwendeten HTML-Tags innerhalb der Website dar. Praktisch, wenn man mal [...]

  39. [...] View Source Chart is a really great Firefox extension. Best combined with X-Ray. [...]

  40. a great extension

    I love it ;) Thanks

    Best Regards from Germany

  41. Thanks for the plugin, this will definitely save me some debugging time.

  42. Thanks for this Plugin.

  43. Nice extension and thanks for the link to roachfiend. The tutorial / help there really helps when trying to create extensions for myself. I’ll definitely be adding this to my StumbleUpon.

  44. [...] X-Ray Extension [...]

  45. Good job. This is actually a very creative and useful tool. I think that there are going to be quite a lot of my friends who will be happy with this – so I’ll be sending them a link of your site. I like the little logo as well (I know that’s just something aside, but I do.) It’s a great idea. The screenshot looks neat as well.

  46. great work! i lov it.

  47. very nice tool thanks!

  48. [...] Ne consiglierei l’uso in ogni caso insieme alla Web Developer Toolbar che rende disponibili anche un sacco di altre utilissime funzionalità. Ma ecco i link qui sotto: X-Ray [...]

  49. [...] x-ray [...]