diff --git a/frontend/src/components/DateBlock.js b/frontend/src/components/DateBlock.js
new file mode 100644
index 0000000..aff261a
--- /dev/null
+++ b/frontend/src/components/DateBlock.js
@@ -0,0 +1,16 @@
+import ScanBlock from './ScanBlock';
+import Table from './Table';
+import { getDate } from './main';
+
+const DateBlock = () => (
+
+ Date
+
+
+ Explanation: JavaScript can be used to find information about your
+ hardware. This information can be used to create a fingerprint.
+
+
+);
+
+export default DateBlock;
diff --git a/frontend/src/components/ScanBlocks.js b/frontend/src/components/ScanBlocks.js
index 9d46739..15d2e6b 100644
--- a/frontend/src/components/ScanBlocks.js
+++ b/frontend/src/components/ScanBlocks.js
@@ -1,5 +1,6 @@
/* eslint-disable no-unused-vars */
import UserAgentBlock from './UserAgentBlock';
+import DateBlock from './DateBlock';
import OtherBlock from './OtherBlock';
import NavigatorBlock from './NavigatorBlock';
import ScreenBlock from './ScreenBlock';
@@ -13,12 +14,14 @@ import FiltersBlock from './FiltersBlock';
const ScanBlocks = () => (
<>
-
-
-
-
+
+
+
+
+
+
{/*
diff --git a/frontend/src/components/UserAgentBlock.js b/frontend/src/components/UserAgentBlock.js
index 707ca78..cb954c7 100644
--- a/frontend/src/components/UserAgentBlock.js
+++ b/frontend/src/components/UserAgentBlock.js
@@ -7,8 +7,8 @@ import {
checkNavigatorProperties,
checkWebWorker,
checkScreenProperties,
- getUserAgentData,
} from './main';
+import { ReactComponent as CheckCircle } from '../images/checkCircle.svg';
const UserAgentBlock = () => {
const [firstRender, setfirstRender] = useState(true);
@@ -37,12 +37,18 @@ const UserAgentBlock = () => {
| Browser |
{userAgent.browser.name} |
+
+
+ |
| Browser version |
{userAgent.browser.version} |
+
+
+ |
@@ -51,12 +57,18 @@ const UserAgentBlock = () => {
{userAgent.os.name} {userAgent.os.versionName}
|
+
+
+ |
| OS version |
{userAgent.os.version} |
+
+
+ |
@@ -65,12 +77,18 @@ const UserAgentBlock = () => {
{userAgent.engine.name} {userAgent.engine.version}
|
+
+
+ |
| Platform type |
{userAgent.platform.type} |
+
+
+ |
diff --git a/frontend/src/components/main.js b/frontend/src/components/main.js
index 1466fb5..96aabeb 100644
--- a/frontend/src/components/main.js
+++ b/frontend/src/components/main.js
@@ -9,6 +9,7 @@ export {
getScreen,
checkScreenProperties,
detectTor,
+ getDate,
};
const getDeviceMemory = () => ({
@@ -278,6 +279,36 @@ const getScreen = () => [
getColorDepth(),
];
+const getDateNow = () => ({
+ key: 'date',
+ title: 'Date',
+ value: Date.now(),
+ issues: [],
+});
+
+const getCalendar = () => ({
+ key: 'calendar',
+ title: 'Calendar',
+ value: Intl.DateTimeFormat().resolvedOptions().calendar,
+ issues: [],
+});
+
+const getTimezone = () => ({
+ key: 'timezone',
+ title: 'Timezone',
+ value: Intl.DateTimeFormat().resolvedOptions().timeZone,
+ issues: [],
+});
+
+const getTimezoneOffset = () => ({
+ key: 'timezoneOffset',
+ title: 'Timezone offset',
+ value: new Date().getTimezoneOffset(),
+ issues: [],
+});
+
+const getDate = () => [getCalendar(), getTimezone(), getTimezoneOffset()];
+
const detectTor = () => {
const date = new Date();
if (