Add Decentraleyes
This commit is contained in:
parent
df7a3cbd38
commit
6493b97182
2 changed files with 30 additions and 0 deletions
15
modules/DecentraleyesChrome.php
Normal file
15
modules/DecentraleyesChrome.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class DecentraleyesChrome extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Thomas Rientjes', 'Decentraleyes', 'https://chrome.google.com/webstore/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj');
|
||||||
|
$this->patch->setBranch('for Chrome');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://chrome.google.com/webstore/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj'))
|
||||||
|
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
15
modules/DecentraleyesFF.php
Normal file
15
modules/DecentraleyesFF.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class DecentraleyesFF extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Thomas Rientjes', 'Decentraleyes', 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/');
|
||||||
|
$this->patch->setBranch('for Firefox');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/'))
|
||||||
|
return $this->parse('/"version":"([\d\.]+)"/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue