From 8f0a0e27808e27ca09afa760bd9d319c03c3bf4c Mon Sep 17 00:00:00 2001 From: "planetrenox@protonmail.com" Date: Wed, 21 Oct 2026 00:23:28 +0000 Subject: [PATCH] Pin unversioned third-party scripts to their current latest Every page load fetched whatever these resolved to, so a bad or compromised release would ship to all users with access to their keys. Each pin serves byte-identical content to what the unpinned URL served. - lucide@latest -> lucide@1.60.0 - cdn.tailwindcss.com -> 3.4.17 - cash-dom -> 8.1.5 - alpinejs -> 3.17.5 - markdown-it-mathjax3 (esm.sh) -> 5.2.0 - medv.io/codejar -> codejar@4.3.0 on jsDelivr (same file) Co-Authored-By: Claude Opus 5.5 --- index.html | 2 +- src/main.js | 2 +- src/markdown.js | 2 +- src/parts/head.html | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index b0d4c18..175a8ac 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ - + diff --git a/src/main.js b/src/main.js index 51a69b4..32b7cf0 100644 --- a/src/main.js +++ b/src/main.js @@ -146,7 +146,7 @@ $(el.composer).on('submit',async e=>{e.preventDefault();if(state.busy||sending|| let jars={html:null,extension:null}; const ensureJars=async()=>{ if(jars.html&&jars.extension)return jars; - const mod=await import('https://medv.io/codejar/codejar.js'),CodeJar=mod.CodeJar||mod.default; + const mod=await import('https://cdn.jsdelivr.net/npm/codejar@4.3.0/dist/codejar.js'),CodeJar=mod.CodeJar||mod.default; const hl=e=>{ const code=e.innerText; e.innerHTML=hljs.highlight(code,{language:'xml'}).value; diff --git a/src/markdown.js b/src/markdown.js index de588e9..2a52aec 100644 --- a/src/markdown.js +++ b/src/markdown.js @@ -1,4 +1,4 @@ -import mathjax3 from 'https://esm.sh/markdown-it-mathjax3'; +import mathjax3 from 'https://esm.sh/markdown-it-mathjax3@5.2.0'; import { copyToClipboard } from './utils.js'; export const md = window.md = window.markdownit({ html: false, linkify: true, typographer: true, breaks: true }).use(mathjax3); diff --git a/src/parts/head.html b/src/parts/head.html index 2ccab6d..6b08535 100644 --- a/src/parts/head.html +++ b/src/parts/head.html @@ -2,11 +2,11 @@ Sune - + - - + +