0

Is it possible to add custom functionality to chrome devtools?

I want to add a button in to chrome style inspecter ( green button in the picture ) .

When button is clicked, I want to show an alert with file and line number.

I read about extending devtools from google documentation, but couldn't found anything to do something like I expect.

If you think it's possible, can you tell me some starting point?

Thanks.

enter image description here

Rach Glucio
  • 80
  • 10
while true
  • 816
  • 1
  • 11
  • 26

1 Answers1

2

DevTools tech writer here. It's not officially supported, but there are various ways you can unofficially extend DevTools:

Kayce Basques
  • 23,849
  • 11
  • 86
  • 120
  • thanks modified version seems to be a good option for me.but one question if i modified it can i use it in chrome or i have to use chromium ?iknow they quite same but i like if i can use it in normal chrome. – while true Apr 19 '18 at 00:09
  • hey kayce let's say i create a new tab in devtools.but then i need to list down all applied styles,overridden styles , is there a easy way to get all this in chrome api?or do i have to write my own functions for that? – while true Apr 19 '18 at 00:37