diff --git a/modules/PrivacyBadgerChrome.php b/modules/PrivacyBadgerChrome.php new file mode 100644 index 0000000..17aba32 --- /dev/null +++ b/modules/PrivacyBadgerChrome.php @@ -0,0 +1,15 @@ +patch->setBranch('for Chrome'); + } + function check() : bool { + if ($this->fetch('https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp')) + return $this->parse('//'); + return false; + } +} + +?> diff --git a/modules/PrivacyBadgerFF.php b/modules/PrivacyBadgerFF.php new file mode 100644 index 0000000..dad1c27 --- /dev/null +++ b/modules/PrivacyBadgerFF.php @@ -0,0 +1,15 @@ +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; + } +} + +?>