Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/chrome/content/rules/Habrahabr.ru-falsemixed.xml

This file was deleted.

49 changes: 2 additions & 47 deletions src/chrome/content/rules/Habrahabr.ru.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,60 +32,15 @@
* Secured by us

-->
<ruleset name="Habrahabr.ru (partial)">
<ruleset name="habrahabr.ru">

<!-- Direct rewrites:
-->
<target host="habrahabr.ru" />
<target host="auth.habrahabr.ru" />
<!--target host="special.habrahabr.ru" /-->
<target host="special.habrahabr.ru" />
<target host="www.habrahabr.ru" />

<!-- Redirect to http:
-->
<!--exclusion pattern="^http://habrahabr\.ru/$" /-->
<!--
Exceptions:
-->
<!--exclusion pattern="^http://habrahabr\.ru/(?!auth/|favicon\.ico|i/|images/|styles/)" /-->
<!--
Breaks icons:
-->
<!--exclusion pattern="^http://habrahabr\.ru/styles/" /-->
<!--
In sum:
-->
<exclusion pattern="^http://habrahabr\.ru/(?!auth/|favicon\.ico|i/|images/)" />

<!-- +ve:
-->
<test url="http://habrahabr.ru/" />

<!-- -ve:
-->
<test url="http://habrahabr.ru/auth/" />
<test url="http://habrahabr.ru/favicon.ico" />
<test url="http://habrahabr.ru/i/avatars/stub-user-small.gif" />
<test url="http://habrahabr.ru/images/" />


<!-- Not secured by server:
-->
<!--securecookie host="^special\.habrahabr\.ru$" name="^captcha$" /-->

<!--securecookie host="^special\.habrahabr\.ru$" name=".+" /-->


<!-- 404/504s on www:
-->
<rule from="^http://www\.habrahabr\.ru/(?=auth/|favicon\.ico|i/|images/)"
to="https://habrahabr.ru/" />

<test url="http://www.habrahabr.ru/auth/" />
<test url="http://www.habrahabr.ru/favicon.ico" />
<test url="http://www.habrahabr.ru/i/avatars/stub-user-small.gif" />
<test url="http://www.habrahabr.ru/images/" />

<rule from="^http:"
to="https:" />

Expand Down