Add Privacy Badger
This commit is contained in:
parent
c1def8be6a
commit
df7a3cbd38
2 changed files with 30 additions and 0 deletions
15
modules/PrivacyBadgerChrome.php
Normal file
15
modules/PrivacyBadgerChrome.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class PrivacyBadgerChrome extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Electronic Frontier Foundation', 'Privacy Badger', 'https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp');
|
||||
$this->patch->setBranch('for Chrome');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp'))
|
||||
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue