commit
Guestbook
diff --git a/scripts/decode-super-properties.mjs b/scripts/decode-super-properties.mjs
deleted file mode 100644
index 8315ee1..0000000
--- a/scripts/decode-super-properties.mjs
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env node
-/*
- * Decode a Discord `X-Super-Properties` base64 blob and surface the fields that
- * matter for the client fingerprint (build number, channel, browser, locale).
- */
-
-function clean(s) {
- return s
- .trim()
- .replace(/^x-super-properties:\s*/i, "") // tolerate the full header line
- .replace(/^["']|["']$/g, "") // tolerate surrounding quotes
- .trim();
-}
-
-async function readStdin() {
- const chunks = [];
- for await (const c of process.stdin) chunks.push(c);
- return Buffer.concat(chunks).toString("utf8");
-}
-
-const arg = process.argv.slice(2).join(" ");
-const b64 = clean(arg || (await readStdin()));
-
-if (!b64) {
- console.error('Usage: pnpm decode "<X-Super-Properties base64>"');
- process.exit(1);
-}
-
-let props;
-try {
- props = JSON.parse(Buffer.from(b64, "base64").toString("utf8"));
-} catch (e) {
- console.error("Could not decode/parse that value:", e.message);
- process.exit(1);
-}
-
-const pick = (k) => (props[k] ?? "(absent)");
-
-console.log("\nDecoded X-Super-Properties:\n");
-console.log(JSON.stringify(props, null, 2));
-
-console.log("\nFingerprint fields that matter:");
-console.log(` client_build_number : ${pick("client_build_number")}`);
-console.log(` release_channel : ${pick("release_channel")}`);
-console.log(` browser : ${pick("browser")} ${pick("browser_version")}`);
-console.log(` os : ${pick("os")} ${pick("os_version")}`);
-console.log(` system_locale : ${pick("system_locale")}`);
-
-if (props.client_build_number != null) {
- console.log(
- `\nDrop into wrangler.jsonc: "DISCORD_CLIENT_BUILD_NUMBER": "${props.client_build_number}"`
- );
-}
-console.log("");
diff --git a/scripts/migrate-guestbook.sh b/scripts/migrate-guestbook.sh
deleted file mode 100755
index 628cf0c..0000000
--- a/scripts/migrate-guestbook.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env bash
-#
-# One-off guestbook migration. Posts old entries to /v2/guestbook/import,
-# which assigns each a fresh UID (and current timestamp). Entries are sent
-# OLDEST-FIRST so that, with newest-first insertion, the final display order
-# matches the original export. Clove's own entry is intentionally omitted.
-#
-# Usage:
-# BASE_URL="https://doughmination.uk" BATTERY_KEY="your-key" ./migrate-guestbook.sh
-#
-set -euo pipefail
-
-BASE_URL="${BASE_URL:-https://doughmination.uk}"
-BATTERY_KEY="${BATTERY_KEY:?Set BATTERY_KEY to a valid X-Battery-Key}"
-
-URL="${BASE_URL%/}/v2/guestbook/import"
-
-post() {
- curl -sS --fail-with-body \
- -X POST "$URL" \
- -H "Content-Type: application/json" \
- -H "X-Battery-Key: ${BATTERY_KEY}" \
- -d "$1"
- echo
-}
-
-# Oldest -> newest.
-post '{"name":"aureal","message":"Blehhh","website":"https://aureal.dev/"}' && \
-post '{"name":"catcatcat","message":"cool I like it","website":"https://assumi.ng/"}' && \
-post '{"name":"Cammy the Kitty >:3","message":"boop","website":"https://cammy-the-cat.com/"}' && \
-post '{"name":"schuh","message":"very awesome website :3","website":"https://schuh.wtf/"}' && \
-post '{"name":"mae","message":"hello cool website yes !","website":"https://milproject.xyz/"}' && \
-post '{"name":"Ari","message":"girls kissing","website":"https://a.stupid.cat/"}' && \
-post '{"name":"bitethekiwi","message":"this kitten is this cute patootie !!! love this indi-website, mine is not existing jet, but will be on goonen.org 🫰","website":"https://goonen.org/"}' && \
-post '{"name":"BloxForLife","message":"my names blox and I block","website":"https://bloxforlife.github.io/BloxForLife/"}' && \
-post '{"name":"akryst","message":":3","website":"https://akryst.moe/"}' && \
-post '{"name":"aaaaaaaaaaaa","message":"aaaaaaaaaaaaaaa","website":""}' && \
-post '{"name":"animosity","message":"hi","website":"https://0c6a.site/"}'
-
-echo "Done — 11 entries imported."