Skip to content

Instantly share code, notes, and snippets.

@chrismeller
Last active December 9, 2020 09:14
Show Gist options
  • Save chrismeller/fa9d7fcc1393e209c3882041b6c7296d to your computer and use it in GitHub Desktop.
Save chrismeller/fa9d7fcc1393e209c3882041b6c7296d to your computer and use it in GitHub Desktop.
Yandex Weather uBlock Origin Rules
!right-hand ads on the main page
yandex.*##:xpath(//div[ contains( @class, 'content__bottom' ) ]/following-sibling::div[1])
yandex.*##:xpath(//div[ contains( @class, 'content__bottom' ) ]/following-sibling::div[2])
!row-level ads on the main page
yandex.*##:xpath(//div[ contains( @class, 'card' ) and not(contains( @class, 'maps' )) and descendant::script ])
!right-hand ads on the monthly page
yandex.*##:xpath(//div[ contains( @class, '__content' ) and descendant::div[ contains( @class, 'page30days' ) ] ]/following-sibling::div[1])
!bottom ads on the monthly page
yandex.*##:xpath(//section[ contains( @class, 'content__section' ) and descendant::script ][2])
!left-hand ad on the map page
yandex.*##:xpath(//div[ contains( @class, 'map-left-pane' ) ]//a[ contains( @class, 'button' ) ]/following-sibling::div[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment