Modified/Forked from "Ellililunch AO3 Bookmark Maker" (https://greatest.deepsurf.us/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.
< Părere la script-ul w4tchdoge's AO3 Bookmark Maker
Hey, I absolutely love this script, it had single-handily save me from agonizing at some deleted stories.
Thank you!
But I noticed that lately, the script doesn't seem to work on some tab yet working on others. [...] I caught on this "https://archiveofourown.org/works/49043080/chapters/123729850"; yet on this story "https://archiveofourown.org/works/68921176/chapters/178551521", the script works perfectly fine.
Thanks for reporting this issue. I'm not getting the exact error you've mentioned here but I am getting an error on the 1st link you've posted.
Looks like I made an oversight in implementing some of the new default workInfo
variables (specifically series_bkmrk_count_txt
and series_bkmrk_count_html
). I had assumed that a series would always have a bookmark count, but the 1st work you posted is part of a series that doesn't. I've updated the userscript to v2.16.2 which has fixed the issue I was seeing, could you let me know if v2.16.2 has fixed everything on your end as well?
It works wonder now, thank you so much for helping!
Hey, I absolutely love this script, it had single-handily save me from agonizing at some deleted stories. But I noticed that lately, the script doesn't seem to work on some tab yet working on others. I tried to put it in console tab and it returned me this message:
"Promise {}
[[Prototype]]: Promise
[[PromiseState]]: "rejected"
[[PromiseResult]]: TypeError: Cannot read properties of null (reading 'textContent') at :1790:159 at :1790:214 at async :1753:167
message: "Cannot read properties of null (reading 'textContent')"
stack: "TypeError: Cannot read properties of null (reading 'textContent')\n at :1790:159\n at :1790:214\n at async :1753:167"
[[Prototype]]: Error"
The error seems to lie at this code line:
// Get already existing bookmark notes
const curr_notes = main.querySelector(`#bookmark_notes`).textContent.split(divider).at(`-${splitSelect}`);
It's a weird bug that only appears on some stories: I caught on this "https://archiveofourown.org/works/49043080/chapters/123729850"; yet on this story "https://archiveofourown.org/works/68921176/chapters/178551521", the script works perfectly fine. I'm using chrome by the way, if that helps. I'd appreciate any insight, thank you!