Example Sentences Userscript

Thanks so much!

This script is simply amazing! Thanks so much! I’ve been trying to modify the tone colors in the script - I’ve been using a slightly different tone coloring than what the script has by default for years, and it’s hard to get used to a different coloring scheme now. It looks like one should be able to change the default colors from the “Example Settings” window that is accessible from the review page in Memrise, but if I click on a color nothing happens (I am on Chrome for Mac). I tried changing the colors directly in the script, because I just need to swap some colors around, but I’m not very knowledgeable about the script language. I found the part that contains the htlm color codes, and tried swapping color codes there (see below), but nothing happens in Memrise either (the colors stay the same after modifying color codes in that part of the script). Any help with this would be greatly appreciated! Thanks!

defaultSettings = {
… … …
“tone-1”: “#e30000”,
“tone-2”: “#8900bf”,
“tone-3”: “#02b31c”,
“tone-4”: “#1510f0”,
“tone-5”: “#777777”,

@cooljingle

Are there any online databases for Portuguese (BR) or other Romance languages where you could pull 3-5 example PT sentences from for a single word?

The DuoLingo PT BR course e.g quite often uses single words and infinitive (not conjugated) verbs.

An additional button “Pull some example sentences” would be quite sufficient, so you do not have to retrieve them each time for every shown word.

Often there are some (single) words, no matter how often you strengthen or re-learn them, they are quite weak and/or difficult and without good examples and seeing them in multiple contexts, you will probably NEVER learn them 100% successful, so you can better RECALL them the next time.

Turns out the color picker was no longer working after a Memrise update; with the latest script version (1.2.5) it should be functional again.

As an aside, your script edit may have not worked because the settings are saved locally to prevent future updates affecting them.

1 Like

I’ve thought of using https://tatoeba.org/ to make a more general example sentences userscript which would work for more languages, it doesn’t have an api but you could scrape the data off the pages - one for my todo list.

There’s also this:

1 Like

Hi there! The script stopped working :-(, I noticed this today …

I’ve updated it so it should be working now (1.2.10).

@cooljingle can you please add support for the traditional characters? :slight_smile:

Sorry for the late reply, was on holiday.

I had implemented traditional Chinese support but there was a bug in the script which stopped it translating properly- I’ve fixed in now so it should all be working fine (1.2.12)

1 Like

I’ve installed the latest version using tampermonkey. It’s still not working :confused:

I found the problem, should be working now (1.2.13)

Example sentences is no longer working for me. I have the latest version of Chrome (Version 69.0.3497.100) and the Memrise Chinese Examples script using Tampermonkey (1.2.13)

1 Like

I’ve fixed it now - latest is 1.2.14

1 Like

Muchisimas ganxie, I don’t think I would even use Memrise anymore without your scripts.

2 Likes

Is the Chinese Example Sentences userscript still viable on Chrome? I’m coming back after a long absence and it does not seem to be working.

You may find that it’s a consequence of Memrise changing its url recently. For other userscripts, we needed to edit the url reference in the scripts to match the new address. See this other forum topic which explains: Tampermonkey scripts no longer working

7 Likes

Yes, thanks, I got it sorted out by changing the www.memrise to app.memrise. Audio isn’t working for me currently, but not a big problem as I am currently more focusing on reading skills.

1 Like

Anybody using the example sentences currently? I am back again after a long hiatus, and I am seeing the other relevant parts provided by this userscript, but not the example sentences.

Hi @Podster,

I don’t use that one but it could be that when you logged back on, you joined the new(ish) Beta version of Memrise, where none of the userscripts work. If so, you’ll need to turn off ‘Beta’ in your Profile (and, possibly also “Memrise Labs” in your “Learning” options) so that you revert to the original version of Memrise. The userscripts should then work as before.

3 Likes