Add Floccus + UBlock for Chrome
This commit is contained in:
parent
2a3822ec41
commit
47af608db2
2 changed files with 30 additions and 0 deletions
15
modules/UBlockChrome.php
Normal file
15
modules/UBlockChrome.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue