Skip to content

Instantly share code, notes, and snippets.

@flapenguin
Created November 18, 2016 21:43
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 flapenguin/26485b4fac3fc6a13075cbce19e238b7 to your computer and use it in GitHub Desktop.
Save flapenguin/26485b4fac3fc6a13075cbce19e238b7 to your computer and use it in GitHub Desktop.
pobeda.aero remove russian cities
var cities = [
'Барселона', 'Братислава', 'Вена', 'Кёльн/Бонн',
'Ларнака', 'Милан', 'Мюнхен'
];
$('.airtickets-cities')
.filter((ix, el) => cities.every(x => el.textContent.indexOf(x) === -1))
.closest('.airtickets-item')
.remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment