Skip to content

Instantly share code, notes, and snippets.

@minamarkham
Created October 28, 2015 18:17
Show Gist options
  • Save minamarkham/71449a8f74827c41ce02 to your computer and use it in GitHub Desktop.
Save minamarkham/71449a8f74827c41ce02 to your computer and use it in GitHub Desktop.
Add emojis to URL
function emoji() {
if (navigator.userAgent.indexOf('Mac OS X') != -1) {
window.location.hash = "💋";
}
};
emoji();
// only works on Macs 😞
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment