PatchBot/modules/UBlock.php
2020-01-21 10:01:32 +01:00

14 lines
372 B
PHP

<?php
class UBlock extends PatchBase {
function __construct() {
parent::__construct('Raymond Hill', 'uBlock Origin', 'https://addons.mozilla.org/de/firefox/addon/ublock-origin/');
}
function check() : bool {
if ($this->fetch('https://addons.mozilla.org/de/firefox/addon/ublock-origin/'))
return $this->parse('/"version":"([\d\.]+)"/');
return false;
}
}
?>