Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Last active August 29, 2015 13:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save niraj-shah/9554582 to your computer and use it in GitHub Desktop.
Leave a message for those pesky developers who like inspecting websites
var Util = {
is_webkit: function() {
return navigator.userAgent.indexOf("AppleWebKit") > -1;
},
message: function() {
if ( typeof console == "object" ) {
if ( Util.is_webkit() ) {
console.log( "%cHey! What are you looking under here for?\nDeveloped by Niraj Shah http://www.webniraj.com", "color: #359AD8; font-size: 18px; font-family: 'Trebuchet MS', Helvetica, sans-serif;" );
} else {
console.log( "Hey! What are you looking under here for?\nDeveloped by Niraj Shah http://www.webniraj.com" );
}
}
}
}
// call on page load
Util.message();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment