Update regex for Chrome extensions

This commit is contained in:
Steffen Lange 2024-12-13 13:41:59 +01:00
parent 99f86e6e15
commit aeb0e4289d
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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class IStillDontCareAboutCookiesChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chromewebstore.google.com/detail/i-still-dont-care-about-c/edibdbjcniadpccecjdfdjjppcpchdlm')) if ($this->fetch('https://chromewebstore.google.com/detail/i-still-dont-care-about-c/edibdbjcniadpccecjdfdjjppcpchdlm'))
return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
return false; return false;
} }
} }

View file

@ -7,7 +7,7 @@ class LanguageToolChrome extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://chromewebstore.google.com/detail/rechtschreibpr%C3%BCfung-%E2%80%93-lan/oldceeleldhonbafppcapldpdifcinji')) if ($this->fetch('https://chromewebstore.google.com/detail/rechtschreibpr%C3%BCfung-%E2%80%93-lan/oldceeleldhonbafppcapldpdifcinji'))
return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
return false; return false;
} }
} }