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.
Chrome Inspector Detector
41–50 of 92 posts
Re: Chrome Inspector Detector
#42A 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: img.onclick="javascript:function(){alert('Don\'t steal!');return false}"
Re: Chrome Inspector Detector
#43Re: Chrome Inspector Detector
#44Re: Chrome Inspector Detector
#45Re: Chrome Inspector Detector
#46A 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: img.onclick="javascript:function(){alert('Don\'t steal!');return false}"
console.profile = console.profileEnd = function () {};Re: Chrome Inspector Detector
#47Defeated: javascript:clearTimeout(setTimeout(function(){}, 1) - 1);
But what if he starts using setInterval? A more global solution is to: Open the "sources" panel, click on "Event Listener Breakpoints", then click "set Timer" and just delete the lines where it is calling the detector function.
chrome.inspector.detector=function(){return{}};Re: Chrome Inspector Detector
#48Earlier 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.
[edit] https://code.google.com/p/chromium/issues/detail?id=223418
Re: Chrome Inspector Detector
#49How 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.
I actually read the Rails articles quite a bit just because I like to not limit what I do or know to a small subset, even if I do not actively use it. Software does not come to other platforms unless one ports it, after all :)
Disclaimer: not a RoR developer, but I do use Python.
Re: Chrome Inspector Detector
#50A 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: img.onclick="javascript:function(){alert('Don\'t steal!');return false}"
but then we could just ensure that this line gets called first console.profile = console.profileEnd = function () {};
var c = console
var l = console.log
var log = function(){ l.apply(c, arguments) }
Now they can't break the console from working with stuff like: console.log = function(){}