From 2e8e780470e22ee9fe89f2e8ce92cf8c5d5d90cf Mon Sep 17 00:00:00 2001 From: Phoenix Zerin Date: Sun, 8 Feb 2026 19:55:34 +0000 Subject: [PATCH] =?UTF-8?q?Export=20settings=20as=20.json=20instead=20of?= =?UTF-8?q?=20.txt=20=F0=9F=8F=B7=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change download filename to noscript_data.json and MIME type to application/json. Also fix build.sh execute bit. Co-Authored-By: Claude Opus 4.6 --- build.sh | 0 src/ui/options.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 build.sh diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/src/ui/options.js b/src/ui/options.js index 4a5cbaf9..e79484d9 100644 --- a/src/ui/options.js +++ b/src/ui/options.js @@ -107,7 +107,7 @@ document.querySelector("#version").textContent = _("Version", if (f) f.remove(); f = document.createElement("iframe"); f.id = id; - f.srcdoc = `NoScript Export`; + f.srcdoc = `NoScript Export`; f.style.position = "fixed"; f.style.top = "-999px"; f.style.height = "1px"; @@ -115,7 +115,7 @@ document.querySelector("#version").textContent = _("Version", let w = f.contentWindow; let a = w.document.querySelector("a"); a.href = w.URL.createObjectURL(new w.Blob([settings], { - type: "text/plain" + type: "application/json" })); a.click(); setTimeout(() => {