PatchBot/modules/UBlockFF.php

15 lines
422 B
PHP

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