Skip to content

Commit ca1bec7

Browse files
author
MB
committed
[Yandex] Remove exclusions, fix order
1 parent 85e9c24 commit ca1bec7

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/chrome/content/rules/Yandex.xml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@
151151
152152
Partially covered subdomains:
153153
154-
- (www.)? ¹
155-
- beta ¹
156-
- buki ¹
157154
- (www.)?video *
158155
159156
¹ Some pages redirect to http
@@ -162,6 +159,7 @@
162159
163160
Fully covered subdomains:
164161
162+
- (www.)?
165163
- (www.)?academy
166164
- (www.)?adresa
167165
- (www.)?atlas
@@ -236,6 +234,7 @@
236234
- bar
237235
- bayan
238236
- beta.bayan
237+
- beta
239238
240239
- blogs
241240
- m.blogs
@@ -246,6 +245,7 @@
246245
- browsers
247246
- bs
248247
- bs-meta
248+
- buki
249249
- business-maps
250250
- calendar
251251
- widgets.calendar
@@ -504,11 +504,6 @@
504504
<!--exclusion pattern="^http://(android-us\.apps|us\.apps|m\.auto|family|interactive-answers|op)\.yandex\.ru/$" /-->
505505
<!--exclusion pattern="^http://market\.yandex\.ru/($|\?clid=|search\.xml)" /-->
506506
<exclusion pattern="^http://uslugi\.yandex\.ru/($|arr\.png|index\.css)" />
507-
<!--exclusion pattern="^http://(beta|www)\.yandex\.ru/($|postcards/$)" /-->
508-
<!--
509-
Exceptions:
510-
-->
511-
<exclusion pattern="^http://(?:beta\.|buki\.|www\.)?yandex\.ru/+(?!404\.html|(?:all|captcha|captchaimg|cycounter|images|people|promo|redir|security|showcaptcha|video|yandsearch)(?:$|[?/])|favicon\.ico)" />
512507
<!--
513508
Rather than enumerating domains that support SSL,
514509
we enable SSL for all services and then exclude those
@@ -636,12 +631,12 @@ w
636631
<rule from="^http://(www\.)?(academy|adresa|atlas|ewents|[ei]vents?|export|fotki|internet|karti|maps|(?:beta|constructor|m|n|router-quality)\.maps|master|metro|mshad|music|maps\.pda|pogoda|prefetch-maps|probki|research|site|startups|tech|tv|video|weather|yaca)\.yandex\.ru/"
637632
to="https://$1$2.yandex.ru/" />
638633

639-
<rule from="^http://(?:www\.)?([^.]+)\.yandex\.ru/"
640-
to="https://$1.yandex.ru/" />
641-
642634
<rule from="^http://((?:\d\.downloader\.disk|sandbox\.api\.maps|www)\.)?yandex\.ru/"
643635
to="https://$1yandex.ru/" />
644636

637+
<rule from="^http://(?:www\.)?([^.]+)\.yandex\.ru/"
638+
to="https://$1.yandex.ru/" />
639+
645640
<!-- Here we can enable 4+ level domains with a single regexp,
646641
but I've never seen any domains more that 4 levels deep
647642
in Yandex network, so I wouldn't enable them now -

utils/ruleset-coverage-whitelist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14343,7 +14343,7 @@ aee4181ef38efe6f09c7c39f2d36554bf8666ace9b1d308738546a5ec841d7c0 Yandex.com.ua.
1434314343
944bcf41c31b5740835eeadff14e17719bbf9ab21be1ec23f774777da111306c Yandex.net.xml
1434414344
0ae6d35db343a943f6c54011416bbe796435a13c894b5a719d1adc0dd29666e4 Yandex.st.xml
1434514345
ea65834f42b6c2bccf5972b45f3136ccbe0056ac13f706c9bfacf9bec64a5ecb Yandex.ua.xml
14346-
4df819d5e196c106e9d7aaaaafee840df3051da820db7af371e87a4d9c3417b7 Yandex.xml
14346+
6bc2b7b943cb3ed8962adc030e978e1a45acfb4cf437757f1228b49107b06641 Yandex.xml
1434714347
7946c589ae21bebf72512b6aa0ca5647ba4fc3ec83a0a96821c3ee41273a05f3 Yannick.net.xml
1434814348
ec25f5a0500009683e53ea1ccb50d6d1eb03ee1c7c7f2603a62713b6e2d9949a Yaprobki.ru.xml
1434914349
28a370e112f80d74aa3bfd8e462ad2d09cea7042d7acbcd02b884ce87e236485 Yard_Digital.com.xml

0 commit comments

Comments
 (0)