adamschwartz / chrome-inspector-detector

Detect if the Chrome Inspector is open or closed.
325 stars 17 forks source link

Collecting use cases #11

Open paulirish opened 11 years ago

paulirish commented 11 years ago

For everyone using or considering this detector script, can you comment on how you use it / plan to use it?

Chrome is considering removing the detection technique used at the heart of this script and we want to understand how it's used in the wild. (Meanwhile, there are chrome extension APIs to detect when devtools opens/closes)

Thank you!

adamschwartz commented 11 years ago

I use this primarily fot two purposes right now.

  1. When developing a game or visualization with a timer loop, sometimes I set the loop to pause when the devtools are open. This makes it easier to inspector game objects since the Elements panel won't be going crazy trying to keep up with all of the live DOM changes.
  2. In the design phase of a project, sometimes I overlay a grid (similar to http://css-tricks.com/examples/GridControl) when the devtools are open.