Scripts

Paste these in your browser’s console in the DevTools. Press F12 while in your browser to open DevTools.

Extract a sorted list of italki teachers by cost

var x = [...document.querySelector('.teachers').children].map((i) =>
  i.classList.contains('teacher-card')
    ? [
        i.children[0].children[1].children[0].children[2]
          ? i.children[0].children[1].children[0].children[2]?.children[0]
              .children[1].children[0].innerText
          : i.children[0].children[1].children[0].children[1]?.children[0]
              .children[1].children[0].innerText,
        i.children[0].children[0].children[1].children[0].children[0].innerText,
      ]
    : '',
);
console.log(
  x.map(([i, n]) => [i ? +i.substring(4) : 999, n]).sort((a, b) => a[0] - b[0]),
);

Monument.nyc wordbook export

[...document.querySelector('.Entries > main:nth-child(2)').children]
  .flatMap((i) => [i.children[0], i.children[1]])
  .map(
    (i) => i.children[1].children[0].innerText + ',' + i.children[2].innerText,
  )
  .join('\n');

Lingro wordlist export

[...document.querySelector('#wordlist_13023706_dropzone').children]
  .filter((i) => i.nodeName === 'SPAN')
  .map((i) => i.children[1].innerText)
  .join('\n');