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

Issue 29336753: Issue 3671 - Split out contentBlockerList API (Closed)

Created:
Feb. 20, 2016, 9:59 p.m. by kzar
Modified:
Feb. 26, 2016, 4:24 p.m.
Visibility:
Public.

Description

Issue 3671 - Split out contentBlockerList API

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed feedback, removed some modules #

Total comments: 44

Patch Set 3 : Reworked API into ContentBlockerList class and addressed other feedback #

Total comments: 7

Patch Set 4 : Addressed more feedback #

Total comments: 1

Patch Set 5 : Skip lines only containing whitespace #

Total comments: 5

Patch Set 6 : Tweaked line skipping logic and addressed a nit #

Patch Set 7 : Use Sebastian's regexp suggestion #

Patch Set 8 : Renamed lib/contentBlockList.js to lib/abp2blocklist.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -1082 lines) Patch
D .gitignore View 1 1 chunk +1 line, -1 line 0 comments Download
M .hgignore View 1 1 chunk +1 line, -1 line 0 comments Download
M README.md View 1 1 chunk +14 lines, -0 lines 0 comments Download
M abp2blocklist.js View 1 2 3 4 5 6 7 1 chunk +29 lines, -359 lines 0 comments Download
D adblockplus.js View 1 chunk +0 lines, -722 lines 0 comments Download
A lib/abp2blocklist.js View 1 2 3 4 5 6 7 1 chunk +395 lines, -0 lines 0 comments Download
A + node_modules/filterClasses.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 23
kzar
Patch Set 1
Feb. 20, 2016, 10:01 p.m. (2016-02-20 22:01:46 UTC) #1
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336754/node_modules/filterNotifier.js File node_modules/filterNotifier.js (right): https://codereview.adblockplus.org/29336753/diff/29336754/node_modules/filterNotifier.js#newcode2 node_modules/filterNotifier.js:2: * This file is part of Adblock Plus <https://adblockplus.org/>, ...
Feb. 21, 2016, 2:21 a.m. (2016-02-21 02:21:09 UTC) #2
kzar
Patch Set 2 : Addressed feedback, removed some modules https://codereview.adblockplus.org/29336753/diff/29336754/node_modules/filterNotifier.js File node_modules/filterNotifier.js (right): https://codereview.adblockplus.org/29336753/diff/29336754/node_modules/filterNotifier.js#newcode2 node_modules/filterNotifier.js:2: ...
Feb. 21, 2016, 11:31 a.m. (2016-02-21 11:31:20 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js#newcode10 abp2blocklist.js:10: require.cache["url"] = require.cache[require.resolve("url.js")]; I'd rather rename our url module, ...
Feb. 21, 2016, 8:34 p.m. (2016-02-21 20:34:46 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js File lib/contentBlockerLists.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js#newcode18 lib/contentBlockerLists.js:18: /** @module contentBlockerLists */ On 2016/02/21 20:34:45, Sebastian Noack ...
Feb. 21, 2016, 8:36 p.m. (2016-02-21 20:36:15 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File abp2blocklist.js (left): https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js#oldcode1 abp2blocklist.js:1: "use strict"; Mind adding the missing license disclaimer here?
Feb. 21, 2016, 9:21 p.m. (2016-02-21 21:21:43 UTC) #6
kzar
Patch Set 3 : Reworked API into ContentBlockerList class and addressed other feedback https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File ...
Feb. 22, 2016, 12:28 p.m. (2016-02-22 12:28:07 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js#newcode10 abp2blocklist.js:10: require.cache["url"] = require.cache[require.resolve("url.js")]; On 2016/02/22 12:28:05, kzar wrote: > ...
Feb. 22, 2016, 5:35 p.m. (2016-02-22 17:35:29 UTC) #8
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336800/lib/contentBlockerList.js File lib/contentBlockerList.js (right): https://codereview.adblockplus.org/29336753/diff/29336800/lib/contentBlockerList.js#newcode106 lib/contentBlockerList.js:106: result.push("\\"); On 2016/02/22 17:35:28, Sebastian Noack wrote: > Nit: ...
Feb. 22, 2016, 5:37 p.m. (2016-02-22 17:37:32 UTC) #9
kzar
Patch Set 4 : Addressed more feedback https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js#newcode10 abp2blocklist.js:10: require.cache["url"] = ...
Feb. 22, 2016, 6:09 p.m. (2016-02-22 18:09:35 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js#newcode22 abp2blocklist.js:22: if (line.charAt(0) != "[") On 2016/02/22 18:09:28, kzar wrote: ...
Feb. 22, 2016, 6:20 p.m. (2016-02-22 18:20:27 UTC) #11
kzar
Patch Set 5 : Skip lines only containing whitespace https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/abp2blocklist.js#newcode22 abp2blocklist.js:22: ...
Feb. 22, 2016, 7:46 p.m. (2016-02-22 19:46:01 UTC) #12
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js#newcode29 abp2blocklist.js:29: if (line.charAt(0) != "[" && line.search(/\S/) > -1) After ...
Feb. 24, 2016, 12:45 a.m. (2016-02-24 00:45:42 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js#newcode25 abp2blocklist.js:25: var converter = new ContentBlockerList(); Nit: As you went ...
Feb. 24, 2016, 12:49 a.m. (2016-02-24 00:49:51 UTC) #14
kzar
Patch Set 6 : Tweaked line skipping logic and addressed a nit https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js File abp2blocklist.js ...
Feb. 24, 2016, 9:59 a.m. (2016-02-24 09:59:27 UTC) #15
Felix Dahlke
Sorry for the delay, here goes: https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js File lib/contentBlockerLists.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js#newcode18 lib/contentBlockerLists.js:18: /** @module contentBlockerLists ...
Feb. 24, 2016, 1:06 p.m. (2016-02-24 13:06:30 UTC) #16
kzar
Patch Set 7 : Use Sebastian's regexp suggestion https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js File abp2blocklist.js (right): https://codereview.adblockplus.org/29336753/diff/29337491/abp2blocklist.js#newcode29 abp2blocklist.js:29: if ...
Feb. 24, 2016, 7:21 p.m. (2016-02-24 19:21:49 UTC) #17
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js File lib/contentBlockerLists.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js#newcode18 lib/contentBlockerLists.js:18: /** @module contentBlockerLists */ On 2016/02/24 13:06:30, Felix Dahlke ...
Feb. 24, 2016, 7:31 p.m. (2016-02-24 19:31:51 UTC) #18
Sebastian Noack
https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js File lib/contentBlockerLists.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js#newcode18 lib/contentBlockerLists.js:18: /** @module contentBlockerLists */ On 2016/02/24 19:31:51, Sebastian Noack ...
Feb. 24, 2016, 10:10 p.m. (2016-02-24 22:10:04 UTC) #19
kzar
On 2016/02/24 22:10:04, Sebastian Noack wrote: > It seems that we can not get a ...
Feb. 24, 2016, 10:27 p.m. (2016-02-24 22:27:16 UTC) #20
Sebastian Noack
On 2016/02/24 22:27:16, kzar wrote: > On 2016/02/24 22:10:04, Sebastian Noack wrote: > > It ...
Feb. 24, 2016, 10:29 p.m. (2016-02-24 22:29:45 UTC) #21
Felix Dahlke
Sorry for the delay! https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js File lib/contentBlockerLists.js (right): https://codereview.adblockplus.org/29336753/diff/29336776/lib/contentBlockerLists.js#newcode18 lib/contentBlockerLists.js:18: /** @module contentBlockerLists */ On ...
Feb. 26, 2016, 3:40 p.m. (2016-02-26 15:40:36 UTC) #22
kzar
Feb. 26, 2016, 4:08 p.m. (2016-02-26 16:08:38 UTC) #23
Patch Set 8 : Renamed lib/contentBlockList.js to lib/abp2blocklist.js

Powered by Google App Engine
This is Rietveld