Page 1 of 1

Code study: Chrome- Devtools.js!!

Posted: Tue Oct 01, 2019 2:17 am
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

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

Posted: Tue Oct 01, 2019 4:46 pm
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()