chrome-extensions-archive icon indicating copy to clipboard operation
chrome-extensions-archive copied to clipboard

Searching through the source code

Open Rob--W opened this issue 9 years ago • 3 comments

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).

Rob--W avatar May 14 '16 11:05 Rob--W

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 avatar May 14 '16 14:05 mdamien

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

mdamien avatar May 20 '16 10:05 mdamien

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

mdamien avatar May 20 '16 21:05 mdamien