Code study: Chrome- Devtools.js!!

Various discussions related to Adblock Plus development
Post Reply
kimblegomes
Posts: 1
Joined: Tue Oct 01, 2019 2:14 am

Code study: Chrome- Devtools.js!!

Post by kimblegomes »

Hello all,
I'm trying to get a grasp of the source code, and currently looking through the devtools.js panel.
I'm currently looking through chrome code trying o find out when the devtools-panel list gets updated, and I am trying to grab the information stored from this.
I have an idea that it's near the addRecord(panel, request, filter)/updateFilters(filters, added) methods, but I can't pin it down exactly.

Trying to store the collected information locally

Thanks in advance
Last edited by kimblegomes on Thu Oct 03, 2019 4:13 pm, edited 1 time in total.
User avatar
greiner
ABP Developer
Posts: 899
Joined: Mon Sep 03, 2012 5:29 pm
Location: Cologne, Germany

Re: Code study: Chrome- Devtools.js!!

Post by greiner »

If you're interested in listening to network requests and filter hits, I'd suggest checking out adblockpluschrome/lib/hitLogger.js. That's the module which allows other modules (incl. the one responsible for the developer tools panel) to access that kind of data using

Code: Select all

HitLogger.addListener()
Post Reply