From 50b6b5725e3bf27bb547365c965fd8ae97b216f1 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Tue, 14 Jun 2022 17:41:34 +0200 Subject: [PATCH] Add Firefox Translations --- modules/FirefoxTranslations.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/FirefoxTranslations.php diff --git a/modules/FirefoxTranslations.php b/modules/FirefoxTranslations.php new file mode 100644 index 0000000..9f0e0b3 --- /dev/null +++ b/modules/FirefoxTranslations.php @@ -0,0 +1,15 @@ +patch->setBranch('for Firefox'); + } + function check() : bool { + if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/firefox-translations/')) + return $this->parse('/"version":"([\d\.a-z]+)"/'); + return false; + } +} + +?>