console.profile = console.clear = function(){}
That's all you need write in the console to stop this annoyance. console.profile = console.clear = function(){}
That's all you need write in the console to stop this annoyance. 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 use `_console` instead of `console`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