# \[Userscript\] Reorder Omega

**URL:** <https://community.wanikani.com/t/userscript-reorder-omega/56250>\
**Category:** API And Third-Party Apps\
**Created:** [March 16, 2022, 10:07pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250 "2022-03-16T22:07:42Z")\
**Posts on this page:** 20\
**Page:** 14

<div class="post-metadata">

**Author:** ![PeartaterTots](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/peartatertots/32/422018_2.png) [@PeartaterTots](https://community.wanikani.com/u/PeartaterTots)\
**Post date:** [May 25, 2022, 12:42pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/263 "2022-05-25T12:42:18Z")

</div>

> [@Kumirei](#):
>
> > [@PeartaterTots](#):
> >
> > So when I use Reorder Omega to do my lessons, once I get to the lesson screen it freezes and goes into an infinite loop.
> 
> Did you end up trying Sinyaven’s advice?
> 
> > [@Sinyaven](#):
> >
> > You could try disabling/uninstalling Lesson User Synonyms 2 and installing [Lesson User Synonyms 3](https://community.wanikani.com/t/54399) instead and check if the problem still occurs.

Apologies for not replying earlier! Yes, it worked. Thank you @Kumirei and @Sinyaven!

I’m curious what it was about LUS2 and not LUS3 that made things weird… [might be related to this?](https://community.wanikani.com/t/cant-access-lessons-page/54449/16)

---

<div class="post-metadata">

**Author:** ![ThisIsntTheWay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/thisisnttheway/32/579187_2.png) [@ThisIsntTheWay](https://community.wanikani.com/u/ThisIsntTheWay)\
**Post date:** [May 27, 2022, 7:01am UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/264 "2022-05-27T07:01:06Z")

</div>

Since recently, the “self study” function has stopped working properly:

 ![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/e/2/f/e2f4e93adb9851d4a2db1243d8497c242db684bd.png)

This actually happened once already, but I usually managed to fix it by simply selecting another preset.

This time though, no matter the preset, WaniKani (or maybe Reorder Omega?) fails to decide whether it wants to test the reading or meaning of either kanji or vocab.  
Submitting an answer does not advance the lesson and results in this:  
 ![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/8/d/8/8d8a6f4b36c84a54d238fcb48be31dfbe8dff842.png)

I have already tried the following things:

- Clearing all site data for WaniKani.
- Toggling script compatibility mode.
- Only enabling Reorder Omega and WKOF as the active scripts.
- Wildly switching presets.

This occurs both in chrome and firefox, the latter being a fresh install.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 27, 2022, 1:48pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/265 "2022-05-27T13:48:13Z")

</div>

Will have a look at it on Monday if I get the time. My dad is visiting from Sweden until then

---

<div class="post-metadata">

**Author:** ![ThisIsntTheWay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/thisisnttheway/32/579187_2.png) [@ThisIsntTheWay](https://community.wanikani.com/u/ThisIsntTheWay)\
**Post date:** [May 29, 2022, 8:46am UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/266 "2022-05-29T08:46:29Z")

</div>

Thanks for taking your time to look into this 😃  
_Family obviously comes first!_

Funnily enough, I’ve able to use the self study function without much issues anymore for the past two days again.  
(This is without script compatibility)

Really not sure why this happened in the first place, perhaps this was just a transient issue.

---

<div class="post-metadata">

**Author:** ![jc04tu](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/jc04tu/32/582611_2.png) [@jc04tu](https://community.wanikani.com/u/jc04tu)\
**Post date:** [May 30, 2022, 7:06pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/267 "2022-05-30T19:06:01Z")

</div>

Finally given this a try since the scripts I was using to reorder Extra Study haven’t worked in a while, and I could use some additional practice for the final push to 60. 💪  
…probably should’ve installed months ago since you’ve included most of the scripts I normally use anyway lol

* * *
Couple suggestions/requests:
- **Burn Bell** – Been using this since I first started burning items, but edited to use a different sound. Would be great if Omega had a setting to change base64BellAudio.

- **Preset Dropdown** – Since the Active Presets can be changed through the script settings (and would often be set-and-forget), it’d be nice if we could toggle the visibility of the dropdown list in the bottom-left.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 30, 2022, 7:08pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/268 "2022-05-30T19:08:31Z")

</div>

> [@jc04tu](#):
>
> **Burn Bell** – Been using this since I first started burning items, but edited to use a different sound. Would be great if Omega had a setting to change base64BellAudio.

I don’t think this would be useful to enough users to warrant a setting for it, but I wouldn’t mind adding a check for a variable in localstorage to make the change persistent for you. Would that be ok?

> [@jc04tu](#):
>
> **Preset Dropdown** – Since the Active Presets can be changed through the script settings (and would often be set-and-forget), it’d be nice if we could toggle the visibility of the dropdown list in the bottom-left.

Sure! I’ll look into this when I work on the script next. Hopefully sometime this week

---

<div class="post-metadata">

**Author:** ![jc04tu](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/jc04tu/32/582611_2.png) [@jc04tu](https://community.wanikani.com/u/jc04tu)\
**Post date:** [May 30, 2022, 7:27pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/269 "2022-05-30T19:27:13Z")

</div>

> [@Kumirei](#):
>
> I don’t think this would be useful to enough users to warrant a setting for it, but I wouldn’t mind adding a check for a variable in localstorage to make the change persistent for you. Would that be ok?

Should be just as good. Either way would let me stop using the other script.

> [@Kumirei](#):
>
> Sure! I’ll look into this when I work on the script next. Hopefully sometime this week

No rush, using another script to hide it for now. 🙈

---

<div class="post-metadata">

**Author:** ![jc04tu](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/jc04tu/32/582611_2.png) [@jc04tu](https://community.wanikani.com/u/jc04tu)\
**Post date:** [May 30, 2022, 10:18pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/270 "2022-05-30T22:18:28Z")

</div>

Also noticed that while your separate Back To Back script randomizes the quiz order for lessons, Omega’s b2b feature keeps quiz items in their original order.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 31, 2022, 4:55am UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/271 "2022-05-31T04:55:14Z")

</div>

Yes, this is by design. Since Omega has to take into account that the queue may have been reordered, it made more sense for Back To Back to maintain the order of the active queue (for lessons this is the whole quiz batch). However, I see that although it makes sense for reviews and extra study, this is not ideal for the lesson quiz. Perhaps I can extract this into a separate setting somehow…

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 31, 2022, 8:59pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/272 "2022-05-31T20:59:09Z")

</div>

> [@ThisIsntTheWay](#):
>
> perhaps this was just a transient issue.

Has this happened again since?

---

<div class="post-metadata">

**Author:** ![ThisIsntTheWay](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/thisisnttheway/32/579187_2.png) [@ThisIsntTheWay](https://community.wanikani.com/u/ThisIsntTheWay)\
**Post date:** [May 31, 2022, 9:55pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/273 "2022-05-31T21:55:29Z")

</div>

It actually did happen twice again since my last post.  
Each time the same error was thrown in the console.

However, I was once again able to fix it by randomly switching presets until the lesson started working properly.

I’ve observed this problem on multiple browsers so far, including on mobile (Kiwi Browser).

---

<div class="post-metadata">

**Author:** ![coobie](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/coobie/32/223716_2.png) [@coobie](https://community.wanikani.com/u/coobie)\
**Post date:** [June 1, 2022, 2:51pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/274 "2022-06-01T14:51:44Z")

</div>

Hi, back-to-back option seems to be not working for me in reviews.  
It was working until recently (yesterday, I think).  
Reinstalling the script also didn’t fix it.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 2, 2022, 9:27pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/275 "2022-06-02T21:27:05Z")

</div>

> [@coobie](#):
>
> back-to-back option seems to be not working for me in reviews

Hey, it’s still working fine on my end. Did anything else change on your end? What browser and script handler are you using?

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 2, 2022, 9:58pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/276 "2022-06-02T21:58:42Z")

</div>

> [@jc04tu](#):
>
> - **Burn Bell** – Been using this since I first started burning items, but edited to use a different sound. Would be great if Omega had a setting to change base64BellAudio.
> - **Preset Dropdown** – Since the Active Presets can be changed through the script settings (and would often be set-and-forget), it’d be nice if we could toggle the visibility of the dropdown list in the bottom-left.

The burn bell audio can now be set through local storage using the key `reorder_omega_burn_bell_base64_audio` like this

```auto
localStorage.setItem('reorder_omega_burn_bell_base64_audio', 'BASE64 AUDIO STRING')

```

There is also a new setting to show (which you can disable to hide) the preset selection dropdown

---

<div class="post-metadata">

**Author:** ![jc04tu](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/jc04tu/32/582611_2.png) [@jc04tu](https://community.wanikani.com/u/jc04tu)\
**Post date:** [June 3, 2022, 3:08am UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/277 "2022-06-03T03:08:34Z")

</div>

Perfect, thanks!

> [@Kumirei](#):
>
> However, I see that although it makes sense for reviews and extra study, this is not ideal for the lesson quiz. Perhaps I can extract this into a separate setting somehow…

Personally, I don’t consider the quiz order too important. My batches are only set to 5 and I usually loop through lesson details a few times — so quizzes take just a few seconds regardless of whether or not they’ve been shuffled. (and I’ll run out of lessons soon anyway) 🙏

I’d only mentioned it because I remembered seeing comments in the Back To Back thread about quiz order, so I thought this difference might have been an oversight.

---

<div class="post-metadata">

**Author:** ![coobie](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/coobie/32/223716_2.png) [@coobie](https://community.wanikani.com/u/coobie)\
**Post date:** [June 3, 2022, 9:38am UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/278 "2022-06-03T09:38:27Z")

</div>

Firefox lastest update, Tampermonkey.  
I guess Firefox updated recently and also Wanikani had that new ordering update, not sure what else could have changed in the last couple days that would cause the exact same bug to appear on my two different devices.  
Standalone Back-to-back script is working fine so I’m using it in conjunction with Reorder Omega for now.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 3, 2022, 4:05pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/279 "2022-06-03T16:05:28Z")

</div>

I just tried it in Firefox 101.0 using Tampermonkey v4.17.6161 and it is working fine. Is back to back checked in your Omega settings?

edit: I can replicate it on the preview site

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 3, 2022, 4:32pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/280 "2022-06-03T16:32:22Z")

</div>

Ok, this is fixed in 1.0.16.

Turns out that WK’s new ordering update (which is only available to me on the preview so far) changes how they arrange the items in your active queue. In light of this I have had to make the Omega implementation the same as the standalone.

@anon87959063 I think you were the one to report that lesson order was not preserved with back to back. This will most likely be the case again. I am still reordering the whole queue, but since WK is changing how their active queue works I am going back to only selecting the next item (for back to back) when an item is already partially answered.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 3, 2022, 4:33pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/281 "2022-06-03T16:33:36Z")

</div>

> [@jc04tu](#):
>
> I’d only mentioned it because I remembered seeing comments in the Back To Back thread about quiz order, so I thought this difference might have been an oversight.

As it happens I just had to revert this, lol. Both scripts should now work the same

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [June 3, 2022, 4:47pm UTC](https://community.wanikani.com/t/userscript-reorder-omega/56250/282 "2022-06-03T16:47:29Z")

</div>

> [@ThisIsntTheWay](#):
>
> Since recently, the “self study” function has stopped working properly

I have not been able to replicate this so far. When it happens again (question type is Null), could you put this in the console and copy the result to here? You get to the console through F12 → Console

```auto
JSON.stringify($.jStorage.get('currentItem'))

```

[Previous page](https://community.wanikani.com/t/userscript-reorder-omega/56250.md?page=13)

[Next page](https://community.wanikani.com/t/userscript-reorder-omega/56250.md?page=15)
