[Userscript] Attempt to Eliminate Phantom Entries

You’re welcome :slight_smile:

Pardon a probably simple question from a newbie working on his first course. I have the Chrome Tampermonkey add-in installed and working. I have installed the “Eliminate Phantom Entires” script in Tampermonkey. When I go to my course “edit words” page, I see the Tampermonkey icon indicating that the “Eliminate Phantom Entries.” How do I now run the script?

Thanks for any help you can give me.

It’s the button at the top of the edit course page, above the levels.
I guess you’ll need to add a level to your course first.

1 Like

@duaal

Thanks for the help. Once I added a new level to my course, the button appeared. I ran the script and then deleted the new level (which had no words in it). The course now looks fine.

The script also solved the other mystery that I had which was that the course thought there were more words than it actually had. Running the “Eliminate Phantom Entries” script returned the word count back to the correct value.

@Ieuan_ab_Arthur, thanks for letting us know! I’d been curious if maybe this script would also fix that problem :slight_smile:

Hmm, now this got me thinking. As you might’ve noticed, there is a problem with courses showing up as “unfinished” in the Android app (see this thread). Now I do wonder as to whether those phantom entries might actually be the root cause of the problem!

On the off-chance: in case anybody of you guys has administrative access to a course that erroneously shows up as “unfinished”: could you try and run the script on it to see whether the course shows up as “finished” afterwards?

Hi Eli / @neoncube,

I’ve just tried your script several times on a test course and didn’t notice any problems. I’ve tried producing phantom entries but didn’t succeed (sod’s law I guess), so I don’t really know whether it’s working. The course in question is not all too special (source lang, target lang, audio, one attribute col).

I’ve read various other threads too and - somewhere (too many open tabs - closed the wrong ones, smart!) I came across some mentioning of problems with people losing their progress. I have >150 users who learn or learned my course and I’d hate to see them loose their progress. Is that an old problem or maybe even one that never existed?

Long story short: are there any known problems that one should be aware of before running the script?
Also, do you still need to expand all levels or will the script do that for you now?

Cheers for the script! :v:t4:

Hi @Olaf.Rabbachin,

As far as I know, there aren’t any known problems with the script that would damage a course. I was cautious at first, too, but I’ve run it on quite a few courses and haven’t noticed any problems.

I think the script should automatically expand the levels for you. In fact, I’d recommend not expanding any levels manually, as that might trip up the script :slight_smile:

Cheers, @neoncube! I’ve already tried it out a few days ago, worked a charm. Many thanks for your efforts, have some virtual beer! :beer::beers:
:stuck_out_tongue_winking_eye:

1 Like

Doesn’t seem to work on Decks? If I run it on Memrise will the changes get copied across?

Scripts don’t work on Decks due to an address-filter being applied. For the auto-learn script I posted a work-around to make it work on Decks, see here. This work-around should really work for most (if not all) scripts that use Tampermonkey and (used to) work on the Memrise website.

Sorry, I completely missed that question! If you would’ve asked that question a week ago I would’ve said “yes, sure”, because both Memrise and Decks were sharing the same database. As of today I’m uncertain - I’ve read postings here on the forum where people are writing that official courses do no longer show up on Decks. If that’s the case, they may have started separating the two websites. While both Memrise and Decks might still be (I’d bet they are) fed through the same database, they probably have (or will soon) filter data so that community courses can only be accessed from Decks whereas official Memrise courses will only be available on Memrise.

But long story short: I’d simply try it out!

The script needs to be adapted for Decks.
Not copied. Right now the database for the courses is still shared between both websites.

Thank you very much for this valuabke information.

@neoncube Do you have plans to (or may I request that you) make this script available to the new Decks website? I use it frequently for cleaning up some courses I’ve created (that occasionally need “maintenance” by me). Since they (as well as all other user-created courses) are allegedly going to be only available in Decks (and not Memrise) after April, this would be very much appreciated!

@neoncube I would like to whole-heartedly second @Cianfrusaglie request for a “decks” compatible version. I create courses for my Welsh class and the “remove phantom entries” has been a great help to me (and to many others, I’m sure).

Thanks,

Ieuan

2 Likes

@neoncube Same here - I collaborate on a course with several other individuals, who then test and make changes and therefore we find sub optimal entries making their way into the system that need to be flushed out. This script has been absolutely amazing! I’ll bake cookies or lemon drizzle cake or something if we can have a decks compatible version. :slight_smile: But seriously, thank you so much for providing it in the first place, I know we’re being needy. :wink:

I tried adding the decks address into the user matches in tampermonkey, and while the button now shows up (yay!) it sadly doesn’t work. I’m not super experienced with tampermonkey though so perhaps I did something wrong.

hi,

you have to replace in the script all instances of “memrise.com” with “decks.memrise.com” to make it work. I use stylus in firefox and waterfox and in epic and in … brave, something like this, and stylus makes it easier to tamper with scripts

but i am not using decks yet, the “next” button is so terribly positioned, it makes one waste so much time with scrolling, pause is missing and I cannot make the dashboard look as compact as i wish

anyhow, for having updated scripts, one should wait until the decks UI is stable/not subject to sudden changes anymore. Neoncube (who is not using memrise anymore, if i remember well) and cooljingle updated their scripts so often in the last years - for free, out of … just kindness

6 Likes

@Angharad.Merfin Thank you! Don’t know if it’s actually working (I didn’t have any problems in my test course) but at least things are going green now and no errors being generated.

you’re welcome!

Also, as regards this one script: it does not work well with large courses (>1500 items), unless you have plenty of time on your hands and an angel’s patience, but even then the fail rate is pretty high

1 Like