Skip to content
This repository has been archived by the owner. It is now read-only.

Testing ad block rule changes in Brave

Brian R. Bondy edited this page Feb 26, 2019 · 7 revisions
  • Make a clone of brave/ad-block and follow the instructions in the readme.
  • Make a clone of brave/adblock-lists
  • Make changes to a branch of brave/adblock-lists, for example to brave-unbreak.
  • Apply a local only patch to brave/ad-block similar to this but specifying the changeset for your branch:
diff --git a/lists/default.h b/lists/default.h
index fce7a03..77e2a12 100644
--- a/lists/default.h
+++ b/lists/default.h
@@ -46,7 +46,7 @@ const std::vector<FilterList> default_lists = {
     ""
   }, {
     "2FBEB0BC-E2E1-4170-BAA9-05E76AAB5BA5",
-    "https://raw.githubusercontent.com/brave/adblock-lists/master/brave-unbreak.txt", // NOLINT
+    "https://raw.githubusercontent.com/brave/adblock-lists/566350a512a312f49bf269b3b3d9d38364b9737f/brave-unbreak.txt",
     "Brave Unblock",
     {},
     "https://github.com/brave/adblock-lists",
  • Build the changes into the node library with npm run build
  • Rebuild the data files: npm run data-files (This uses node so don't forget the previous step to build!)
  • Close Brave
  • Copy the local file you built to your profile extension directory: 
cp ~/Library/Application\ Support/BraveSoftware/Brave-Browser/cffkpbalmllkdoenhmdmpbkajipdjfam/1.0.135/4/ABPFilterParserData.dat
You can’t perform that action at this time.