Add uBlock Origin
This commit is contained in:
parent
9397f6a758
commit
dbb6bfdf44
1 changed files with 14 additions and 0 deletions
14
modules/UBlock.php
Normal file
14
modules/UBlock.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class UBlock extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Raymond Hill', 'uBlcok Origin', 'https://github.com/gorhill/uBlock');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://addons.mozilla.org/de/firefox/addon/ublock-origin/'))
|
||||||
|
return $this->parse('/"version":"([\d\.]+)"/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue