Kumirei's Userscripts

The first one is just appending the CSS right? that’s the one I didn’t remove, so it makes sense why it’s working yeah.

Thanks for the help, I appreciate it :stuck_out_tongue: I spent a bit of time before trying to work out why it was working for the New tab but not the all categories tab I use. I even went to the greasy fork @require link to see if it was something there that was only making it work for the new tab.

I haven’t done programming in years really since I was studying it in uni and so I remember the basic principles. But just removing .has-topics never occured to me lmao such a simple fix T.T again - appreciate it.

1 Like

@Kumirei I’m wondering about the Regular Tracker. Ever since I installed it, the base number for “Posts Read” was 20,000, but a few days ago, it dropped and is now at 19,547 for me.
This somewhat coincides with the new Book Clubs section, so I wondered whether your script needed to include that new section. But looking through the code, it looks like you just look at the numbers that WK provides you, without even knowing about sections and stuff…
Now I’m wondering about two things:

  1. Has there been a mass deletion of threads that I am not aware of and that would justify the significant drop in numbers?
  2. Is it maybe possible that the WK team does not yet include the new section in the stats? :thinking:

What do you think?

3 Likes

I don’t think a deletion or new section could be the cause. The number should be 25% of posts created in the last 100 days, with a cap of 20k, and since it’s calculated by discourse the category really shouldn’t matter. From what I can tell the script retrieves the stats directly from the stats generated by discourse. Maybe the forums are just slightly less active than usual?

2 Likes

Oh! Thank you for setting this straight. I somehow confused “posts” and “threads” and so I couldn’t imagine it being 20,000 new threads in 100 days, therefore I somehow thought it’s something like “visiting existing threads”. But yeah, if it’s about created posts, then that’s much more plausible.
Thanks!

4 Likes

image

No permission? TuT

1 Like

Ah, didn’t realize it would expire. Thus one shouldn’t

1 Like

Added a deep bell option to the burn bell script

@Kumirei,
Do you have a sense for which scripts (yours and otherwise) are using the Reviews table?

I know Heatmap and Ganbarometer. At first, I thought some of the Leech scripts were, but I went looking and discovered that they’re mostly using review_statistics. I see you have a Review Cache library, but I don’t know of a way of seeing what scripts call it.

Oh, I just found your “Longest Review Session” and rwesterhof’s “Wanikani Workload Graph”.
I think several stats apps and sites also use the Reviews table.

1 Like

Without looking into it I think that should be about it. Pretty sure some people are using it for personal projects, too,

edit: I am also using the review cache in a “recently failed items” wkof filter script

Yeah, that’s the most important use that I can think of. I noticed that prouleau is “cheating” (quite cleverly) by looking for a ‘correct’ streak of 1, which means they missed it on the last review. That’s efficient, but it also doesn’t tell you how long ago you missed it unless you combine it with the last review date. And as soon as you answer correctly once, you can no longer tell that it was missed ‘recently’, even if it was only 4+ hours ago (for Apprentice 1).

If I remember correctly, “Extra Study: Recent Mistakes” tracks mistakes in the 24hrs prior to your most recent review, which probably means they’re extracting Reviews data from [your_last_review_timestamp - 24hrs] to [now].

1 Like

This script also offers a “last x failed” filter, which is nice because you can decide you want to review, for example, the last 50 items you failed.

2 Likes

The like tracker stoped tracking my likes.

It says “Likes Left 200” and “Next Like N/A,” when I like a post the “Likes Left” counter goes down but the “Next Like” countdown doesn’t update and when I refresh the page “Likes Left” reverts back to saying “200” (while the posts I’ve liked remains liked).

1 Like

Thanks for reporting, I’ll take a look when I get the time

1 Like

My regular status has also started to show up as 0% from time to time with nothing happening when howering my cursor over the percentage (while normally it will show “Days visited” “Posts read” etc), I can get it back by refreshing the page (which resets my Likes Left to 200 at the same time as stated earlier).

5 Likes

I’m also having issues with the Regular Tracker right now… I usually am somewhat close to the 20,000 posts mark so I like to monitor that and take countermeasures (e.g. scroll through some long thread). But in the past week or so, the number keeps going down although I have scrolled through several thousand posts in that period. I mean it could be the case that my number dropped at the same rate as I was scrolling (because I did the same thing 100 days ago already) but it still feels somewhat odd…
Regular status is pretty helpful for the book clubs, and so I’d like to maintain the status if possible, and the script was of enormous help in that respect.
Which is to say thanks for all your work so far @Kumirei :smiling_face_with_three_hearts:
If the script is not repairable, then be it so, but if something can be done to it, that would be amazing.

5 Likes

I’m noticing the same thing. In fact, I’m also noticing that the like counter is stuck at 0 Received, 150 Left for me as well. The number of posts read is stuck at about 4k, despite my reading a lot of threads over the last week. My topics viewed is also stuck.

I wonder if something has changed in the way these statistics are reported by Discourse.

4 Likes

@Beyond_Sleepy @NicoleIsEnough (nice name change, btw) @Joeni (welcome back!!!)
I took a look at it today and it looks like Discourse changed some of the HTML such that I was not finding the username on the page anymore. I think fixing this should resolve the issues with both the like counter and regular tracker. Let me know if you keep experiencing issues after updating the scripts :slight_smile:

10 Likes

My like count is correctly reflecting my clicks now (after liking your post, hehe).

My Regular Tracker isn’t updating as far as I can tell, but I guess maybe it’ll take time to reflect the updated numbers - I’ll let you know if they still say the same thing tomorrow. Thanks for updating them so quickly <3

Pre-edit

Still saying visit streak of 1, which is very much not the case, hehe

image

EDIT!

10mins later and it’s updated a bunch of the status, though it’s still very much wrong on the streak.
If I recall correctly, this is an internal count from the script though, right?

image

3 Likes

Thanks a lot for the quick and successful fix! After two page reloads it now shows me the correct number of posts read (and thanks to all the scrolling in my desperate attempt to bump my numbers I’m now at a whopping 117% :rofl:)

4 Likes

That’s rather suspicious actually because it’s exactly where I’ve been at for the last couple of days :eyes:

image

Edit: Hey, it just changed completely! It seems it took a few minutes for the update to kick in. Thanks for all your hard work and continued support, @Kumirei !

4 Likes