[Userscript] Book Club Tracker

Thanks! The dates work better now, though a few things are a bit off, haha.

I’m not quite sure what happened to the positioning here? The club I added underneath it looks fine.

Also, it did something kind of weird here. I only added 5 weeks for this club, but for some reason, it added a couple on its own. If you look closely, you’ll see that week 1 has “pages: 3-2” and week 3 has “pages 37-36”. I didn’t manually create these, haha. The script created them and then assigned them start dates that were a day before the weeks I intentionally added.

I’m not sure why this happened, because the other club I added worked normally? Maybe it’s because I edited an existing club and didn’t add it from scratch.

It’s also having an issue where when I select a date on the calendar, it’ll have it listed as the day before.

Also, this is likely just a me problem, haha, but I have a fair amount of scripts installed on the WK dashboard, and I actually liked where this one was located before the last update. It was located at nearly the bottom of the page, between WaniKani Leaderboard and Tofugu Latest, but now it’s above the leaderboard, which is just a bit less than ideal. Would it be possible to go back to the previous positioning?

Now that I have two clubs added, since they’re at the bottom of the page already, I find myself wishing there wasn’t a scroll bar and they all just showed up on the page as is (even the giant ADoBJG book club, whenever I get around to adding that, haha). Could it be possible to toggle the scroll bar on or off?

Thank you so much for all of the work that you’ve done on this so far!

1 Like

Woah, WK adding a feature that might actually get more positive than negative feedback? Ah well, maybe that’s why it’s not out yet.

1 Like

Would it be alright for people to add jsons here of various clubs? I can imagine that more people would use the script if there’s less work to do per individual.

2 Likes

Absolutely! If you make any then I can also add them to the main post at the top. Hopefully also once I get the auto-add from community page button working that’ll help reduce the amount of work by a bit as well.
Thanks for checking out the script!

2 Likes

I’ll look into adding a setting for positioning / scrollbar - ETA 1-2 days.

I’m having trouble replicating your issues with the dates - was that a book club you’d made before the last update? If so it could be due to that. I’ll have a closer look tomorrow morning to see if I can replicate it but haven’t had any luck so far. Do those two strange weeks appear in the list when editing the book club?

The positioning however is something I can improve - it’s currently like that “intentionally” but I hate how it positions any non-row-length-multiples, so will definitely improve that.

1 Like

They did appear when editing the book club, yes! And yes, it was the same one I’d made before the last update, which might be the source of the problem. I tried re-adding it, but then accidentally confused the script because I had two clubs listed with the same name, so it tried lumping them together, haha. Then when I tried to delete the new one, it deleted the original instead, and the new one had some fun new issues. I deleted it and started all over from scratch, and it seems fine now, though.

The issue where the date appears as the day before the date I selected on the calendar remains, though.

Thanks again for troubleshooting this!

1 Like

Yeah I assume it wasn’t working because it was from before the update. Currently two book clubs with the same name will, as you say, get everything confused - I’ll fix that eventually but for now just try to avoid making multiple with the same name :sweat_smile:

Could you specify / provide screenshots of the issues with the calendar please? It seems to be working fine on my end so any more info you can give about that would help!

1 Like

Sure!

If I select November 11 on the calendar:

It shows up as November 10:

Thanks again!

2 Likes

Thanks for the info. I’m thinking it might be a time zone issue - if you don’t mind me asking, are you in a non-European time zone?

1 Like

Correct! I am on Pacific Time in the US! Though my sleep schedule does not line up with this :sweat_smile:

1 Like

Perfect that makes sense then. I’ll try and get a fix out tomorrow along with the community page auto “Add to book clubs” button!

1 Like

0.5.0 released, with hopefully a fix for your date issue? I haven’t been able to test it though so let me know if not. You’ll likely need to re-add the book clubs or at least the weeks for it to be fixed :sweat:

But good news - that should now be easier! Now, on community book club pages, a button should appear by the title to add the book club from that page. Make sure you’re on the home thread for the book club (and not a specific week) so that the weeks info and stuff is all there. Based on my experimenting it works for around 80% of book clubs - it has issues if e.g. only the ending page each week is defined, or if there’s simply no week info table.

3 Likes

Date issue still isn’t fixed, unfortunately! This is supposed to be October 14:

Also, the field has the date in American order: mm/dd/yyyy, but when it shows up on the weeks listing, it’s in European order: dd/mm/yyyy, which is a bit confusing.

The add book club button did work, though! It wasn’t able to pull the weeks information for this specific club, but it’s really nice to be able to add it from the club page itself, thank you!

2 Likes

Same hat, but it displays the dates in the correct order on the dashboard at least.

2 Likes

It’s super cool to see all the data autopopulate for other clubs like スーパーの裏でヤニ吸うふたり・Behind the Supermarket, Smoking With You 🚬 Volume 2 though

3 Likes

It seems like multi volume book clubs have to have some problems, but that’s not too surprising imo

1 Like

Wow, I can’t believe it, but it actually pulled off a miracle:

Props to MissDagger for formatting the table for ADoBJG in a way that this script can easily read it, haha!

3 Likes

2 Likes

Hmm that’s unfortunate. I’ll have another look later today…

2 Likes

Okay, the date issues should actually be fixed in the just-released 0.5.1! Let me know if not… (date timezone stuff is a bit of a nightmare when coding in JavaScript tbh)

And yep, it’s not perfect at auto-filling the info, in examples like that one it fails because the weeks info isn’t in a table unfortunately!
It searches for a table which includes the word “week” somewhere in the header, and then tries to find the dates and pages (unfortunately it can’t yet deal with book clubs where the table only contains end pages for each week…) from there.

4 Likes