Skip to content

Instantly share code, notes, and snippets.

@coffenbacher
Last active August 8, 2019 14:54
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save coffenbacher/e1e10f55cff40c64a55a to your computer and use it in GitHub Desktop.
Save coffenbacher/e1e10f55cff40c64a55a to your computer and use it in GitHub Desktop.
Love Duolingo but it's missing a list of the words you've learned. Log in and paste this in the developer console in Chrome to get it.
$('body').html('<table id="words"><thead><tr><th>Language</th><th>Category</th><th>Word</th><th>Strength</th></thead><table>');
var ld = duo.user.attributes.language_data;
for (l in ld) {
ld[l].skills.models.forEach(function(model) {
var a = model.attributes;
if (a.progress_percent > 0) {
$.get('/skills/' + a.language + '/' + a.url_title, function(skill) {
skill.path.forEach(function(path) {
if (path.words && path.strength > 0) {
path.words.forEach(function(word) {
var h = "<tr>";
h += "<td>" + l + "</td>";
h += "<td>" + a.name + "</td>";
h += "<td>" + word + "</td>";
h += "<td>" + path.strength + "</td>";
h += "</tr>";
$("#words").append(h);
});
}
});
});
}
});
}
@coffenbacher
Copy link
Author

Looks like this: http://imgur.com/mUW5EHJ

Copy link

ghost commented Aug 10, 2015

Hey,

Would it be possible to have the translation as weel?

Regards,

Melec

@dafryguy
Copy link

dafryguy commented Apr 11, 2019

Where do you paste it in Developer Tools? In the Console? in the HTML under the Element tab?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment