From a15e62964cae8087023b0c07eb14a031e0188dcf Mon Sep 17 00:00:00 2001 From: z0ccc Date: Thu, 2 Jun 2022 22:32:05 -0400 Subject: [PATCH] Read me update --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index c565a99..a9dc392 100755 --- a/README.md +++ b/README.md @@ -75,6 +75,42 @@ return false; return false; ``` +### Failed object.getOwnPropertyDescriptor(Navigator.prototype, key).value + +``` + if ( + Object.getOwnPropertyDescriptor(Navigator.prototype, key).value !== + undefined + ) { + return true; + } + return false; +``` + +### Failed Failed Navigator.prototype[key] + +``` + try { + const check = Navigator.prototype[key]; + return true; + } catch (err) { + return false; + } +``` + +### Failed navigator.geolocation.getCurrentPosition.toString().includes('[native code]') + +``` + if ( + !navigator.geolocation.getCurrentPosition + .toString() + .includes('[native code]') + ) { + return true; + } + return false; +``` + ## Screenshots ![Screenshot of extension popup](https://raw.githubusercontent.com/z0ccc/Vytal/extension/promo/screenshot-1.png)