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

Delta Between Two Patch Sets: files/sources.js

Issue 8493027: Acquired Opera AdBlock code (Closed)
Left Patch Set: Created Oct. 2, 2012, 1:15 p.m.
Right Patch Set: Created Oct. 8, 2012, 5:58 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « files/preferences.js ('k') | files/translators.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 //The content of each list, if downloaded, is stored in NAME-content 1 //The content of each list, if downloaded, is stored in NAME-content
2 //If a list is added, remember to add a type and a name value as well 2 //If a list is added, remember to add a type and a name value as well
3 const sources = { 3 const sources = {
4 fanboy: { 4 fanboy: {
5 'fanboy':'https://www.fanboy.co.nz/adblock/opera/urlfilter.ini', 5 'fanboy':'https://www.fanboy.co.nz/adblock/opera/urlfilter.ini',
6 'fanboy-ru':'https://www.fanboy.co.nz/adblock/opera/rus/urlfilte r.ini', 6 'fanboy-ru':'https://www.fanboy.co.nz/adblock/opera/rus/urlfilte r.ini',
7 'fanboy-es':'https://www.fanboy.co.nz/adblock/opera/esp/urlfilte r.ini', 7 'fanboy-es':'https://www.fanboy.co.nz/adblock/opera/esp/urlfilte r.ini',
8 'fanboy-ja':'https://www.fanboy.co.nz/adblock/opera/jpn/urlfilte r.ini', 8 'fanboy-ja':'https://www.fanboy.co.nz/adblock/opera/jpn/urlfilte r.ini',
9 'fanboy-cz':'https://www.fanboy.co.nz/adblock/opera/cz/urlfilter .ini', 9 'fanboy-cz':'https://www.fanboy.co.nz/adblock/opera/cz/urlfilter .ini',
10 'fanboy-tr':'https://www.fanboy.co.nz/adblock/opera/trky/urlfilt er.ini', 10 'fanboy-tr':'https://www.fanboy.co.nz/adblock/opera/trky/urlfilt er.ini',
(...skipping 27 matching lines...) Expand all
38 'adblock-lv':'https://gitorious.org/adblock-latvian/adblock-latv ian/blobs/raw/master/lists/urlfilter.ini', 38 'adblock-lv':'https://gitorious.org/adblock-latvian/adblock-latv ian/blobs/raw/master/lists/urlfilter.ini',
39 39
40 //'jab':'http://www.jabcreations.com/downloads/adblock-filters.p hp' 40 //'jab':'http://www.jabcreations.com/downloads/adblock-filters.p hp'
41 }, 41 },
42 privacy: { 42 privacy: {
43 'easy-priv':'https://easylist-downloads.adblockplus.org/easypriv acy.txt', 43 'easy-priv':'https://easylist-downloads.adblockplus.org/easypriv acy.txt',
44 'easy-ru-priv':'https://ruadlist.googlecode.com/svn/trunk/cntblo ck.txt' 44 'easy-ru-priv':'https://ruadlist.googlecode.com/svn/trunk/cntblo ck.txt'
45 }, 45 },
46 all: function() { 46 all: function() {
47 var value = {}; 47 var value = {};
48 for (var i in this.fanboy) { value[i] = this.fanboy[i]; } 48 for (var i in this.fanboy) { value[i] = this.fanboy[i]; }
Felix Dahlke 2012/10/05 15:47:16 IMO this would look a bit cleaner if the loop over
49 for (var i in this.easy) { value[i] = this.easy[i]; } 49 for (var i in this.easy) { value[i] = this.easy[i]; }
50 for (var i in this.others) { value[i] = this.others[i]; } 50 for (var i in this.others) { value[i] = this.others[i]; }
51 for (var i in this.privacy) { value[i] = this.privacy[i]; } 51 for (var i in this.privacy) { value[i] = this.privacy[i]; }
52 return value; 52 return value;
53 }, 53 },
54 style: { //Defines if the list is opera-style or adblock-style 54 style: { //Defines if the list is opera-style or adblock-style
55 'fanboy':'opera', 55 'fanboy':'opera',
56 'fanboy-es':'opera', 56 'fanboy-es':'opera',
57 'fanboy-ja':'opera', 57 'fanboy-ja':'opera',
58 'fanboy-tr':'opera', 58 'fanboy-tr':'opera',
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 'easy-priv':"#easy_license#", 181 'easy-priv':"#easy_license#",
182 'easy-ru-priv':"#cc_by#", 182 'easy-ru-priv':"#cc_by#",
183 183
184 //CSS 184 //CSS
185 'fanboy-css':"#cc_by_sa# - <a href='https://www.fanboy.co.nz'>Fa nboy</a>", 185 'fanboy-css':"#cc_by_sa# - <a href='https://www.fanboy.co.nz'>Fa nboy</a>",
186 //Creative Commons 3.0 BY-SA 186 //Creative Commons 3.0 BY-SA
187 'easy-ru-css':"© ELV1S and Adblock Team", 187 'easy-ru-css':"© ELV1S and Adblock Team",
188 'adblock-lv-css':"#cc_by_nc_sa#" 188 'adblock-lv-css':"#cc_by_nc_sa#"
189 } 189 }
190 }; 190 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld