Live data from Hacker News

Chrome Inspector Detector

adamschwartz.co

61–70 of 92 posts

Re: Chrome Inspector Detector

#63

Earlier quoted context omitted.

It does, but you usually don't want to profile other dev's pages; here is another solution that doesn't make profiling unusable: chrome.inspector.detector = function(){ return {open:false}} But a more aggresive solution is this one: console = undefined; var iframe = document.body.appendChild(document.createElement("iframe")); iframe.style.display = "none"; window._console = iframe.contentWindow.console And you can us…

It may not be clear, but the main use case for this app is not to harm someone, but to aid in development. Perhaps you're making a game and want to pause it or show wireframes when toggling the inspector. Or perhaps you're a designer and you want to show a grid layout whenever you're inspecting elements.

It kind of gets in the way of development though when the profiler window gets clogged up with the probes... maybe the detector could clean up after itself?

Re: Chrome Inspector Detector

#64

Earlier quoted context omitted.

It may not be clear, but the main use case for this app is not to harm someone, but to aid in development. Perhaps you're making a game and want to pause it or show wireframes when toggling the inspector. Or perhaps you're a designer and you want to show a grid layout whenever you're inspecting elements.

It kind of gets in the way of development though when the profiler window gets clogged up with the probes... maybe the detector could clean up after itself?

We agree. We're actively looking into other ways to do the detection. For example, when the inspector is docked, we might not need to run the profiler check. We'll continue to update as we find better solutions.

Re: Chrome Inspector Detector

#67
post #30

I don't get it?

Perhaps you're making a javascript game and want to pause it or show wireframes when toggling the inspector. Things like that...

Good idea. You should package this as a Chrome extension then. No reason why I should run your code in my app, even in debug mode, when it can run outside and sandboxed.

Re: Chrome Inspector Detector

#70
post #25

How do I press ⌘ on Linux?

It's becoming increasing clear that on HN you're a second class citizen if you don't use Chrome on a Mac and develop on RoR.

This is shit, to say the least. Oh wait, you might have meant second class citizen in terms of money? May be, I don't care in that case.
Post reply on HN