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.

Autore
w4tchdoge
Installazioni giornaliere
0
Installazioni totali
403
Valutazione
14 0 0
Versione
2.11.1-20241029_214557
Creato il
04/06/2023
Aggiornato il
29/10/2024
Licenza
GNU GPLv3
Applica a

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 unfolded

Details & summary uncollapsed:

Example bookmark - details & summary unfolded

Details & relationships uncollapsed:

Example bookmark - details & relationships unfolded

Details & summary & relationships uncollapsed:

Example bookmark - details & summary & relationships unfolded


Changelog

2.9.0

2.8.5

  • Rename series_works_summaries to series_works_titles_summaries to indicate that it's functionality has been changed such that for series with more than 10 works it outputs just the title instead of the title and the summary, as the summaries for more than 10 works are unlikely to fit inside a bookmark

2.8.4

  • Fix missing authors on Anonymous works

2.8.3

  • Fix script erroring at series_works_summaries when series contains a work whose title is not a hyperlink (e.g. Mystery Works)

2.8.2

2.8.1

  • Add @exclude rule so that userscript doesn't run on */navigate pages

2.8.0

  • Refactor/rewrite the portions of the script related to exctracting all the information needed for the bookmark from the current page
  • Ensure the Summary Page button is added when reading a chapter from a page that does not include "works" in the URL (e.g. https://archiveofourown.org/chapters/141155299)

2.7.3

2.7.2

  • Update all the other presets to reflect changes made to the default preset

2.7.1

  • Clarify how the 'relationships' variable in workInfo now functions, especially with regards to it's new functionality in series bookmarks

2.7.0

  • Add all unique relationship tags in all the works on a series page to the series bookmark

2.6.3

  • Fix some minor messups I made in 2.6.2 before they break something or the other

2.6.2

  • Fix author_HTML only retrieving the first author in multi-author works/series

2.6.1

  • Fixes incompatibility with users's skins caused by not using cloneNode(true) when retrieving relationship tags and subsequently removing all classes from them. Credit to @notdoingthateither on Greasy Fork for the fix

2.6.0

  • Add a new default variable author_HTML that can be used in the workInfo customisation function. author_HTML is the outerHTML of the author <a> tag (the author hyperlink) as a string. e.g. the author_HTML string for AO3 work 54769867 would be '<a rel="author" href="/users/nescias/pseuds/nescias">nescias</a>'

2.5.0

  • Add a toggle in the dropdown present on the user's preferences page for showing/not showing the AutoTag button when making/editing a bookmark

2.4.5

  • Add exclude rule for pages listing bookmarks as the script isn't designed to run on those pages

2.4.4

  • Add a fallback for retrieving the "Entire Work" button in case it's been modified but is still somewhat recognisable in the DOM

2.4.3

  • Fix script not working on Firefox browsers due to a lack of support for the :has() CSS selector and a Firefox specific error caused by not using Optional Chaining

2.4.2

  • Fix a bug where the script errored on single chapter works

2.4.1

  • Add an option to have a version of the "Summary Page" button in the top nav buttons. Defaults to false

2.4.0

  • Add an Auto Tag button that automatically adds the completion status and word count to the user tags area

2.3.0

  • Fairly large reworks of series summaries which includes the addition of the series_works_summaries var (which only does anything when bookmarking a series) that can be used in workInfo to add the summaries of the works in the series to the series bookmark; Added moment.js as a library in case anyone wants to use it to set their own date var

2.2.2

  • Fix a possible styling issue that may occur with the dropdown menu

2.2.1

  • Fix Relationships subsection for works with no relationship tags by adding a "No Relationships" to the subsection when there are no relationship tags

2.2.0

  • Add a 'relationships' var that can be used in workInfo to add the work's relationship tags to the bookmark. The default config is now set to include said var in workInfo.

    Suggested by oliver t@greasyfork

2.1.2

  • Replace the bottom entire work button with a summary page button that works better on large works.

2.1.1

  • Adjusted script execution condition to allow for works with no summary.

2.1.0

  • Tweaked the bookmarking process which should hopefully make it easier to configure. Also rewrote some of the code to hopefully make it better performing.

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.