Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.