Last active
January 13, 2020 04:02
-
-
Save willowiscool/ca401c9552f8270ef1686d1cdb2071f8 to your computer and use it in GitHub Desktop.
This script translates a decks.memrise list to a format you can import into quizlet. To use it, paste it into the browser console of a decks list page, and copy the result into quizlet's import!
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
Array.from(document.querySelectorAll("div.things.clearfix .text-text .text .text")).map(e=>e.textContent).reduce((a,b)=>(a[a.length-1].length<2?a[a.length-1].push(b):a.push([b]),a),[[]]).map(e=>e.join(" ")).join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment