Skip to content

Instantly share code, notes, and snippets.

@willowiscool
Last active January 13, 2020 04:02
Show Gist options
  • Save willowiscool/ca401c9552f8270ef1686d1cdb2071f8 to your computer and use it in GitHub Desktop.
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!
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