---
format: "aidr-story-markdown/v1"
id: "cc225fa176e6c3eac28c867630cfab17ecd112c0c6bb9300334c1ce711f7f94a"
canonical_url: "https://aidr.today/cc225fa1?lang=vi"
title: "Inline rendering with document.currentScript"
lang: "vi"
requested_lang: "vi"
available_langs: ["en","vi"]
translation_fallback: null
fallback_fields: []
published_at: "2026-10-17T21:11:12.000Z"
category: "Releases"
topics: ["coding"]
source_urls: ["https://simonwillison.net/2026/Oct/17/document-currentscript/"]
summary: "Lean Rada mô tả một thủ thuật tận dụng tính năng document.currentScript để chèn một phần tử Nếu bạn định nghĩa một hàm rút gọn như sau: $=(...n)=>document.currentScript.replaceWith(...n) Bạn sẽ có một ngôn ngữ mẫu nhỏ gọn: The year is Tags: javascript"
---

# Inline rendering with document\.currentScript

> [Open the canonical story](<https://aidr.today/cc225fa1?lang=vi>)

**Published:** 2026-10-17T21:11:12.000Z
**Category:** Releases
**Topics:** coding

## Summary

Lean Rada mô tả một thủ thuật tận dụng tính năng document\.currentScript để chèn một phần tử Nếu bạn định nghĩa một hàm rút gọn như sau: $\=\(\.\.\.n\)\=&gt;document\.currentScript\.replaceWith\(\.\.\.n\) Bạn sẽ có một ngôn ngữ mẫu nhỏ gọn: The year is Tags: javascript

## Sources

- [Story source](<https://simonwillison.net/2026/Oct/17/document-currentscript/>)

