447 Commits

Author SHA1 Message Date
Tetrakern
6fa94b9f3b Fix and improve SEO 2024-03-09 01:43:26 +01:00
Tetrakern
8bab5329cb Use ** exponentiation operator 2024-03-07 14:43:50 +01:00
Tetrakern
36c3a614c5 Reduce critical head script 2024-03-07 14:39:11 +01:00
Tetrakern
407f4b0142 Add font lightness to formatting modal 2024-03-07 00:28:14 +01:00
Tetrakern
c8d9d9af9c Add site setting for font lightness 2024-03-06 14:42:10 +01:00
Tetrakern
65ef62a769 Add strategic hidden and data-nosnippet attributes 2024-03-05 20:49:28 +01:00
Tetrakern
08eee1c783 Add customizer button to reset colors 2024-03-02 23:36:12 +01:00
Tetrakern
c99ed3ff50 Fix bookmarks shortcode order and count 2024-03-01 10:21:29 +01:00
Tetrakern
f52d1bce07 Add customizer font saturation options 2024-02-25 17:33:12 +01:00
Tetrakern
2c88423757 Prepare scripts and styles for font-saturation-offset 2024-02-25 16:28:38 +01:00
Tetrakern
2137b0e172 Fix critical head script 2024-02-25 16:11:11 +01:00
Tetrakern
90b99301ff Merge branch 'main' into refactor_colors 2024-02-24 00:49:53 +01:00
Tetrakern
36bbfd29d2 Fix bookmark paragraph IDs 2024-02-24 00:49:37 +01:00
Tetrakern
bc5a1ae321 Color refactoring part 4 2024-02-23 19:16:36 +01:00
Tetrakern
49478efc77 Add filter to change default chapter formatting 2024-02-16 17:47:14 +01:00
Tetrakern
fab8e152e0 Fix AJAX comment form sometimes not laoding 2024-02-11 15:37:24 +01:00
Tetrakern
83e0ca217d Apply new font system 2024-02-07 16:40:14 +01:00
Tetrakern
f86abd070a Refactor mobile menu jump buttons 2024-02-04 14:27:40 +01:00
Tetrakern
2890793e47 Optimize text-to-speech JS 2024-02-04 05:45:14 +01:00
Tetrakern
96fca5b2cc Move nonce plausibility check to backend 2024-02-04 03:06:11 +01:00
Tetrakern
6482bb689d Add JS check for nonce plausibility
This does not check whether a nonce is valid, only whether it looks like a valid nonce. Because some cache plugins can break nonces trying to insert them.
2024-02-04 00:44:59 +01:00
Tetrakern
3421ba5598 Let AJAX comment form also receive nonce
This should further prevent problems with some cache plugins.
2024-02-04 00:13:43 +01:00
Tetrakern
640e48016d Consolidate CSS applied by JS 2024-02-03 23:59:15 +01:00
Tetrakern
64201d9681 Clean up and optimize more JS 3 2024-02-03 16:56:38 +01:00
Tetrakern
a591e20a52 Clean up and optimize more JS 2 2024-02-03 13:14:57 +01:00
Tetrakern
fc9f46a489 Clean up and optimize more JS 2024-02-03 12:53:40 +01:00
Tetrakern
be21720619 Optimize cleanup of viewport after AJAX login 2024-02-03 12:40:40 +01:00
Tetrakern
898556a925 Remove unused viewport watch JS 2024-02-02 23:13:59 +01:00
Tetrakern
6667b72249 Clean up obsolete JS 2024-02-02 23:11:45 +01:00
Tetrakern
13307a786f Refactor comment moderation 2024-02-02 22:16:04 +01:00
Tetrakern
1559dfe765 Clean up checkmarks.js 2024-02-02 17:17:35 +01:00
Tetrakern
ec51f6807b Remove unnecessary JS constant 2024-02-01 14:33:46 +01:00
Tetrakern
145cf3868a Refactor search form reset 2024-02-01 14:22:21 +01:00
Tetrakern
0faa3a382a Refactor chapter group toggles 2024-02-01 11:48:06 +01:00
Tetrakern
640da6de2b Fold in spoiler function
This was once called inline, but that is no longer the case and the function therefore superfluous.
2024-02-01 11:36:39 +01:00
Tetrakern
7f337ffb10 Refactor mutation observers 2024-02-01 11:30:19 +01:00
Tetrakern
b13d2fd5d6 Reduce lightbox JS 2024-02-01 09:58:38 +01:00
Tetrakern
81b479de43 Cleanup and refactor some JS
Folded some class assignments into loops, refactored observers, dealt with some formatting.
2024-02-01 09:49:34 +01:00
Tetrakern
9e77a50505 Use navigator.language in bookmarks 2024-01-31 23:59:01 +01:00
Tetrakern
ce8de7bc0b Refactor bookmarks with DocumentFragment 2024-01-31 23:42:23 +01:00
Tetrakern
2187497301 Put some chapter formatting options into IIFE 2024-01-31 19:45:50 +01:00
Tetrakern
73bea9da7d Fix chapter formatting light mode toggle 2024-01-31 16:49:54 +01:00
Tetrakern
b056fa9c16 Fix undefined element error 2024-01-31 15:13:05 +01:00
Tetrakern
02e3a2e7b1 Refactor chapter formatting toggles 2024-01-31 14:41:09 +01:00
Tetrakern
14424669b6 Update handling of aria-checked
And remove last inline onchange call.
2024-01-31 13:25:02 +01:00
Tetrakern
3740947d8f Add meta cache for chapter index HTML
This was a potentially expensive query executed on each chapter page.
2024-01-27 20:43:20 +01:00
Tetrakern
fae2dda4db Allow multiple chapter index buttons 2024-01-27 18:27:48 +01:00
Tetrakern
588bdff89a Update admin.min.js 2024-01-25 20:50:56 +01:00
Tetrakern
cff3fb7798 Fix sometimes undefined variable in JS
Well, this was missing all the time, I wonder why it started to make problems NOW and only in some cases.
2024-01-24 21:57:37 +01:00
Tetrakern
1edd4da987 Use eventListener instead of onchange
Marginally more resilient.
2024-01-22 22:51:47 +01:00