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

Unified Diff: filters/ignore_browsers.py

Issue 29511696: Issue 5447 - Add missing essential meta data to adblockplus.org (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Updated locales before re-landing after blog fix Created Sept. 13, 2017, 12:25 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 | filters/to_og_locale.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filters/ignore_browsers.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/filters/ignore_browsers.py
@@ -0,0 +1,17 @@
+browsers = [
+ "opera",
+ "firefox",
+ "yandex-browser",
+ "android",
+ "safari",
+ "maxthon",
+ "edge",
+ "chrome",
+ "internet-explorer",
+]
+
+def ignore_browsers(page):
+ if page in browsers:
+ return "index"
+ else:
+ return page
« no previous file with comments | « no previous file | filters/to_og_locale.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld