-
-
Save mfrancois3k/257f7d33c85afd78f3213b531f413a9c to your computer and use it in GitHub Desktop.
Row culler for https://www.worldometers.info/coronavirus/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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