Xpodom

Pick an element.
Get its code.

Xpodom is a browser extension that takes any element off a web page, with the HTML, CSS and JavaScript that make it work, and hands it to GrapesJS, CodePen or a plain file.

The Chrome and Firefox versions are coming soon.

Late Shift Radio

Vinyl until sunrise

A card made for picking: its hover, animation and click handler come along.

From a page to your project

  1. Point at it

    Start Xpodom from its icon, the right-click menu or Alt Shift E. Hover the element, widen or narrow the selection with ↑ ↓, then click.

    A product card outlined in orange on a web page, with its name and size above it.
  2. Check the code

    A tab opens with a preview next to editable HTML, CSS and JS. Only the rules that apply to your element are kept, rewritten so they still work outside the original page.

    The Xpodom editor: the extracted card on the left, its CSS on the right, export buttons below.
  3. Send it where you work

    Open it in an online editor, download it, or drop it into GrapesJS as a block.

    The extracted card placed in a GrapesJS canvas.

Where your element can go

GrapesJSA plugin file that registers a component and its block, a JSON block for your block manager, or code to paste in the import dialog.
CodePen, JSFiddle, StackBlitzOne click opens a new tab with the code already in place.
HTML fileA standalone page, with images and fonts embedded if you want them.
ClipboardHTML, CSS or JS, copied separately.

What comes along

  • Hover and toggled states, media queries, animations and CSS variables
  • Inherited fonts, colors and backgrounds
  • Shadow DOM, flattened to ordinary HTML
  • Elements inside iframes
  • Inline handlers, jQuery events and, on request, addEventListener listeners
  • SVG icons from external sprites

What stays behind

  • React, Vue or Angular logic: you get the current rendering, not the component
  • Variables a script needs from elsewhere on the page: Xpodom lists them for you
  • Video and audio files
  • Values of password and hidden fields

Your code stays in your browser until you send it

No account, no server, no analytics. Xpodom runs on a tab only when you start it there. If you click CodePen, JSFiddle or StackBlitz, the code shown in the editor is sent to that site, and nowhere else.

Read the privacy policy