Updated readme
This commit is contained in:
parent
0c97c210de
commit
ad90fa8771
3 changed files with 35 additions and 7 deletions
34
README.md
34
README.md
|
|
@ -20,15 +20,43 @@ If data tampering is detected then a red circle with an ‘x’ will be displaye
|
||||||
|
|
||||||
### Failed Navigator.prototype
|
### Failed Navigator.prototype
|
||||||
|
|
||||||
`Navigator.prototype.[type]` returns value if the data object was tampered with. Otherwise returns an error.
|
`Navigator.prototype[DataType]` returns a value if the data object was tampered with. Otherwise returns an error.
|
||||||
|
|
||||||
### Failed undefined properties
|
### Failed undefined properties
|
||||||
|
|
||||||
`Object.getOwnPropertyDescriptor(navigator, [type])` returns an object if the data object was tampered with. Otherwise returns ‘undefined’.
|
`Object.getOwnPropertyDescriptor(navigator, [DataType])` returns an object if the data object was tampered with. Otherwise returns ‘undefined’.
|
||||||
|
|
||||||
|
### Failed Navigator property value
|
||||||
|
|
||||||
|
`Object.getOwnPropertyDescriptor(Navigator.prototype, [DataType]).value` returns an error if the data object was tampered with. Otherwise returns ‘undefined’.
|
||||||
|
|
||||||
### Did not match web worker (\_\_\_)
|
### Did not match web worker (\_\_\_)
|
||||||
|
|
||||||
Value does not match the value found in the web worker [web workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers). The web worker value is in the brackets.
|
Value does not match the value found in a [web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers). The web worker value is in the brackets.
|
||||||
|
|
||||||
|
### Location data doesn't match system data
|
||||||
|
|
||||||
|
Occurs when the location data from ip address does not match your location data from your system (such as your timezone).
|
||||||
|
|
||||||
|
### VPN/proxy has been detected
|
||||||
|
|
||||||
|
Your ip address is known to be used by proxies or VPNs.
|
||||||
|
|
||||||
|
### Failed Date.prototype.setDate.toString()
|
||||||
|
|
||||||
|
`Failed Date.prototype.setDate.toString()` returns 'function setDate() { [native code] }' if the data object was NOT tampered with.
|
||||||
|
|
||||||
|
### Failed Screen.prototype
|
||||||
|
|
||||||
|
`Screen.prototype[DataType]` returns a value if the data object was tampered with. Otherwise returns an error.
|
||||||
|
|
||||||
|
### Avail width is greater than width
|
||||||
|
|
||||||
|
Happens when the avail width is greater than the normal width (which is impossible).
|
||||||
|
|
||||||
|
### Avail height is greater than height
|
||||||
|
|
||||||
|
Happens when the height width is greater than the normal height (which is impossible).
|
||||||
|
|
||||||
## Dev
|
## Dev
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ const checkNavigatorValue = (key) => {
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
const { value } = Object.getOwnPropertyDescriptor(Navigator.prototype, key);
|
const { value } = Object.getOwnPropertyDescriptor(Navigator.prototype, key);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return 'Failed Navigator value';
|
return 'Failed Navigator property value';
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ const checkScreenPrototype = (key) => {
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
const check = Screen.prototype[key];
|
const check = Screen.prototype[key];
|
||||||
return 'Failed Navigator.prototype';
|
return 'Failed Screen.prototype';
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
const check = '';
|
const check = '';
|
||||||
|
|
@ -104,14 +104,14 @@ const checkScreenPrototype = (key) => {
|
||||||
|
|
||||||
const checkWidth = () => {
|
const checkWidth = () => {
|
||||||
if (window.screen.availWidth > window.screen.width) {
|
if (window.screen.availWidth > window.screen.width) {
|
||||||
return 'Avail width is wider then width';
|
return 'Avail width is greater than width';
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkHeight = () => {
|
const checkHeight = () => {
|
||||||
if (window.screen.availHeight > window.screen.height) {
|
if (window.screen.availHeight > window.screen.height) {
|
||||||
return 'Avail height is wider then height';
|
return 'Avail height is greater than height';
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue