Skip to content

Instantly share code, notes, and snippets.

@ggamel
Forked from minamarkham/emoji.js
Created October 28, 2015 21:42
Show Gist options
  • Save ggamel/4613a9a7be691ebf5745 to your computer and use it in GitHub Desktop.
Save ggamel/4613a9a7be691ebf5745 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