Commit Graph

76 Commits

Author SHA1 Message Date
VnPower 8b00751505 Related novels 2024-02-25 08:45:16 +07:00
iacore 435567dd97 Make error messages more consistent 2024-02-24 15:31:22 +00:00
iacore 8d6dbe9d8f add more comments 2024-02-24 15:19:10 +00:00
iacore ce8fc8891d add comment 2024-02-24 15:13:34 +00:00
iacore 239dfdfe83 update settings page
- allow clearing image proxy
- allow clearing all settings
2024-02-24 15:12:23 +00:00
iacore ac828e9209 Use Browser Cookies To Persist User Options 2024-02-24 14:44:12 +00:00
iacore 6d6065e887 fix ranking calendar: hide empty date cell 2024-02-24 13:33:21 +00:00
iacore f72ec26231 Less Atoi and less ignored error handling 2024-02-24 13:33:18 +00:00
iacore c7ea352053 Set timeout context to every http.NewRequest
I love semgrep
2024-02-24 12:53:22 +00:00
iacore 4dfeac9a50 add timeout to every request to pixiv
I love semgrep
2024-02-24 12:34:58 +00:00
iacore f9520ceafb rate limit: default to old behavior on too many concurrent requests 2024-02-21 00:07:03 +00:00
VnPower c2b8e88b6f Add novel author to novel preview 2024-02-19 20:14:14 +07:00
iacore 39af9a741f tweak startup logs 2024-02-18 15:02:19 +00:00
iacore 993c5a0d9c refactor heavily 2024-02-18 14:59:03 +00:00
iacore 40aa760532 Make environment variable documentation a Go file 2024-02-18 14:31:19 +00:00
VnPower 0b228f4315 Experimental novel discovery page 2024-02-18 20:26:20 +07:00
VnPower f3a8b4a5dc Remove inline styles in ranking calendar 2024-02-18 13:05:29 +07:00
VnPower 81848e7080 Fix some errors 2024-02-18 13:05:29 +07:00
iacore 25fe08e6f4 fix: validate json before using gjson 2024-02-18 02:42:31 +00:00
iacore acde7f8279 enable self-proxying by default 2024-02-17 16:31:08 +00:00
iacore d0329d8019 allow proxy URL to have a path component
make self-proxying work
2024-02-17 16:24:27 +00:00
VnPower 31d3b4044f Basic novel page 2024-02-17 21:58:52 +07:00
iacore 19de578040 cleanup <form>s
- validate /tags/%s
2024-02-16 16:14:07 +00:00
iacore e8cfa7ac3c Store full proxy server URL (only the scheme+authority is used though) 2024-02-16 12:57:32 +00:00
iacore 7f194a21bc Apply stricter CSP, and document it. Fix typo in SCSS.
Co-authored-by: perennial <mail@perennialte.ch>
2024-02-16 12:29:40 +00:00
iacore 6f8f204c1e adapt perennial's fix (cbf1c36) to this project 2024-02-15 13:15:16 +00:00
VnPower bf6e79399e Refactor code 2024-02-15 09:29:36 +07:00
VnPower ce1206083a Add indicator for ugoiras #60 2024-02-15 09:15:08 +07:00
iacore fcaf291fc2 store original Image size 2024-02-14 16:11:28 +00:00
iacore a12cd2b6b8 fix typo 2024-02-14 15:28:18 +00:00
VnPower 130fbd52dd Fix ranking calendar images #57 2024-02-14 18:33:50 +07:00
VnPower 2072b019c0 Fix broken artworks because of disabled comments 2024-02-13 16:41:57 +07:00
VnPower 9cebf5b3c4 Fix user-set proxy 2024-02-12 07:05:36 +07:00
iacore 1008119a1a fix error handling 2024-02-11 16:12:25 +00:00
VnPower d32df572a6 Bring back the grid for artwork container 2024-02-11 12:26:16 +07:00
VnPower 54c1bc0918 Reduce requests from /artwork-multi to Pixiv 2024-02-11 10:36:05 +07:00
iacore 508e67737b log development mode 2024-02-10 17:02:38 +00:00
iacore 974e360704 add dev mode (PIXIVFE_DEV=1) 2024-02-10 13:54:09 +00:00
iacore 81aa9c1b6b add semgrep rules 2024-02-10 12:50:38 +00:00
iacore c141e661f0 fix log 2024-02-10 12:14:46 +00:00
VnPower c61f89d048 More ranking page modes 2024-02-10 10:33:31 +07:00
iacore 2bfde536a4 revert indirect proxy 2024-02-09 13:15:11 +00:00
iacore 031caed8e8 fix: revert broken change 2024-02-09 13:11:51 +00:00
iacore ba3ec43559 refactor image url rewrite
thanks semgrep!

Squashed commit of the following:

commit 3a5e08190583804d3b330ecc6cb3422bc04c291b
Author: iacore <noreply+gpg-stub@1a-insec.net>
Date:   Fri Feb 9 12:58:07 2024 +0000

    final

commit f1cdc73e9f8d331715de8e8aec5d1573218df0c3
Author: iacore <noreply+gpg-stub@1a-insec.net>
Date:   Fri Feb 9 12:50:23 2024 +0000

    manual tweak

commit 3a3ba2b8d8d7ce9af4d897288596d9318c715a08
Author: iacore <noreply+gpg-stub@1a-insec.net>
Date:   Fri Feb 9 12:49:15 2024 +0000

    stage 1
2024-02-09 12:59:06 +00:00
iacore 762149be48 refactor 2024-02-09 12:28:40 +00:00
iacore 6e7da47104 proxy i.pximg.net 2024-02-09 12:10:19 +00:00
iacore 4ccb3d60bd Make request limit configurable 2024-02-08 21:51:54 +00:00
VnPower 6f054df4d8 Bump version to v2.2 2024-02-08 14:43:17 +07:00
VnPower bcf9adc927 Limiter with sliding window algorithm 2024-02-08 14:16:27 +07:00
VnPower a01421b3d4 R18 ranking calendar 2024-02-08 13:25:25 +07:00