Defeated: javascript:clearTimeout(setTimeout(function(){}, 1) - 1);
Chrome Inspector Detector
31–40 of 92 posts
Re: Chrome Inspector Detector
#32Apologies if this is a silly question, but why is console.clear() needed for this to work? EDIT: Oh, I get it, it must be housekeeping to clear the log messages generated by the profiler.
Re: Chrome Inspector Detector
#33Earlier quoted context omitted.
Does that make profiling unusable?
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…
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.
Re: Chrome Inspector Detector
#34Oh, the evil things I could do with this to coworkers who try to debug my Javascript code. Oh, the evil things I could do...
Re: Chrome Inspector Detector
#35How do I press ⌘ on Linux?
Re: Chrome Inspector Detector
#36I don't get it?
Re: Chrome Inspector Detector
#37Oh, the evil things I could do with this to coworkers who try to debug my Javascript code. Oh, the evil things I could do...
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.
Re: Chrome Inspector Detector
#38How 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.
Re: Chrome Inspector Detector
#39 img.onclick="javascript:function(){alert('Don\'t steal!');return false}"Re: Chrome Inspector Detector
#40Earlier 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.