Skip to content

Instantly share code, notes, and snippets.

@P233
Created February 7, 2021 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save P233/d5000e92ef773820ee39d17eeec18f42 to your computer and use it in GitHub Desktop.
Save P233/d5000e92ef773820ee39d17eeec18f42 to your computer and use it in GitHub Desktop.
Get SVG attributes which contains capital letter
Array.from(document.querySelector(".index").querySelectorAll("code > a")).reduce((a, c) => { if (c.innerHTML !== c.innerHTML.toLowerCase()) return `${a}\n ":${c.innerHTML.toLowerCase()}" ":${c.innerHTML}"`; else return a;}, "(def attribute-replacements [") + "])";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment