Code Monkey home page Code Monkey logo

chrome-inspector-detector's People

Contributors

adamschwartz avatar thirtyseven avatar zackbloom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chrome-inspector-detector's Issues

Collecting use cases

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!

Docked detection still seems to fail

First of all, awesome job! :) Thanks for creating this.

The demo page always tells me that the devtools are docked (when they are open). I didn't do thorough debugging but here are the values when paused at the if() condition inside height() test:

window.outerHeight
1000

zoom
1

window.outerHeight
1000

window.innerHeight
938

window.chrome.inspector._windowHeightOffset
-938

IE support

It would be nice to figure out how to do this in IE too. One way to tell, is that window.console is undefined until the dev tools have been opened. However it stays defined, after being closed, so I have no idea, how to detect closing. Perhaps have a look at the HTML code school source, mentioned on SO.

I've been writing some HTML5 based quizzes - this is a good way to tell if someone is trying to cheat. Thanks for the great idea.

Docked detection generating false positives

The great folks on HN have been finding a number of false positives generated by the window check.

window.outerHeight > (window.innerHeight + window.chrome.inspector._windowHeightOffset) || window.outerWidth > window.innerWidt
  • Downloads bar being open
  • Browser zoomed
  • Window state (unconfirmed)

Does not detect docking status in Chrome Canary

Not sure if you're already aware of it (or don't really care because it's Canary), but Canary's inspector is always detected as being in a "docked" state regardless of whether it is docked or undocked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.