This ushers in a new era of annoying and pointless "This website prevents right clicks" popups.<p>Just the other day I said to my coworker everybody, by now, knew how to use firebug/inspector (he disagreed and, being in support, he does see more suffering than I do) - we were looking at a client site that had a <i>javascript obfuscation of the html source</i>.<p>It's like this grand battle stage of the worlds tiniest violins.
A developer could use this to kill all the DOM nodes on the page when the console was opened. This might be the next generation of:<p><pre><code> img.onclick="javascript:function(){alert('Don\'t steal!');return false}"</code></pre>
Thanks for reporting all of the issues.<p>I'll continue to improve and update <a href="https://github.com/adamschwartz/chrome-inspector-detector/issues" rel="nofollow">https://github.com/adamschwartz/chrome-inspector-detector/is...</a> with the issues reported here. Thanks.
Could be an intriguing way to detect other developers visiting the site and communicate with them. Last time I checked, the front page of <a href="https://vimeo.com" rel="nofollow">https://vimeo.com</a> was using the inspector console as a recruiting tool.
It's a nice demo and congratulation to Adam but I wonder if I m the only one that doesn't like that the browser allows this detection. I mean accessing the log is one thing but shouldn't this be this unreachable fro; the sandbox?
I was hoping it is doing kind of this detection <a href="http://homakov.blogspot.com/2013/03/pwning-your-privacy-in-all-browsers.html" rel="nofollow">http://homakov.blogspot.com/2013/03/pwning-your-privacy-in-a...</a><p>you simply used chrome api :)
On Canary it continually spams this on the console:<p><pre><code> Profile 'Profile 13' started. chrome.inspector-detector.js:16
Profile 'Profile 13' finished. chrome.inspector-detector.js:17
Console was cleared</code></pre>
Apologies if this is a silly question, but why is console.clear() needed for this to work?<p>EDIT: Oh, I get it, it must be housekeeping to clear the log messages generated by the profiler.
False. <a href="http://i.imgur.com/7keR7aL.png" rel="nofollow">http://i.imgur.com/7keR7aL.png</a> (Ubuntu 13.04, Plasma/KDE, KWin, Chrome 27.0.1448.0 dev. It says that no matter what I do...)