[Userscript] Memrise Auto Learn

Hi @dylan.nicholson.548 @cooljingle

Auto-Learn V0.0.12 perfectly worked with Tampermonkey (latest) on Firefox (V52.9.0esr) for my user-created course https://www.memrise.com/course/702398/50-languages-brazilian-portuguese-no-typing/ and was able to fully plant 10 learning items.

I double-check all flower symbols at the summary after the session and they are fully planted.
Course overview of words also shows me that the new 10 words are fully planted and are due for review (watering) in 4-5 hours.

BTW: This was your related thread: Words re-introduced during revision

I’ve just tested on chrome and it seems to work fine still.

Thanks for making this @cooljingle! Really has helped me! Happy Memrising. :smile:

1 Like

Hi @cooljingle

I noticed new errors with “Auto learn” V0.0.12 and this course: https://www.memrise.com/course/692700/no-typing-prepositions-contractions-conjunctions/3/garden/learn

It crashed for me the first time (2nd try) after a few (8) words with F2 activated “Auto learn” on this 9th word:

  • nos
  • English translation: in the; on the; at the (masculine, plural)

After I resetted the whole level and disabled the “Auto learning retries” user script, the “Auto learn” now also crashes immediately after two words successfully (auto) learned on the 3rd entry:

  • da
  • English translation: of the; from the (feminine, singular)

After I restarted the “/garden/learn” session (because it was completely frozen) I could plant ALL (25) words for the level 3.

Indeed at the very first time I got the error on “nos” combined with the described error in the “Memrise learning retries” thread (two exception stack trackes, two for two scripts, which errors seem not to depend on each other!).

Console error exceptions:

TypeError: box.thinguser is null[Weitere Informationen]  eval line 2 > eval:130:25
	MEMRISE.garden.register</< moz-extension://0ae47eb2-9a98-49a8-bf05-561a74b06db8/userscript.html:130:25
	[24]</m<.deactivate https://static.memrise.com/learning/dist/js/learning-session-31ea512a7413.js:1:70559
	Class</<.inherit/r https://static.memrise.com/dist/js/libs-a4fd8e8bf113.js:1:267324
	[22]</l<.deactivate_box https://static.memrise.com/learning/dist/js/learning-session-31ea512a7413.js:1:57817
	[22]</l<.advance https://static.memrise.com/learning/dist/js/learning-session-31ea512a7413.js:1:57427
	[18]</g<.next_press/< https://static.memrise.com/learning/dist/js/learning-session-31ea512a7413.js:1:31669
	i/i.fn https://static.memrise.com/dist/js/libs-a4fd8e8bf113.js:1:158145
	h/i.id< https://static.memrise.com/dist/js/libs-a4fd8e8bf113.js:1:157934
	t https://static.memrise.com/dist/js/libs-a4fd8e8bf113.js:1:436024

User script code:

