This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
function getWords(courseId, level) { | |
const url = `https://www.memrise.com/ajax/session/?course_id=${courseId}&level_index=${level}&session_slug=preview` | |
console.log('Fetching words from ' + url) | |
return fetch(url, { credentials: 'same-origin' }) | |
// parse response | |
.then(res => { |