Skip to content

Instantly share code, notes, and snippets.

@c3ry5
Created January 18, 2019 10:18
Show Gist options
  • Save c3ry5/4f3ce4a342fae04453ea4c28966733bd to your computer and use it in GitHub Desktop.
Save c3ry5/4f3ce4a342fae04453ea4c28966733bd to your computer and use it in GitHub Desktop.
var guid = function() {
var nav = window.navigator;
var screen = window.screen;
var guid = nav.mimeTypes.length;
guid += nav.userAgent.replace(/\D+/g, '');
guid += nav.plugins.length;
guid += screen.height || '';
guid += screen.width || '';
guid += screen.pixelDepth || '';
return guid;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment