Created
November 18, 2016 21:43
-
-
Save flapenguin/26485b4fac3fc6a13075cbce19e238b7 to your computer and use it in GitHub Desktop.
pobeda.aero remove russian cities
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
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