15 lines
492 B
PHP
15 lines
492 B
PHP
<?php
|
|
|
|
class UBlockChrome extends PatchBase {
|
|
function __construct() {
|
|
parent::__construct('Raymond Hill', 'uBlock Origin', 'https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm');
|
|
$this->patch->setBranch('for Chrome');
|
|
}
|
|
function check() : bool {
|
|
if ($this->fetch('https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm'))
|
|
return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
?>
|