Skip to content

Instantly share code, notes, and snippets.

@nikolahellatrigger
Created October 5, 2023 03:09
Show Gist options
  • Save nikolahellatrigger/ea00832b010c0db8f0a0d5ca0d467072 to your computer and use it in GitHub Desktop.
Save nikolahellatrigger/ea00832b010c0db8f0a0d5ca0d467072 to your computer and use it in GitHub Desktop.
107.js
GA = z('5de', function (A) {
A('f99', [
window.screen.width,
window.screen.height,
window.screen.availWidth,
window.screen.availHeight,
window.screen.colorDepth,
window.screen.pixelDepth,
!!document.createEvent('TouchEvent') && ontouchstart in window,
navigator.maxTouchPoints,
window.devicePixelRatio,
window.outerWidth,
window.outerHeight,
matchMedia(
'(device-width: '.concat(window.screen.availWidth, 'px) and (device-height: ').concat(window.screen.height, 'px)')
).matches,
matchMedia('(-webkit-device-pixel-ratio: '.concat(1, ')')).matches,
matchMedia('(resolution: '.concat(1, 'dppx)')).matches,
matchMedia('(-moz-device-pixel-ratio: '.concat(1, ')')).matches,
])
})
// output:
/*
[
3440,
1440,
3440,
1392,
24,
24,
false,
0,
1,
1829,
1399,
true,
true,
true,
false
]
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment