312 Commits

Author SHA1 Message Date
Tetrakern
d379d2a9ca Clean up utility.js 2023-06-12 22:54:26 +02:00
Tetrakern
0abfbba062 Clean up user.js 2023-06-12 22:47:16 +02:00
Tetrakern
e19d24c555 Clean up user-profile.js 2023-06-12 22:45:42 +02:00
Tetrakern
7dcb1d5f99 Clean up tts.js 2023-06-12 22:41:24 +02:00
Tetrakern
8469ab6f94 Clean up, fix, and improve suggestion.js
Modal toggle did not work. Oh well~
2023-06-12 22:35:39 +02:00
Tetrakern
986eedda09 Clean up story.js 2023-06-12 22:10:28 +02:00
Tetrakern
c54e98b1e7 Back to local storage
Session storage just cannot be properly cleared site-wide, which is actually worse in terms of security if you log out and leave another tab open.
2023-06-12 22:08:30 +02:00
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