Add Bitwarden
This commit is contained in:
parent
0dc87d962a
commit
0e75c9b37b
2 changed files with 30 additions and 0 deletions
15
modules/BitwardenChrome.php
Normal file
15
modules/BitwardenChrome.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class BitwardenChrome extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Bitwarden Inc.', 'Bitwarden', 'https://bitwarden.com/download/');
|
||||
$this->patch->setBranch('for Chrome');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb'))
|
||||
return $this->parse('/<meta itemprop="version" content="([\d\.]+)"\/>/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
15
modules/BitwardenFF.php
Normal file
15
modules/BitwardenFF.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class BitwardenFF extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Bitwarden Inc.', 'Bitwarden', 'https://bitwarden.com/download/');
|
||||
$this->patch->setBranch('for Firefox');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/'))
|
||||
return $this->parse('/"version":"([\d\.]+)"/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue