Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFilter out rare rules #109
Conversation
|
Some minor refactoring, but overall lgtm. |
| @@ -60,7 +60,8 @@ const getSingleListDataFromSingleURL = (listURL, filter) => { | |||
| body = filter(body) | |||
| } | |||
| body = sanitizeABPInput(body) | |||
This comment has been minimized.
This comment has been minimized.
bbondy
Jun 12, 2018
Member
sanitizeABPInput was originally meant to be for including all things that modify ABP input so you could not worry about where it comes from. I think it'd be good to add filterRareRulesPromise inside there. You could convert it to a promise as well if you want. You'd just add another filter predicate there and fetch the list on startup of the tool.
| return | ||
| } | ||
|
|
||
| console.log(`Fetching unused rules data from ${rareRulesUrl}...`) |
This comment has been minimized.
This comment has been minimized.
…pen automatically to clients, convert sanitizeABPInput -> sanitizeABPInputPromise
|
This will be live once we release 0.23.x (will be our next major release soon) and will be live on brave-core builds (which is not risky because only internal). It would be good to have @lukemulks test this once builds are available -- @darkdh is working on it. You can merge now though. Just don't put it on v3 branch. |
|
I've raised the issue with #devops about where this should ultimately live and will update this PR and merge once the "how will this live on production" issues get worked out |
|
This is all managed elsewhere, by different projects now, so closing here |
|
I'd still like there to be a 2 pass check though for desktop. Should we use this to track that? |
|
ah, gotcha. What would you think of flipping the script, and instead of pulling down a list of of rules to filter out, pulling down just a set of rules to include. Once the latest lambda deploy happens, I'll be writing a |
|
rules to include is perfectly fine with me too. Actually slightly easier even. |
pes10k commentedJun 5, 2018
•
edited
Filters out EasyList rules that are not see in the crawl of Alexa1k (depth 2, breath 3), in the global, CN, DE and RU regions.
A couple of pieces that'd need to be worked out here:
https://s3.amazonaws.com/com.brave.research.public/brave-unused-filters.txt. Might be better to put behind fastly or similarI think @diracdeltas 's idea is great, but would take bigger changes and maybe not worth blocking this on. What do you think about doing that as a possible future change (and / or possible good first change for one of the interns working on blocking)?