This is cheaper than it looks. All four file links on that page (Source, Commit, Signature, Public key) already answer with text/plain; I checked each one. A click handler can fetch() the href, put the text in a <pre> inside a small window, and keep the href as the "raw file" link.
For the adorable dial: theme-bubblegum.js already builds window title bars for the draggable windows, so Bubblegum could reuse that chrome, and other themes could get a plain <dialog>.