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

Unified Diff: files/whitelist.js

Issue 8483154: Adding ABP core modules to ABP/Opera (Closed)
Patch Set: Created Oct. 11, 2012, 9:35 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
Index: files/whitelist.js
===================================================================
deleted file mode 100644
--- a/files/whitelist.js
+++ /dev/null
@@ -1,13 +0,0 @@
-const whitelist = {
- check: function(url) {
- rules = lists.whitelist.get();
- for(i in rules) {
- if(url.match(this.regex(rules[i])))
- return false;
- }
- return true;
- },
- regex: function(rule) {
- return RegExp(rule.replace(".","\\.").replace("*",".*").replace("[","\\[").replace("(","\\(").replace("||","[a-z]+://([a-z]+\\.){0,2}").replace("^","[!\"#$&'()*+,/:;<=>?@[\\]\\\\^`{}|~]"));
- }
-};

Powered by Google App Engine
This is Rietveld