Last active
August 29, 2015 13:57
-
-
Save niraj-shah/9554582 to your computer and use it in GitHub Desktop.
Leave a message for those pesky developers who like inspecting websites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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