Offprint

Colophon

How it works

One block of HTML, two copies of the card, and a browser rule that shows exactly one of them. No script decides anything.

Tobias Renn
@tobiasrenn
This is the most relatable thing a lighthouse keeper has ever said.
Maren Voss@marenvoss· Nov 14
The foghorn manual has a plot twist.
· 52.3K Views
12881,240
Made with Offprint
This card is the block described below no script drew it

The block

What you paste is a single <div>. Inside it are two things: a <template shadowrootmode="open"> holding the card with a real stylesheet, and the same card again with every style written into style="" attributes.

<div data-kept-post="x">
  <template shadowrootmode="open">
    <style>…the skin…</style>
    <article class="root">…</article>   <!-- copy one -->
  </template>
  <article style="all:initial;…">…</article>  <!-- copy two -->
</div>

Which copy you see

When a browser reads that block as part of a page, the template becomes the div's shadow root. A shadow root that has no slot hides the element's ordinary children, so copy two is not drawn, not announced by screen readers, and its pictures are never fetched. Copy one shows, sealed off: your page's CSS can't reach in, and the card's CSS can't leak out.

When the block is put on the page by script instead (many site builders do this), or a sanitiser has removed the template, no shadow root appears. Then the template is inert or gone, and copy two is simply ordinary HTML that carries its whole look with it.

Either way, one card. Nothing has to run.

Why the two copies can't drift apart

Each skin is written once. Every element asks for its look by name; the same template is then printed with class names for the shadow root, or with those styles resolved and written inline. There is no second template to forget to update.

Where the post comes from

  • X: the public data X's own embed widget reads. No repost or view counts come with it, and long posts can arrive cut short; the editor tells you when.
  • Bluesky: its open public API.
  • Mastodon: the post's own server, for any server that speaks Mastodon's API.
  • Everything else: the preview tags a page publishes for link cards. Enough for a name, some words and a picture.

Pictures are copied here when a post is fetched, and stored under a name made from their own contents. An embed that pointed at the platform's servers would die with the post, which is the thing this site exists to prevent.

What a pressed post is

Pressing freezes a post under a short link. It is never changed afterwards: editing starts a copy, and pressing that gives a new link. So the HTML you pasted, the link you shared and the preview a chat app cached all keep meaning what they meant.

The line under the card

A capture says where and when it was captured, for exactly as long as its content still matches what was fetched (the post's page shows a fingerprint of that). Change anything and it becomes an "edited copy". A post made by hand here says only "Made with Offprint": it might be a mock-up, or a real post someone typed in to keep, and nothing was fetched to check it against, so it claims no source. That credit line can be switched off; the word "captured" can't be switched on.

Icons and looks

The skins are drawn from scratch: our own icons in each platform's manner, system fonts, nothing loaded from any platform. This site isn't affiliated with any of them.

Make a post Watch a card survive a hostile page