diff --git a/scripts/fetch-supported-languages.js b/scripts/fetch-supported-languages.js new file mode 100644 index 00000000..1af2e664 --- /dev/null +++ b/scripts/fetch-supported-languages.js @@ -0,0 +1,20 @@ +import fs from 'fs'; + +const url = 'https://mastodon.social/'; + +const html = await fetch(url).then((res) => res.text()); + +// Extract the JSON between +const json = html.match( + /