there's seemingly unnecessary src's to static.heyuri.net when there are files on the instance that don't require communicating with Heyuri for.
for example,
<script type="text/javascript" src="https://static.heyuri.net/js/koko/koko.js"></script> (can be found in any of the above listed files)
could be changed to src a local file on the instance instead.
<script type="text/javascript" src="js/koko.js"></script>
Teh fix
this pull request replaces the src attributes of a selection of the script tags in the specified files above to index the javascript files in the js. It makes kokonotsuba more portable and less reliant on Heyuri. Howevar, there's still more that should be made more independent from heyuri which isn't covered in this pull request.
bonus
in kokoimg.tpl,
<script id="wz_tooltip" type="text/javascript" src="{$STATIC_URL}javascript/wz_tooltip.js"></script>
is changed to src the local file js/wz_tooltip.js
Stack instance was tested with (on localhost):
Arch Linux
nginx
MariaDB
PHP 8.3
It's not the exact required stack, however it probably wont make a difference.
Teh problem the files:
there's seemingly unnecessary src's to static.heyuri.net when there are files on the instance that don't require communicating with Heyuri for.
for example,
<script type="text/javascript" src="https://static.heyuri.net/js/koko/koko.js"></script>
(can be found in any of the above listed files)could be changed to src a local file on the instance instead.
<script type="text/javascript" src="js/koko.js"></script>
Teh fix this pull request replaces the src attributes of a selection of the script tags in the specified files above to index the javascript files in the
js
. It makes kokonotsuba more portable and less reliant on Heyuri. Howevar, there's still more that should be made more independent from heyuri which isn't covered in this pull request.bonus in kokoimg.tpl,
<script id="wz_tooltip" type="text/javascript" src="{$STATIC_URL}javascript/wz_tooltip.js"></script>
is changed to src the local filejs/wz_tooltip.js
Stack instance was tested with (on localhost):