105 Commits

Author SHA1 Message Date
Tetrakern
e194f09547 Change web storage type and add note
Follows, Reminders, and Checkmarks may be out of sync for a minute in another tab or window if recently loaded since we cannot clear the session storage there. This is an extremely minor issue since it will fix itself after the cache times out.
2023-06-12 21:49:39 +02:00
Tetrakern
021c54a2f3 Clean up reminders.js 2023-06-12 21:47:31 +02:00
Tetrakern
94f2110402 Clean up mobile-menu.js 2023-06-12 21:39:58 +02:00
Tetrakern
e7d3c0f923 Fix AJAX comment form events
That is why I tend to use inline JS events. Binding everything is such a chore.
2023-06-12 21:25:47 +02:00
Tetrakern
e57221142d Cleanup lightbox.js 2023-06-12 20:41:27 +02:00
Tetrakern
682ed8b136 Cleaned up follows.js 2023-06-12 20:40:15 +02:00
Tetrakern
90c1f4921d Clean up comments.js 2023-06-12 20:37:56 +02:00
Tetrakern
a6705035e9 Clean up checkmarks.js 2023-06-12 19:33:48 +02:00
Tetrakern
13d0f2870a Cleanup chapter.js 2023-06-12 19:08:17 +02:00
Tetrakern
b8e1a97e16 Clean up bookmarks.js 2023-06-12 16:37:03 +02:00
Tetrakern
fa38772bc9 Clean up application.js 2023-06-12 16:12:10 +02:00
Tetrakern
3f8b882068 Prevent double prompt for page number dots 2023-06-12 15:48:20 +02:00
Tetrakern
3af8168dc2 Clean up ajax-comments.js 2023-06-12 15:47:35 +02:00
Tetrakern
81ee31c9fe Clean up ajax-bookshelf.js 2023-06-12 14:45:30 +02:00
Tetrakern
137afd6ed4 Use session storage for temp page cache
Far better for this purpose. Also fixed deferred nonce not being cleared on time.
2023-06-12 11:41:31 +02:00
Tetrakern
3badca4c26 Remove superfluous catch and then 2023-06-12 10:16:30 +02:00
Tetrakern
5b39bbf0af Reduce bookmarks JS
Also use the full link again because the relative one may have been short but did not work with URIs that include a path. Something that should not occur but one never knows.
2023-06-12 10:02:10 +02:00
Tetrakern
b8fefa3471 Do not stop TTS on page load
Readers might want to listen and browse, which this made impossible.
2023-06-11 22:20:24 +02:00
Tetrakern
c35ea2a5ad Refactored mobile menu
That. Was. Not. Fun!
2023-06-11 01:17:04 +02:00
Tetrakern
a763bc0eb1 Refactor chapter lists
No more sibling or other exotic selectors.
2023-06-10 18:23:04 +02:00
Tetrakern
8cf01ca6a3 Remove sibling selectors from TTS 2023-06-10 03:00:07 +02:00
Tetrakern
6d3deb28fe Remove las sibling selector from search 2023-06-10 01:11:44 +02:00
Tetrakern
08406b6fb6 Refactor follows/reminder/checkmark on cards
And removed the sibling selectors too.
2023-06-09 23:19:18 +02:00
Tetrakern
919206f3cd Fix last-clicked
lol
2023-06-09 22:10:10 +02:00
Tetrakern
7bfc0c9a32 Extend last-clicked script
Can now also mark a parent element with watch-last-clicked.
2023-06-09 21:50:29 +02:00
Tetrakern
96d3c5884c Improve keyword tracks
Removed sibling selector CSS and added aria attributes.
2023-06-09 21:12:15 +02:00
Tetrakern
da4ac9f9bc Remove embed logo after loading
Another sibling selector gone!
2023-06-09 19:33:44 +02:00
Tetrakern
08aceaf3c8 Improve embed consent wrappers 2023-06-09 19:30:36 +02:00
Tetrakern
1df1c13cab Fix focus inside modal on tab navigation 2023-06-09 19:19:04 +02:00
Tetrakern
15a8978db9 Fix tabnav for comment mod menu 2023-06-09 18:53:36 +02:00
Tetrakern
0acfdf90d2 Improve performance of comment mod menu 2023-06-09 18:30:53 +02:00
Tetrakern
edd2cbc80e Change order of possible global clicks
Spoiler is the least likely, while toggle-last-clicked is the most likely. Reduces the number of conditionals passed.
2023-06-09 13:20:34 +02:00
Tetrakern
f71676f6b9 Use global click handler for page jump 2023-06-09 13:18:34 +02:00
Tetrakern
64bb7653fc Use global handler for some click events
Gets around the problem with AJAX content that needs events to be rebound.
2023-06-09 11:30:31 +02:00
Tetrakern
9079b07478 Toggle chapter lists without sibling selectors 2023-06-09 01:10:19 +02:00
Tetrakern
b2a989469c Open modals without sibling selector 2023-06-09 00:18:26 +02:00
Tetrakern
b520e84f12 Increase throttling of popup re-positioning
4 times per second is enough.
2023-06-08 09:29:13 +02:00
Tetrakern
66be6dd548 Reduce card icon menu markup 2023-06-08 02:34:52 +02:00
Tetrakern
4b487f07e6 Prevent element not found error
If authentication is disabled but, for some reason, Follows/etc. are still on.
2023-06-06 11:14:48 +02:00
Tetrakern
4a49bd26ed Exclude login markup if already logged-in 2023-06-06 10:20:00 +02:00
Tetrakern
89685e9718 Remove consent banner if already set 2023-06-06 03:56:16 +02:00
Tetrakern
7eb231447d Make sure bookmarks are cleared on logout 2023-06-05 18:34:59 +02:00
Tetrakern
a1c3ff3883 Remove superfluous elements after page load
Some elements are delivered for the purpose of client-side setup, such as checkmarks. However, if not required, you may as well remove them from the DOM.
2023-06-05 12:05:36 +02:00
Tetrakern
5b8ae2d31b Ensure JS function exists before calling it
This one is added via PHP, so it is not available in all places.
2023-06-03 23:59:04 +02:00
Tetrakern
c774810973 Improve handling of chapter lists
In chapters.
2023-06-03 17:17:33 +02:00
Tetrakern
e19b2eb99e Optimize chapter list in chapters
Search engines do not track hidden links anyway, so the permalinks were reduced to "/?p=ID" to save bytes. Quite a lot if a story has many chapters.
2023-06-03 15:16:29 +02:00
Tetrakern
cd74d3a208 Add chapter list popup menu to chapters
So you can read chapters while you read chapters.
2023-06-03 14:06:48 +02:00
Tetrakern
7ee5548d36 Click outside closes paragraph tools
I'm 99% sure this function already existed once. I wonder where it went...
2023-06-03 13:54:13 +02:00
Tetrakern
4cd4ddf047 Improve popup menu screen collision detection 2023-06-03 11:38:29 +02:00
Tetrakern
d7e1495e44 Fix cleanup error after unsetting OAuth
Just a button that was not removed and would cause an error if used again.
2023-06-03 04:12:49 +02:00