This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Blank character encoder/decoder | |
| A tool to anti-censorship at Bilibili | |
| Original author: https://not-see.pages.dev/ | |
| */ | |
| const ALLOWED_BLANKS = [ | |
| "\u0020", | |
| "\u3000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addEventListener("fetch", (event) => { | |
| event.respondWith( | |
| router(event.request).catch((err) => | |
| err instanceof HttpError | |
| ? err.toResponse() | |
| : new Response(err.stack, { status: 500 }) | |
| ) | |
| ); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addEventListener("fetch", (event) => { | |
| event.respondWith( | |
| handleRequest(event.request).catch( | |
| (err) => | |
| new Response(err.stack, { | |
| status: 500, | |
| }) | |
| ) | |
| ); | |
| }); |
NewerOlder