[Userscript]: Reorder Ultimate 2 [newest]

If I remember correctly original order is not preserved at any point when the reorder script is in use

1 Like

Using the lesson filter this morning on Safari, I’m unable to do the quiz afterwards, the page reloads back to the lessons page when I try to submit my first answer.

EDIT: I was too hasty, this turned out to be a problem caused by the “WaniKani Katakana Madness” userscript". Once I turned that off the reorder script worked perfectly as usual.

1 Like

Sorry to necro, but I came here to ask a similar thing, as it seems nonsensical to me that specific counter examples occur before the general vocab card (一台 and 二台 before ~台) among other examples. Do you just happen to know a similar sript that preserves this order (atleast within radials and within vocab etc)?

As far as I know, the Lesson Filter script allows to filter the available lessons without changing the lesson order.

1 Like

Bro You are everywhere, I appreciate it.

I found that one; would try, if I had any lessons haha. Would have hoped to find a script that allows proper reorder, but also keeps it as vanilla as possible, but I guess I can work with using Lesson Filter in Lessons and Reorder Ultimate in Reviews.

1 Like

Sadly, I don’t think such a script exists yet. If you want your reviews reordered, you probably have to keep using Reorder Ultimate 2. To prevent Reorder Ultimate 2 from meddling with the lesson order, you will have to add https://www.wanikani.com/lesson/session to its exclude-list. If you are using Tampermonkey, you can do this by opening the Tampermonkey script editor, switching to the “Settings” tab, and adding the lesson URL to the “User excludes” list.

User excludes screenshot

Doesn’t Reorder Ultimate 2 keep separate settings for Lessons? I was thinking you could just turn it off that way. If not, I suppose I must have modified my copy of the script long ago to not run on the lessons page, because I know mine isn’t sorting Lessons.

I just installed Reorder Ultimate 2 and tried disabling the reordering on the lesson screen, but didn’t find a setting that does not change the order at all. Maybe I just didn’t search long enough.

I assume just click the middle of the scale to ‘balance’ it, and maybe it won’t sort.

The middle of the scale that is labeled “ランダム”? No, surprisingly enough, that randomizes the item order for me :wink:

2 Likes

ok, good to know. (I’m on my tablet right now, so can’t look at the script)

Hi! I’m having trouble loading the level sorting buttons, under Sort Levels:

There are times when I open the review session and they appear normally, but other times it will start like this, empty, and I can’t filter out the levels I don’t want in the reviews D:

I’ve already checked and the userscript is properly updated and while I took this print this was the only script enabled on tampermonkey and running. Do you guys know if there anything more that could be done to fix this?

Additionaly, there seem to be some errors on Chrome’s console:


image

The first thing I noticed is that your scales (on the left and right) aren’t tipped to select sorting priority. If Reorder was working for you previously, I would guess your settings have been reset or corrupted, so you will need to reselect some settings.

Second, those errors indicate that the browser is pulling invalid item data from $.jStorage, which may mean that something is being corrupted outside of the script.

Anyway, I would recommend clearing cache, reload the page, then reselect your settings.

1 Like

Context: Input box changes text to hiragana for radicals - #7 by Adi-M

@rfindley sorry for the trouble. There was a change the to subject objects delivered in the payload which broke the script.

Namely there is a change to the rad property. In the past we would either assign the radical’s character or the radical’s image filename as the value. We have introduced a new property called character_image_url where the value is the full url to the image. This led to reducing the rad role of only having the character as the value. If the character is not present, then it is null. So the expectation that rad value is always truthy is no longer there…

Scanning the scripts code there is a lot of logic which checks the truthiness of rad's value. Given the change we made on our end, it broke the script.

The solution to this is to replace any truthy checks by checking the existence of the rad key. I recommend using Object.prototype.hasOwnProperty.call(object, property). Using an example, if one had a if (item.rad) {...}, it’ll need to be replaced with if (Object.prototype.hasOwnProperty.call(item, 'rad')) {...}.

This change should address the breaking.

Again, sorry for the inconvenience.

5 Likes

Thanks for the investigation! I am only partly familiar with this script’s code (xMunch was the author, and I did a minimal adaptation for APIv2), so your insights will save a ton of time. I’ll go ahead and patch the code.

2 Likes

:point_right: [v2.2.8] - Fixed item type detection after WK change to item.rad property.

I’ve tested to the extent that I can without having any image-based radicals in my test queue.

3 Likes

Hey, I reported the issue earlier and it seems to be gone now with the update. Thank you so much for the quick fix! :heart:

1 Like

I’d like to add that this change also broke my Lesson Filter script. I’ve mentioned this before, but I think adding a formal way to manipulate the lesson/review queue would be very beneficial here. As I’m sure you know, scripts that filter or reorder the lesson/review queues are very popular, but they are currently manipulating internal details which are bound to change as they did here. It would be nice if in the long run the lesson and review pages included hooks in the JavaScript workflow for initializing the queue or picking the next item off of the queue, etc., which could make scripts like this easier to build and less likely to break.

I know script users are a relatively small fraction of the entire community, but a not insignificant number of users rely on my Lesson Filter script (it’s been downloaded about 3000 times for what that’s worth). For some of these users, it’s the only reason they haven’t quit WaniKani entirely. I want to share the two main use cases (as far as I know) in case it helps. Maybe something here will impact the long term roadmap of the product.

  1. The first usage is probably the one you’re most familiar with: prioritizing lessons for radicals and kanji to increase level up speed, then doing the vocab while waiting until the radicals and kanji reach guru. This helps users go at max speed with a more balanced workload since they can do lessons over many days instead of all at once.
  2. The second usage is to create a more balanced learning experience. I know that many (myself included) use Lesson Filter to do a mix of kanji and vocab lessons each day. For some people, using the default lesson order setting (lowest level then type) can be incredibly painful. I always found it much harder to learn kanji than vocab, so doing 30 kanji lessons in a row before learning any vocab would have been an absolutely nightmare for me. But the other options in the settings are not ideal alternatives since the randomization can result in slower level up times for no good reason. That’s why these users like using Lesson Filter: They can level up at a steady pace while still learning a mix of kanji and vocab together. Increased efficiency and lower stress. I think it would be great if a feature like Lesson Filter was included in WaniKani by default, even if it worked slightly differently to not overwhelm beginners.
2 Likes

Hey Sean.

I do appreciate you taking the time writing out your request and outlining the reasons why offering additional ordering options is beneficial to the user.

I have logged the request in our feature request tool so the appropriate eyes can review it. It is the best I can do for you at the moment.

1 Like

Thanks, that’s all I can ask. Feel free to reach out if you ever want to know more about the script.

1 Like