if(box.learnable.autoLearn){
                    if(arguments[1] === 1) {
                        box.initialGrowthLevel = box.thinguser.growth_level;

It looks to me that Memrise staff has published again new web code updates in the past weeks.

Or is something very special with this user-created course which probably is set to “no typing” mode (according to the course description)?

Reviewing with typing all of the 25 words worked flawlessly!

Best regards / Viele Grüße

TypeError: box.thinguser is null[Weitere Informationen] eval line 2 > eval:130:25
	MEMRISE.garden.register</< moz-extension://0ae47eb2-9a98-49a8-bf05-561a74b06db8/userscript.html:130:25
	[23]</m<.select_choice https://static.memrise.com/learning/dist/js/learning-session-31ea512a7413.js:1:63492
	[23]</m<.bind/< https://static.memrise.com/learning/dist/js/learning-session-31ea512a7413.js:1:61590
	S.event.dispatch https://static.memrise.com/dist/js/libs-a4fd8e8bf113.js:1:41420
	S.event.add/m.handle https://static.memrise.com/dist/js/libs-a4fd8e8bf113.js:1:39485
	t

I got a slightly different stacktrace with the the “box.thinguser is null” error message when I started to plant NEW words with one (or more) of these three courses; I think it was the 5000 freq one as I have planted the first five levels (with some ignored words):

A described previously, the “auto learn” error happens most of the time when there is a normal multiple-choice question, I hit F2 and then press the number for the correct answer or select the correct box.

I am going carefully try again for those three new courses, if it sometimes also happens when I am in the typing process (free inbox text field).

@cooljingle: Any chance that you could update your script so that it works with Decks? From what I can see, the only change required is to add https://decks.memrise.com/course/\*/garden/learn\* as a match.

I just did so manually and AutoLearn is working for me on Decks just as it was on Memrise. I’d prefer to keep with your original script though, not sure whether user matches survive an update.

For the time being, if anybody else would like to use Decks with AutoLearn:

  • click the image Tampermonkey icon (should be on the far right, below the window’s title bar)
  • select Dashboard
  • click on “Memrise Auto Learn”
  • click on the “Settings” tab
  • click the Add button underneath the “User matches” listbox and add https://decks.memrise.com/course/\*/garden/learn\*
  • click the Save button at the bottom
8 Likes

@cooljingle

is it just me or auto learn stopped working for both Memrise and Decks?

I just installed it in Chrome and it seems to be working.

I love this! It saved me a lot of time. Still working as of 2020-05-02.

Great! Working as of 08 Sept 2020!

Would be even greater if there was a function to check all the words you already know in the list overview in same way as the ignore function, but I guess that’s more up to Memrise to make.

Thanks a lot! I would tip you for the amount of time you saved me.

On a sidenote, I am getting a dialog box that says Memrise encountered an error every now and then.

It happens when I get the word right on multiple choice tests.

1 Like

After doing some more sessions, I noticed that it pops up at the end of every session if I didn’t make a mistake. If I did get something wrong, it doesn’t show up at the end.

1 Like

I got a little problem with, i got the script and everything i need install but it doesnt enable the script when im on memrise. If anyone can help it would be very appreciated.
thx

Have you verified as to whether both Tampermonkey and the script are active?

Click the Tampermonkey button near the top (to the right of the address bar), then click on Dashboard:
image


On the dashboard, locate the Memrise Auto Learn entry and assure that it is enabled.

How do you enable it?

Can’t try it out right now, but AFAIR you should see an option to the far left of the browser window during a learning session.

I installed it on many different browsers. It says that it is enabled etc and even that red box with the #1 in it. It doesn’t work though, and I need to get my homework done. Can someone please help me? Or tell me if this is still working or not? Or what I am supposed to do? Thanks!

I just tried this out. It seems you have to turn off both The new Memrise experience (Beta) in → your profile settings and Turn on Memrise Labs experiments in → your learning settings.

Once I did that, the script’s Auto Learn link appeared again on the top left of the page. However, while I was still able to toggle auto-learning by hitting F2, the script no longer showed an indication, so something else probably changed as well.
Tested on Firefox only.

@cooljingle: any chance you could take a look at your script’s code?
@MemriseSupport: any idea as to what might have changed that broke the script?

Honestly, it’s quite bad that Memrise doesn’t have this feature.

https://www.spanishdict.com/vocabulary does this very well. It gives you vocabulary to review, and if you don’t know it, it will give you the answer, then bring up the word many more times, and put it up for review.

I actually think that’s a better approach that Memrise should adopt. In the learning process, we should be able to guess the word, and if we get it right, it should skip the presentation of the word and mark it as ‘Learned’ straight away and add it to the review queue, then proceed to the next word.

Hi,

Unfortunately we can’t comment or provide further assistance on userscripts.

However, given the popularity of this thread, we’ve now created a feature request ticket that we’ll raise to the relevant team for further consideration. :slightly_smiling_face:

I hope this helps for now.

Best wishes,
A.

5 Likes