Skip to content

Instantly share code, notes, and snippets.

@MrSunshyne
Last active March 12, 2020 12:21
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 MrSunshyne/ee206dedf5b0cfe4303d5320b10fc15f to your computer and use it in GitHub Desktop.
Save MrSunshyne/ee206dedf5b0cfe4303d5320b10fc15f to your computer and use it in GitHub Desktop.
Array of affected countries from CDC website
// Open the developer toosl console and execute the folowing command to get an array of countries listed on the page.
// Right click and copy object for convenience.
// For use on this page: https://www.cdc.gov/coronavirus/2019-ncov/locations-confirmed-cases.html
let nodes = document.querySelectorAll(".syndicate li");
let list = [].slice.call(nodes);
let innertext = list.map(function(e) { return e.innerText; });
console.log(innertext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment