mdamien / chrome-extensions-archive

:pager: Archive all the chrome extensions (until Feb 4. 2019)
https://crx.dam.io
MIT License
387 stars 70 forks source link

Searching through the source code #2

Open Rob--W opened 8 years ago

Rob--W commented 8 years ago

Could you index extensions by manifest keys (e.g. permissions / optional_permissions, content_scripts), and add the ability to search through the source code of extensions that match the query?

For example, I'd like to know how many extensions use the webRequest API in a blocking fashion (=webRequest + webRequestBlocking permissions) and block "ping" requests (to make informed decisions on https://crbug.com/611453).

mdamien commented 8 years ago

Yes, that's really the next step (full source code search + metadata search).

I'm currently indexing extensions infos + metadata to elasticsearch, source code search should come soon after that.

mdamien commented 8 years ago

Reminder to myself: just extract the archives and do a normal recursive file search http://beyondgrep.com/more-tools/ for efficient search

mdamien commented 8 years ago

Here's a very basic prototype using ag: http://codesearch.x.dam.io/?q=your_thing

EDIT: now switching to another strategy and doing it with postgres instead