Skip to content

Instantly share code, notes, and snippets.

@freshteapot
Created October 21, 2023 11:42
Show Gist options
  • Save freshteapot/fc63eadca1ba2a4e497bc4b1ce595764 to your computer and use it in GitHub Desktop.
Save freshteapot/fc63eadca1ba2a4e497bc4b1ce595764 to your computer and use it in GitHub Desktop.
Create a learning video with learnalist, upload to youtube and share the list data with youtube.

Make videos for youtube and share the data via learnalist

Steps

  • Create list
  • Include the verb
  • Set slideshow
  • Make video
  • Download video
  • Vist the main list
  • Run code below, to grab "text for the description.
  • Grab title via document.title or aList.info.title
  • Add to youtube
JSON.parse(document.querySelector("#play-data").innerText).data.map(e => `${e.from} ->  ${e.to}\n`).join("\n")

aList = JSON.parse(document.querySelector("#play-data").innerText);

aList.info.title;
data = aList.data.map(e => `${e.from}\n${e.to}\n`).join("\n");
url = document.location.href;




output = `View the list:

${url}

Play: unjumble, total recall, practice typing
Learn: add for spaced repetition
Create: make your own video, download a pdf

#languagelearning #english #norwegian #norsk

# Data

${data}
`

Example url: https://learnalist.net/alist/075d5de0-7549-56c7-8cad-2de728f0b006.html

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