Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: puppet/modules/adblockplusorg/files/adblockplus.org

Issue 5253207810899968: Issue 1553 - Adblock Plus for Yandex Browser (Infrastructure) (Closed)
Patch Set: Created Dec. 3, 2014, 11:51 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « anwiki/_override-static/global/global/img/sprite-index.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: puppet/modules/adblockplusorg/files/adblockplus.org
===================================================================
--- a/puppet/modules/adblockplusorg/files/adblockplus.org
+++ b/puppet/modules/adblockplusorg/files/adblockplus.org
@@ -38,6 +38,9 @@
if ($http_user_agent ~ \bAndroid\s.*\bAppleWebKit/\d+) {
set $user_agent "android";
}
+ if ($http_user_agent ~ \bYaBrowser/\d+) {
+ set $user_agent "yandex-browser";
+ }
if ($http_user_agent ~ \bMaxthon/\d+) {
set $user_agent "maxthon";
}
@@ -63,7 +66,7 @@
}
set $static_uri $uri;
- if ($uri ~ ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|maxthon)/?$) {
+ if ($uri ~ ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|yandex-browser|maxthon)/?$) {
set $static_uri "/$1/";
set $platform $3;
}
@@ -79,7 +82,7 @@
rewrite ^ /static$static_uri?platform=$platform&user_agent=$user_agent last;
}
- rewrite ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|maxthon)/?$ /index.php?p=$1&platform=$3&user_agent=$user_agent last;
+ rewrite ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|yandex-browser|maxthon)/?$ /index.php?p=$1&platform=$3&user_agent=$user_agent last;
rewrite ^/(.*) /index.php?p=$1 last;
}
« no previous file with comments | « anwiki/_override-static/global/global/img/sprite-index.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld