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 |