14 lines
375 B
PHP
14 lines
375 B
PHP
<?php
|
|
|
|
class UBlock extends PatchBase {
|
|
function __construct() {
|
|
parent::__construct('Raymond Hill', 'uBlock Origin', 'https://addons.mozilla.org/en-US/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;
|
|
}
|
|
}
|
|
|
|
?>
|