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

Unified Diff: modules/filterserver/files/site.conf

Issue 29464623: #1374 - Redirect ZTE users to minimized filter-lists (Closed)
Patch Set: Created June 13, 2017, 1:41 p.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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/filterserver/files/site.conf
diff --git a/modules/filterserver/files/site.conf b/modules/filterserver/files/site.conf
index d8410c4108f7d570cdd634c8f74e41f1299de9e1..dcf92f6b210b19e98beb7386450af9064d73a812 100644
--- a/modules/filterserver/files/site.conf
+++ b/modules/filterserver/files/site.conf
@@ -47,6 +47,12 @@ if ($arg_addonName = "libadblockplus-android")
set $use_alternative_resource_flags "ZTE";
}
+# http://hub.eyeo.com/issues/1374
+if ($arg_application = "com.mx.browser")
+{
+ set $use_alternative_resource_flags "${use_alternative_resource_flags}+MX"
+}
+
if ($geoip_country_code = "DE")
{
set $use_alternative_resource_flags "${use_alternative_resource_flags}+LOCATION";
@@ -71,3 +77,13 @@ if ($use_alternative_resource_flags = "ZTE")
rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
}
+if ($use_alternative_resource_flags = "ZTE+MX")
+{
+ rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
+ rewrite ^/easylist\.(.+) /easylist-minimal.$1 break;
+ rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break;
+ rewrite ^/advblock\.(.+) /advblock-minimal.$1 break;
+ rewrite ^/easylistchina+easylist\.(.+) /easylistchina-minimal+easylist-minimal.$1 break;
+ rewrite ^/ruadlist+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break;
+}
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld