Skip to content

Instantly share code, notes, and snippets.

@josemmo
Created March 28, 2018 08:13
Show Gist options
  • Save josemmo/4644d6baa8bad6b26d0a80196f9a2698 to your computer and use it in GitHub Desktop.
Save josemmo/4644d6baa8bad6b26d0a80196f9a2698 to your computer and use it in GitHub Desktop.
// Definimos un objeto donde guardar los datos
var fp_sources = {};
// Ahora ya podemos guardar los datos que hemos obtenido
fp_sources.metadata = {
appCodeName: navigator.appCodeName,
appName: navigator.appName,
cookieEnabled: navigator.cookieEnabled,
doNotTrack: navigator.doNotTrack,
defaultLanguage: navigator.language,
languages: navigator.languages,
maxTouchPoints: navigator.maxTouchPoints,
platform: navigator.platform,
product: navigator.product,
vendor: navigator.vendor,
screen: {
width: screen.width,
height: screen.height,
colorDepth: screen.colorDepth,
pixelDepth: screen.pixelDepth,
orientation: screen.orientation.angle
},
timezone: new Date().getTimezoneOffset()
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment