diff --git a/src/App.css b/src/App.css index 8baec69..36002c5 100644 --- a/src/App.css +++ b/src/App.css @@ -2,6 +2,15 @@ font-weight: 600; } +table { + width: 100%; + margin: 0 0 6px 0; +} + +tr { + margin: 3px 0; +} + .itemWrap { display: flex; align-items: center; diff --git a/src/App.jsx b/src/App.jsx index 4550684..d8d6149 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -36,7 +36,8 @@ const App = () => { updateDOM('timezone', Intl.DateTimeFormat().resolvedOptions().timeZone); updateDOM('cookies', navigator.cookieEnabled); updateDOM('java', navigator.javaEnabled()); - updateDOM('plugins', navigator.plugins); + updateDOM('dnt', navigator.doNotTrack ? 'true' : 'false'); + // updateDOM('plugins', navigator.plugins); updateDOM('platform', uaResult.platform.type); updateDOM('screenSize', `${window.screen.width}x${window.screen.height}`); @@ -44,39 +45,69 @@ const App = () => { navigator.getBattery().then((battery) => { updateDOM('batteryLevel', `${Math.round(battery.level * 100)}%`); - updateDOM('batteryStatus', `${battery.charging ? '' : 'not '} charging`); + updateDOM('batteryStatus', `${battery.charging ? '' : 'not'} charging`); }); updateDOM('memory', `${navigator.deviceMemory}GB`); updateDOM('cores', navigator.hardwareConcurrency); + const gl = document.createElement('canvas').getContext('webgl'); + const ext = gl.getExtension('WEBGL_debug_renderer_info'); + updateDOM('vendor', gl.getParameter(ext.UNMASKED_VENDOR_WEBGL)); + updateDOM('renderer', gl.getParameter(ext.UNMASKED_RENDERER_WEBGL)); }, []); return (
| IP address: | ++ + | +? | +
| Country: | +
+
+
+
+
+ {flag === true &&
+ |
+ ? | +
| Region: | ++ + | +? | +
| City: | ++ + | +? | +
| Zip: | ++ + | +? | +
| Provider: | ++ + | +? | +