Skip to content

Instantly share code, notes, and snippets.

@mfrancois3k
Forked from jsoverson/console.js
Created August 16, 2022 20:54
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 mfrancois3k/257f7d33c85afd78f3213b531f413a9c to your computer and use it in GitHub Desktop.
Save mfrancois3k/257f7d33c85afd78f3213b531f413a9c to your computer and use it in GitHub Desktop.
Array
.from(document.querySelector('#main_table_countries_yesterday > tbody').children)
.filter(x => !x
.querySelector(['us', 'germany', 'norway', 'sweden', 'denmark'].map(x => `a[href*='country/${x}']`)))
.forEach(x => x.parentElement.removeChild(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment