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

Side by Side 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: Added ignore_browsers filter Created Aug. 15, 2017, 5:10 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | filters/to_og_locale.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 browsers = [
2 "opera",
3 "firefox",
4 "yandex-browser",
5 "android",
6 "safari",
7 "maxthon",
8 "edge",
9 "chrome",
10 "internet-explorer",
11 ]
Thomas Greiner 2017/08/17 12:27:36 That is a valid approach if we could ensure that n
juliandoucette 2017/08/17 13:50:07 I think that is a good idea and it should be imple
12
13 def ignore_browsers(page):
14 if page in browsers:
15 return "index"
16 else:
17 return page
OLDNEW
« 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