Last active
August 16, 2022 20:54
-
-
Save jsoverson/fe016a2e3eb86f088f76bcd285bc22d7 to your computer and use it in GitHub Desktop.
Row culler for https://www.worldometers.info/coronavirus/
This file contains hidden or 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