[Userscript] Attempt to Eliminate Phantom Entries

Thank you so much for the script! It worked perfectly from what I saw. I was just wondering, I ran it once but now the button “Attempt to eliminate phantom entries” doesn’t show up anymore… Do you know why?

Nothing is happening when I install the userscript. I click reinstall and then go to my course and there is nothing next to the “add level” button. What am I doing wrong?

@christopher.wendel same for me after I reinstalled the script… Do you have any idea @neoncube?

@christopher.wendel @gabriel.guerin

Recently Memrise has changed its domain name (memrise.comapp.memrise.com) . Make sure you have it in correct form in your script.

1 Like

How do I change it? I’m using the script that was posted in the beginning of this strand.

See this thread:

1 Like

How do i open the tampermoney dashboard? It is showing on my chrome that it was installed, but I don’t see that it’s doing anything.

Thank you! It worked

Something like this:

сlick on a tampermonkey icon - dashboard - click on a script’s name - Ctrl+F to find old domain names - paste correct domain name

Yep, @Hombre_sin_nombre is spot on :slight_smile:

@gabriel.guerin, glad you got it working :slight_smile:

@christopher.wendel, I’ve updated the userscript so that it should now work on Memrise’s new domain name, app.memrise.com. If you click the Tampermonkey icon and click “Check for userscript updates”, hopefully it will update the script to the latest version. If that doesn’t work, you may need to reinstall the script in order to get Tampermonkey to use the new version.

Let us know if you run into any issues :slight_smile:

1 Like

Hi guys. It´s been three years, and Memrise still doesn’t know how to fix the problem. Could someone clarify, please, what green and grey rows mean? Does grey mean that the issue is still in this word and it wasn’t fixed? Or on the contrary, the problem was found and fixed?
Will it fix the problem, if I delete the row and add it again?

P.S. got it [Userscript] Attempt to Eliminate Phantom Entries

1 Like

@Sanctus_Espiritus, Glad you were able to find the explanation. I’ve now also added it to the original post :slight_smile:

1 Like

How can it be, that users can (or et least try) to fix the problem, and Memrise doesn’t even try?

Official respond: We’re aware of this issue, however, unfortunately, we’re unable to give you a timeframe for the fix.

@neoncube By the way, it’s Memrise who’s given me a link to this topic. You are now their unofficial bug-fixer :joy:

1 Like

That’s pretty funny! XD

The script isn’t working for me. I know javascript but I’m not an expert and I don’t know anything about memrise’s ajax api. Looking at your script it seems like they changed the api around.

I was able to gleam a little bit of information from another script and found the pattern https://app.memrise.com/ajax/session/?course_id=COURSE_ID&level_index=LESSON_ID&session_slug=preview.

That’s as far as I’ve gotten, it gives a bulk query of everything in a particular lesson. I don’t know how to update the information or anything. The script I got this from doesn’t update, it just reads data, but it works 100%. That script is here if you want to check it out. Memrise Course Spreadsheet

EDIT 1:
Also as a side note, it I had to add // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js in order for your script to run in the first place.

EDIT 2:
Okay, I did more digging and my initial idea is wrong, I don’t think the urls have changed. It’s specifically the update part that’s breaking and checking the error message I’m getting “Forbidden” and “CSRF failed.”

EDIT 3:
Okay, I’m done messing with this for now. I don’t know how to add the csrf token to the post request. I can get the csrf token thanks to this script https ://gist .github .com/mbrochh/3338679.

But I’ve tried setting the “X-CSRFToken” header, I’ve tried “csrfmiddlewaretoken” in the request itself, but it’s the same thing each time; CSRF failed. Forbidden. I really don’t know anything about this sort of thing, but I hope I gave enough information to fix the issue.

Okay, I found a solution, apparently the script doesn’t like firefox. I installed chrome and tried it there and it worked.

Well, I have no issues with Firefox. What userscript manager do you use?

I think the userscript manager was it. I just tried on Tampermonkey (as opposed to Greasemonkey before) and it worked on Firefox.

Okay then, I guess that was it, if you run into issues, make sure to use Tampermonkey specifically to run the script.

Dear Memrise,

This has been a problem that I pointed out over 5 years ago. You spend your money on front end candy no one cares about, updating ios and android apps often, but yet you can’t fix several core backend issues. Listen to your users and you won’t lose them, not your problematic ideas of the future of this app that don’t contribute to actual learning or functionality.

J