Skip to content

Instantly share code, notes, and snippets.

@isakb
Created February 13, 2014 23:48
Show Gist options
  • Select an option

  • Save isakb/8986431 to your computer and use it in GitHub Desktop.

Select an option

Save isakb/8986431 to your computer and use it in GitHub Desktop.
Console override, doge_js style. For Chrome and Firebug.
<script>
(function(){
console.log('%c very console',
'color: blue; font-size: 24px; font-family: "Comic Sans MS"');
console.log('%c such script',
'color: green; font-size: 18px; font-family: "Comic Sans MS"');
Object.defineProperty(console, '_commandLineAPI', {
get: function () {
throw "amaze";
}
});
})();
</script>
<h1>Hello. Check your console.</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment