Customise the look of the Chrome web inspector

倖福魔咒の 提交于 2019-12-18 13:37:11

问题


I've grown tired of the multitude of issues I seem to hit on a daily basis with Firefox and I'm trying once again to switch to Chrome.

One of the things that frustrates me is the layout of the tabs in the inspector. In firebug they are all along the top so if I want the metrics of an item it's incredibly simple. In Chrome I'm forever scrolling up and down.

Is there anyway to change the way this works? All I want to do is change the layout to something a little similar to Firebug.

Cheers!


回答1:


The Chrome web inspector is just a web application, so is very customizable. You can download a copy of the devtools HTML/CSS/JS and tell Chrome to use it with a command line flag. Some resources for you:

  • Running your own devtools frontend
  • Customizing look and feel of elements tab
  • Related SO question: Chrome "Developer Tools" element - hide annoying yellow dimensions box
  • List of Chrome command line flags



回答2:


The devtools CSS is at chrome-devtools://devtools/devTools.css (copy and paste the address into the address bar).

Override the styles using Custom.css which lives at:

  • C:\Users\<user>\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets on Windows
  • ~/Library/Google/Chrome/Default/User StyleSheets on OS X



回答3:


Dev tools are just CSS/JavaScript so you can do whatever you want.

If you watch this video, Paul Irish shows how to run a build of Chrome and point to your own dev tools code. Kind of cool!



来源:https://stackoverflow.com/questions/7149450/customise-the-look-of-the-chrome-web-inspector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!