Add LanguageToolFF
This commit is contained in:
parent
6ff66f81ec
commit
982829883b
2 changed files with 30 additions and 0 deletions
15
modules/LanguageToolChrome.php
Normal file
15
modules/LanguageToolChrome.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
15
modules/LanguageToolFF.php
Normal file
15
modules/LanguageToolFF.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue