How to view css stylesheet injected by a Google Chrome extension using dev tools?

后端 未结 3 1374
粉色の甜心
粉色の甜心 2021-02-18 19:00

I\'m injecting a css file from my chrome extension using the manifest.json (full source):

  \"content_scripts\": [
    {
      \"matches\": [
        \"http://*/         


        
3条回答
  •  有刺的猬
    2021-02-18 19:27

    Looks like there's no way to do this if you inject the CSS via content_scripts. I filed a bug here: https://crbug.com/800070

    When the extension is in your control, Paul Irish suggests using this code pattern in order to make your styles inspectable: https://github.com/lateral/chrome-extension-blogpost/compare/master...paulirish:master

    For other people's extensions, as far as I can tell there's no way to view the source code of the injected stylesheets in DevTools, if you go the content_scripts route.

提交回复
热议问题