Rada's script-tag template breaks on CSP, Willison's web-edit ships on Tailscale
Every URL the pipeline pulled into ranking for this issue — primary sources plus the supporting and contradicting findings each Researcher returned. Inline citations in the issue point back here.
Sources
Inline rendering with document.currentScript simonwillison.net
Inline rendering with document.currentScript Lean Rada describes a neat trick that takes advantage of the document.currentScript property. You can use that to drop in a tiny inline If you define a shortcut function like this: $=(…n)=>document.currentScript.replaceWith(…n) You get a tiny template language: The year is
web-edit 0.1a2 simonwillison.net
Release: web-edit 0.1a2 web-edit ( previously ) is my tiny web app for browsing and editing files in a folder. I mainly built it for editing files on different machines via Tailscale. I added a “copy to clipboard” option for both text and image data. I needed this because I was running pelican prompts on a laptop from my phone (here’s DeepSeek 4.1 Flash 1017 ) and I wanted an easy way to copy the resulting logs into a Gist. Tags: projects , pelican-riding-a-bicycle , deepseek
References
dedimax.com — ‘File Browser is dead’ dedimax.com
FileBrowser was officially archived on September 1, 2026, leaving thousands of deployments without future security patches; maintained forks like FileBrowser Quantum and newcomers like Sambee are now the recommended drop-ins.
daily.dev — self-hosted FileBrowser replacement thread daily.dev
copyparty is frequently cited as the highest-performing option for high-latency connections and large file transfers, often outperforming older Go-based tools in resumable upload logic.
ssdnodes.com — self-hosted file managers compared ssdnodes.com
TinyFileManager faced several ‘critical’ CVSS-rated vulnerabilities in 2025 and 2026 (such as CVE-2025-46651)… security auditors strongly recommend that these editors never be exposed directly to the internet.
web.dev — Baseline ClipboardItem.supports() web.dev
As of March 2025, the ClipboardItem.supports() method reached ‘Baseline’ status, allowing applications to programmatically verify if a specific format (like SVG) is supported before attempting a copy.
tomayac.com — Multi-MIME Async Clipboard blog.tomayac.com
The Async Clipboard API operates asynchronously and requires a secure context (HTTPS or localhost)… browsers often sanitize clipboard data, and many automatically convert JPG uploads to PNG, significantly increasing file size.
r/vscode — mobile remote editing thread reddit.com
Users can deploy code-server or VS Code Remote Tunnels to access a full development environment through a mobile browser or PWA, with Tailscale providing the secure tunnel.
MDN — Document.currentScript developer.mozilla.org
This property is only set while the script is initially being processed… it is not set in callbacks and it is null for modules and async scripts.
Alex MacArthur — ‘A fun little use for document.currentScript’ macarthur.me
Once the script’s initial execution is complete, the reference is cleared out — likely so the element can be garbage-collected if it’s ever removed from the DOM.
django-csp docs — Trusted Types django-csp.readthedocs.io
DOM-modifying sinks like replaceWith, innerHTML and document.write require a TrustedHTML object when ‘require-trusted-types-for script’ is set; raw strings are rejected as injection sinks.
Invicti — CSP implementation pitfalls invicti.com
A newly injected inline script does not inherit the nonce of the script that created it; developers must manually propagate document.currentScript.nonce to the replacement element.
Lean Rada — original note leanrada.com
I label the Web Component version of this a ‘joke’ — it’s a quick-and-dirty rendering pattern, not a replacement for proper component systems.
Hacker News discussion (item 50134617) news.ycombinator.com
Commenters noted the pattern resurfaced in the XSLT-removal thread as a FOUC-free client-side templating option, while others warned Trusted Types and strict CSP break it outright.