Update Chrome Extensions regex

This commit is contained in:
Steffen Lange 2024-02-16 23:15:38 +01:00
parent 4dc2bb99b0
commit 53cea337ba
7 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ class BitwardenChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb')) if ($this->fetch('https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class CookieAutoDeleteChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/cookie-autodelete/fhcgjolkccmbidfldomjliifgaodjagh')) if ($this->fetch('https://chrome.google.com/webstore/detail/cookie-autodelete/fhcgjolkccmbidfldomjliifgaodjagh'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class DecentraleyesChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj')) if ($this->fetch('https://chrome.google.com/webstore/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class FloccusChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/floccus-bookmarks-sync/fnaicdffflnofjppbagibeoednhnbjhg')) if ($this->fetch('https://chrome.google.com/webstore/detail/floccus-bookmarks-sync/fnaicdffflnofjppbagibeoednhnbjhg'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class LocalCDNChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/localcdn/njdfdhgcmkocbgbhcioffdbicglldapd')) if ($this->fetch('https://chrome.google.com/webstore/detail/localcdn/njdfdhgcmkocbgbhcioffdbicglldapd'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class PrivacyBadgerChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp')) if ($this->fetch('https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class UBlockChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm')) if ($this->fetch('https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm'))
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/'); return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false; return false;
} }
} }