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 (
Connection
-
- IP address:{' '} -
-
-
- Country:{' '} -
-
- {flag === true && } -
-
-
- Region:{' '} -
-
- City:{' '} -
-
- Zip:{' '} -
-
- Provider:{' '} -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IP address: +
+
?
Country: +
+
+
+ {flag === true && } +
+
+
?
Region: +
+
?
City: +
+
?
Zip: +
+
?
Provider: +
+
?
Software
Browser:{' '} @@ -102,9 +133,12 @@ const App = () => {
Java enabled:{' '}
-
- Plugins:{' '} +
+ DNT header enabled:{' '}
+ {/*
+ Plugins:{' '} +
*/}
Hardware
Platform:{' '} @@ -127,6 +161,12 @@ const App = () => {
# of CPU cores:{' '}
+
+ WebGL vendor:{' '} +
+
+ WebGL renderer:{' '} +
); }; diff --git a/src/popup.css b/src/popup.css index a67a776..47c5f34 100644 --- a/src/popup.css +++ b/src/popup.css @@ -6,7 +6,7 @@ body { color: var(--text); background-color: var(--background); - font-size: 14px; + font-size: 15px; line-height: 22px; - width: 300px; + width: 350px; } \ No newline at end of file