Add LocalCDN
This commit is contained in:
parent
501a066c0a
commit
4ea1ac492e
2 changed files with 30 additions and 0 deletions
15
modules/LocalCDNChrome.php
Normal file
15
modules/LocalCDNChrome.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class LocalCDNChrome extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('nobody', 'LocalCDN', 'https://www.localcdn.org/');
|
||||||
|
$this->patch->setBranch('for Chrome');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://chrome.google.com/webstore/detail/localcdn/njdfdhgcmkocbgbhcioffdbicglldapd'))
|
||||||
|
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
15
modules/LocalCDNFF.php
Normal file
15
modules/LocalCDNFF.php
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue