web extension for disabling geographic restrictions on Bluesky
at trunk 747 B view raw
1const _fetch = globalThis.fetch; 2globalThis.fetch = async function (req, init) { 3 if (req instanceof Request) { 4 const url = new URL(req.url); 5 6 switch (url.pathname) { 7 case '/xrpc/app.bsky.ageassurance.getConfig': { 8 return Response.json({ 9 regions: [], 10 }); 11 } 12 case '/xrpc/app.bsky.ageassurance.getState': { 13 return Response.json({ 14 state: { 15 lastInitiatedAt: '2025-07-14T14:22:43.912Z', 16 status: 'assured', 17 access: 'full', 18 }, 19 metadata: { 20 accountCreatedAt: '2022-11-17T00:35:16.391Z', 21 }, 22 }); 23 } 24 } 25 } else if (req === 'https://ip.bsky.app/geolocation') { 26 return Response.json({ 27 countryCode: 'US', 28 regionCode: 'WA', 29 }); 30 } 31 32 return _fetch.call(this, req, init); 33};