Update regex for Cookie AutoDelete and LocalCDN for Chrome

This commit is contained in:
Steffen Lange 2024-12-12 17:46:47 +01:00
parent cf61449b90
commit 77ec830cc6
2 changed files with 2 additions and 2 deletions

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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
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('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
return false; return false;
} }
} }