Commit graph

10 commits

Author SHA1 Message Date
b7fe180790 Add JSONP support on other endpoints
Refactored the code to define and process endpoints rather than doing
it imperatively, which avoided a lot of duplicated code.
2025-11-17 15:18:54 +13:00
7b2f96eb03 jump to fragment 2025-11-15 14:28:09 +13:00
f4907a7b77 show captcha correctly if page unloads 2025-11-13 01:06:53 +13:00
7ba59b5d71 Better theme, better errors 2025-11-10 19:45:20 +13:00
0524e60d5d Update appearance of external links 2025-11-10 19:09:24 +13:00
5c3ff9b37c Fix tabs for jsonp 2025-11-08 13:43:12 +13:00
1dd90f5a7d Refactor jsonp js for cuteness 2025-11-05 16:35:17 +13:00
c4e2fb00ef only replace content so suggestions work 2025-11-05 00:04:19 +13:00
4f4c939631 also update document head 2025-11-04 23:35:58 +13:00
23a201cc84 Add JSONP mode and captcha
JSONP mode is on by default. It will fetch main wiki pages in the
browser, without the server needing to make any requests. To turn it
off, add [feature_json] enabled = false to config.ini.

Captcha is off by default. It is a custom solution and is still
experimental at this stage. If you turn it on, please monitor the logs
to see how it goes! config.ini options are as follows:

[captcha]
enabled = true|false
log = true|false
ip_header = <header name set by your reverse proxy, like x-forwarded-for>
2025-11-04 23:06:55 +13:00