Extend "AO3: Kudosed and seen history" | Export/Import + Standalone Light/Dark mode toggle

Add Export/Import history to TXT buttons at the bottom of the page. │ Fix back-navigation not being collapsed. │ Color and rename the confusing Seen/Unseen buttons. │ Enhance the title. │ Fix "Mark as seen on open" triggering on external links. ║ Standalone feature: Light/Dark site skin toggle button.

目前为 2025-05-10 提交的版本。查看 最新版本

作者
C89sd
评分
0 0 0
版本
1.31
创建于
2025-03-06
更新于
2025-05-10
大小
28.4 KB
许可证
暂无
适用于

Unofficial extension that works with @Min_'s https://greasyfork.org/en/scripts/5835-ao3-kudosed-and-seen-history
Note: Needs to be installed after to work fully.



1. Add History Export/Import buttons at the bottom for when it gets too large to copy-paste. (Also restores the username&settings.)
2. Fix links not being collapsed immediately and needing a reload when navigating back. Can also uncollapse fics when navigating back if you changed the seen state from inside. Adds a blink and opening effect to identify the link you navigated back from.
3. Rename the Unseen/Seen buttons (invert the state/action and color them to be more explicit: green/red, Seen[unmark]/Unseen[mark]).
4. Turn the Title into a colored link to the current page; it can be clicked to quickly mark the page as seen and improves visibility.
5. Optional "Mark as seen on open" reimplementation that works when browsing AO3 but ignores outside links.
To enable this feature:
  They work together, simply disable the old setting from "AO3: Kudosed and seen history" or it looses the Old/New info:
  → [Seen works > Settings and import/export > Mark as seen on open: NO].
  Note: If you prefer the old behavior, you don't need to change anything; but setting IGNORE_EXTERNAL_LINKS=false atop the code + disabling the setting will let it tell you if you visited that link before or right now ("SEEN Old" vs "SEEN Now").

Standalone Feature: Merged to efficiently share the button bar, but can be used without @Min_'s script.
6. Add a (Light/Dark) site skin toggle button at the bottom, without needing to go through preferences.
     Custom skins: The default skins are ["Default", "Reversi"], you can edit the script and replace them with custom names (if more than 2, they cycle).

Each features can be disabled by editing the script and setting top constants to 'false', but you may want to disable updates or will have to redo it each time.