Add Privacy Badger

This commit is contained in:
Steffen Lange 2021-01-14 10:02:23 +01:00
parent c1def8be6a
commit df7a3cbd38
2 changed files with 30 additions and 0 deletions

View 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;
}
}
?>

View file

@ -0,0 +1,15 @@
<?php
class PrivacyBadgerFF extends PatchBase {
function __construct() {
parent::__construct('Electronic Frontier Foundation', 'Privacy Badger', 'https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/');
$this->patch->setBranch('for Firefox');
}
function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/'))
return $this->parse('/"version":"([\d\.]+)"/');
return false;
}
}
?>