Hello everyone,
This userscript attempts to remove phantom entries in a course.
What are phantom entries? Well, sometimes when you’re presented with multiple choice answers, some of the answers will be old definitions that aren’t present in your course anymore. These are phantom entries.
For example, let’s say that you add two words in your course, one after the other.
Word 1: helo
Word 2: goodbye
You then notice that word 1 is spelled incorrectly, so you correct it to “hello”, but when you get a multiple choice question for word 2, one of the answers is “helo” instead of “hello”, which isn’t what you wanted. This is a “phantom entry”.
Userscript
Github page for my Memrise scripts
To run this script, first install Tampermonkey, and then visit the “userscript” link above.
Then, to activate the script, go to the the page where you can edit a course’s levels. Next to the “Add level” button, there should be a new button that says “Attempt to eliminate phantom entries”. Click that button and then wait for the script to begin. After all of the items in all the levels have turned green or gray, the script should be finished.
Entries are marked as green when the script has attempted to fix them. Entries as marked as gray when the script has skipped the entry because it was already fixed in an earlier level.
Thanks to the people in this topic who tracked down the cause of this bug, and props to @DrewSSP who wrote a similar script in Python.
This script is only for course creators or course contributors. If you’d like to use this script on a course that you’re not the creator of or a contributor to, you’ll need to contact the course’s owner or ask Memrise to add you as a contributor.
Notes:
- You must have more than one level in your course in order to run the script.
- This script does not work when run using the Greasemonkey plugin in Firefox. If you’re using Firefox, please use the Tampermonkey plugin instead.