Add LanguageToolFF

This commit is contained in:
Steffen Lange 2024-02-20 15:37:01 +01:00
parent 6ff66f81ec
commit 982829883b
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<?php
class LanguageToolChrome extends PatchBase {
function __construct() {
parent::__construct('LanguageTooler GmbH', 'Grammar and Spell Checker - LanguageTool', 'https://chromewebstore.google.com/detail/rechtschreibpr%C3%BCfung-%E2%80%93-lan/oldceeleldhonbafppcapldpdifcinji');
$this->patch->setBranch('for Chrome');
}
function check() : bool {
if ($this->fetch('https://chromewebstore.google.com/detail/rechtschreibpr%C3%BCfung-%E2%80%93-lan/oldceeleldhonbafppcapldpdifcinji'))
return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return false;
}
}
?>

View file

@ -0,0 +1,15 @@
<?php
class LanguageToolFF extends PatchBase {
function __construct() {
parent::__construct('LanguageTooler GmbH', 'Grammar and Spell Checker - LanguageTool', 'https://addons.mozilla.org/en-US/firefox/addon/languagetool/');
$this->patch->setBranch('for Firefox');
}
function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/languagetool/'))
return $this->parse('/"version":"([\d\.]+)"/');
return false;
}
}
?>