15 lines
505 B
PHP
15 lines
505 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('/<meta itemprop="version" content="([\d\.]+)"\/>/');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
?>
|