Add LocalCDN

This commit is contained in:
Steffen Lange 2021-06-09 11:54:46 +02:00
parent 501a066c0a
commit 4ea1ac492e
2 changed files with 30 additions and 0 deletions

15
modules/LocalCDNFF.php Normal file
View file

@ -0,0 +1,15 @@
<?php
class LocalCDNFF extends PatchBase {
function __construct() {
parent::__construct('nobody', 'LocalCDN', 'https://www.localcdn.org/');
$this->patch->setBranch('for Firefox');
}
function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/localcdn-fork-of-decentraleyes/'))
return $this->parse('/"version":"([\d\.]+)"/');
return false;
}
}
?>