Add Minecraft Wiki (ZH) (#328)

pull/337/head
SkyEye_FAST 2023-11-11 03:45:15 +08:00 committed by GitHub
parent 63ef14ceea
commit ea535c22b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 4 deletions

18
data/sitesZH.json Normal file
View File

@ -0,0 +1,18 @@
[
{
"id": "zh-minecraft",
"origins_label": "Minecraft Fandom Wiki",
"origins": [
{
"origin": "Minecraft Fandom Wiki",
"origin_base_url": "minecraft.fandom.com/zh",
"origin_content_path": "/wiki/"
}
],
"destination": "Minecraft Wiki",
"destination_base_url": "zh.minecraft.wiki",
"destination_content_path": "/w/",
"destination_platform": "mediawiki",
"destination_icon": "minecraftwiki.png"
}
]

View File

@ -47,7 +47,8 @@
"data/sitesFR.json", "data/sitesFR.json",
"data/sitesIT.json", "data/sitesIT.json",
"data/sitesPL.json", "data/sitesPL.json",
"data/sitesTOK.json" "data/sitesTOK.json",
"data/sitesZH.json"
], ],
"background": { "background": {
"scripts": [ "scripts": [

View File

@ -35,7 +35,8 @@
"data/sitesFR.json", "data/sitesFR.json",
"data/sitesIT.json", "data/sitesIT.json",
"data/sitesPL.json", "data/sitesPL.json",
"data/sitesTOK.json" "data/sitesTOK.json",
"data/sitesZH.json"
], ],
"matches": [ "matches": [
"https://*.fandom.com/*", "https://*.fandom.com/*",

View File

@ -594,6 +594,7 @@
<option value="FR">Français (FR)</option> <option value="FR">Français (FR)</option>
<option value="IT">Italiano (IT)</option> <option value="IT">Italiano (IT)</option>
<option value="PL">Polski (PL)</option> <option value="PL">Polski (PL)</option>
<option value="ZH">中文 (ZH)</option>
<option value="TOK">Toki Pona (TOK)</option> <option value="TOK">Toki Pona (TOK)</option>
</select> </select>
</div> </div>