From 53cea337ba9e3293ea1f6868bfc75a3bfdc19184 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Fri, 16 Feb 2024 23:15:38 +0100 Subject: [PATCH] Update Chrome Extensions regex --- modules/BitwardenChrome.php | 2 +- modules/CookieAutoDeleteChrome.php | 2 +- modules/DecentraleyesChrome.php | 2 +- modules/FloccusChrome.php | 2 +- modules/LocalCDNChrome.php | 2 +- modules/PrivacyBadgerChrome.php | 2 +- modules/UBlockChrome.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/BitwardenChrome.php b/modules/BitwardenChrome.php index e47fa5a..1528618 100644 --- a/modules/BitwardenChrome.php +++ b/modules/BitwardenChrome.php @@ -7,7 +7,7 @@ class BitwardenChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } } diff --git a/modules/CookieAutoDeleteChrome.php b/modules/CookieAutoDeleteChrome.php index 6fd3905..208330a 100644 --- a/modules/CookieAutoDeleteChrome.php +++ b/modules/CookieAutoDeleteChrome.php @@ -7,7 +7,7 @@ class CookieAutoDeleteChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/cookie-autodelete/fhcgjolkccmbidfldomjliifgaodjagh')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } } diff --git a/modules/DecentraleyesChrome.php b/modules/DecentraleyesChrome.php index 650dfea..624f299 100644 --- a/modules/DecentraleyesChrome.php +++ b/modules/DecentraleyesChrome.php @@ -7,7 +7,7 @@ class DecentraleyesChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } } diff --git a/modules/FloccusChrome.php b/modules/FloccusChrome.php index 4273723..42d3cf4 100644 --- a/modules/FloccusChrome.php +++ b/modules/FloccusChrome.php @@ -7,7 +7,7 @@ class FloccusChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/floccus-bookmarks-sync/fnaicdffflnofjppbagibeoednhnbjhg')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } } diff --git a/modules/LocalCDNChrome.php b/modules/LocalCDNChrome.php index 8f4e6b4..126a45e 100644 --- a/modules/LocalCDNChrome.php +++ b/modules/LocalCDNChrome.php @@ -7,7 +7,7 @@ class LocalCDNChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/localcdn/njdfdhgcmkocbgbhcioffdbicglldapd')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } } diff --git a/modules/PrivacyBadgerChrome.php b/modules/PrivacyBadgerChrome.php index 17aba32..341a429 100644 --- a/modules/PrivacyBadgerChrome.php +++ b/modules/PrivacyBadgerChrome.php @@ -7,7 +7,7 @@ class PrivacyBadgerChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } } diff --git a/modules/UBlockChrome.php b/modules/UBlockChrome.php index 0e6a851..c220364 100644 --- a/modules/UBlockChrome.php +++ b/modules/UBlockChrome.php @@ -7,7 +7,7 @@ class UBlockChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm')) - return $this->parse('//'); + return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return false; } }