Skip to content

Instantly share code, notes, and snippets.

@naamancampbell
Created November 27, 2020 22:58
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 naamancampbell/1d6f6d818abd9b4597beb34277439858 to your computer and use it in GitHub Desktop.
Save naamancampbell/1d6f6d818abd9b4597beb34277439858 to your computer and use it in GitHub Desktop.
Removes language-tagged AWS re:invent sessions from the https://virtual.awsevents.com/agenda Session Catalog
let excludedLanguages = ['Chinese', 'French', 'Italian', 'Japanese', 'Korean', 'Portuguese', 'Spanish']
for (const tagsDiv of document.querySelectorAll(".event-list-item-tags")) {
for (const tagDiv of tagsDiv.querySelectorAll(".tag")) {
if (excludedLanguages.includes(tagDiv.textContent)) {
let parentDiv = tagsDiv.closest(".event-list-item")
parentDiv.parentNode.removeChild(parentDiv)
break
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment