Skip to content

Instantly share code, notes, and snippets.

@natbusa
Last active August 29, 2015 14:02
Show Gist options
  • Save natbusa/af7750b0df1735b2c3eb to your computer and use it in GitHub Desktop.
Save natbusa/af7750b0df1735b2c3eb to your computer and use it in GitHub Desktop.
Get all you can from the browser
var all = {
//screen
'screen.width' : screen.width,
'screen.height' : screen.height,
'screen.availWidth' : screen.availWidth,
'screen.availHeight' : screen.availHeight,
'screen.colorDepth' : screen.colorDepth,
'screen.pixelDepth' : screen.pixelDepth,
//location
'location.href' : location.href,
'location.hostname' : location.hostname,
'location.pathname' : location.pathname,
'location.protocol' : location.protocol,
//navigator
'navigator.appCodeName' : navigator.appCodeName,
'navigator.appName' : navigator.appName,
'navigator.appVersion' : navigator.appVersion,
'navigator.cookieEnabled': navigator.cookieEnabled,
'navigator.doNotTrack' : navigator.doNotTrack,
'navigator.onLine' : navigator.onLine,
'navigator.platform' : navigator.platform,
'navigator.product' : navigator.product,
'navigator.productSub' : navigator.productSub,
'navigator.userAgent' : navigator.userAgent,
'navigator.vendor' : navigator.vendor,
'navigator.vendorSub' : navigator.vendorSub
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment