From 0a39a7a981f619ac64fdeb26294c7cfd4f110a1a Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 11 Aug 2026 11:39:01 -0400 Subject: Redirect to GitHub with a meta refresh A browser extension redirects github.com to cgithub with declarative net requests. Its rules match our HTTP redirects back to github.com too, so those bounce straight back here and loop forever. A meta refresh makes cgithub the initiator origin instead, which the extension's rules can exclude, and its delay leaves a page the user can stop on. Co-Authored-By: Claude Opus 5 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7673612..ce25701 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "node scripts/build.ts && wrangler dev", "deploy": "node scripts/build.ts && wrangler deploy", - "test": "node --test --test-concurrency=4 src/scraper.test.ts" + "test": "node --test --test-concurrency=4 src/app.test.ts src/scraper.test.ts" }, "dependencies": { "css-select": "^6.0.0", @@ -18,7 +18,9 @@ "htmlparser2": "^10.1.0" }, "pnpm": { - "onlyBuiltDependencies": ["workerd"] + "onlyBuiltDependencies": [ + "workerd" + ] }, "devDependencies": { "@types/node": "^22.10.2", -- cgit v1.3.1