Greasy Fork

w4tchdoge's AO3 Bookmark Maker

Modified/Forked from "Ellililunch AO3 Bookmark Maker" (https://greasyfork.org/en/scripts/458631). Script is out-of-the-box setup to automatically add title, author, status, summary, and last read date to the description in an "collapsible" section so as to not clutter the bookmark.

目前为 2023-07-12 提交的版本。查看 最新版本

作者
w4tchdoge
评分
0 0 0
版本
2.0.9-20230712_100800
创建于
2023-06-04
更新于
2023-07-12
大小
35.9 KB
许可证
GNU GPLv3
适用于

w4tchdoge's AO3 Bookmark Maker

Modified/Forked from Ellililunch AO3 Bookmark Maker.

Userscript that automatically adds the details of a work to your bookmark notes for archival purposes. I've made the script highly configurable with (hopefully) clear instructions, but out-of-the-box functionality should be good enough if you don't want to bother with the configuration.

IMPORTANT NOTES:

  • The script only automatically adds the bookmark text if you are making the bookmark on a work/series page with a summary element. For series' this is every series page (series summaries are handled differently to work summaries). For work's this is either the first chapter of a multi-chapter work, an entire work page, or the only chapter of a single chapter work.
  • This userscript relies heavily on template literals (W3Schools, MDN), which are supported in the latest versions of all modern mainstream browsers.[1][2] If you are using a niche browser or you want to be certain that your browser supports template literals, please visit this StackOverflow answer and run the code snippet. It should return a true if template literals are supported.

Apart from the editing of what preset you're using/the actual contents of the autogenerated bookmark, all major userscript settings have been moved to a menu on the header menu of your preferences page.

Image of what the settings menu looks like and where it is

An explanation of all the settings is in the userscript's code.


Demo/Example Images

Demo/Example images show the output if Preset 1 (the default preset) is being used.

Everything collapsed:

Example bookmark - details & summary folded

Details uncollapsed:

Example bookmark - details unfolder

Details & summary uncollapsed:

Example bookmark - details & summary unfolded


Changelog

2.0.9

2.0.8

  • Make some if statements in the localStorage section more readable.

2.0.7

  • Fix bottomEntireWork not functioning because of the placement of the code responsible for putting the button there being inside an if statement that only executes on specific pages.

2.0.6

  • Fixing assignment of localStorage values to variables in current script execution.

2.0.5

  • Fixing general localStorage stuff.

2.0.4

  • More summary related fixes.

2.0.3

  • Fix the script replacing an existing summary in the bookmark notes with 'undefined'.

2.0.2

  • Alert the user that their input for a new divider value has been accepted + Minor styling changes in the setting dropdown.

2.0.1

  • Fix if statements that used variables that needed to be true or false by using a function to convert the 'true' & 'false' strings from localStorage to booleans.

2.0.0

  • Implemented a settings menu & localStorage of the settings set in the settings menu. Presets must still be set via editing the script.

1.0.0

  • Initial publishing of the userscript to Greasy Fork.