Skip to content

Instantly share code, notes, and snippets.

@jsoverson
Last active August 16, 2022 20:54
Embed
What would you like to do?
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