Adding Yume Wiki entries (+support for namespaces)

pull/227/head
Kevin Payravi 2023-07-16 23:41:11 -05:00
parent 3c8fd59251
commit 77eb439874
11 changed files with 140 additions and 3 deletions

View File

@ -227,6 +227,7 @@ async function getData() {
"destination": site.destination,
"destination_base_url": site.destination_base_url,
"destination_content_path": site.destination_content_path,
"destination_content_prefix": (site.destination_content_prefix ? site.destination_content_prefix : ""),
"destination_platform": site.destination_platform,
"destination_icon": site.destination_icon,
"lang": LANGS[i]
@ -303,7 +304,7 @@ async function main(eventInfo, eventName) {
let searchParams = '';
switch (site['destination_platform']) {
case 'mediawiki':
searchParams = 'Special:Search/' + article;
searchParams = 'Special:Search/' + site['destination_content_prefix'] + article;
break;
case 'doku':
searchParams = 'start?do=search&q=' + article;

View File

@ -43,6 +43,7 @@ async function getData() {
"destination": site.destination,
"destination_base_url": site.destination_base_url,
"destination_content_path": site.destination_content_path,
"destination_content_prefix": (site.destination_content_prefix ? site.destination_content_prefix : ""),
"destination_platform": site.destination_platform,
"destination_icon": site.destination_icon,
"lang": LANGS[i]
@ -383,7 +384,7 @@ function main(mutations = null, observer = null) {
let searchParams = '';
switch (site['destination_platform']) {
case 'mediawiki':
searchParams = 'Special:Search/' + article;
searchParams = 'Special:Search/' + site['destination_content_prefix'] + article;
break;
case 'doku':
searchParams = 'start?do=search&q=' + article;

View File

@ -47,6 +47,23 @@
"destination_platform": "mediawiki",
"destination_icon": "anothereden.png"
},
{
"id": "en-answeredprayers",
"origins_label": "Answered Prayers Fandom Wiki",
"origins": [
{
"origin": "Answered Prayers Fandom Wiki",
"origin_base_url": "answeredprayers.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Answered Prayers Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Answered_Prayers:",
"destination_platform": "mediawiki",
"destination_icon": "answeredprayerswiki.png"
},
{
"id": "en-arms",
"origins_label": "ARMS Fandom Wiki",
@ -191,6 +208,23 @@
"destination_platform": "mediawiki",
"destination_icon": "bluearchive.png"
},
{
"id": "en-braingirl",
"origins_label": "Braingirl Fandom Wiki",
"origins": [
{
"origin": "Braingirl Fandom Wiki",
"origin_base_url": "braingirl.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Braingirl Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Braingirl:",
"destination_platform": "mediawiki",
"destination_icon": "braingirlwiki.png"
},
{
"id": "en-brandonsanderson",
"origins_label": "Brandon Sanderson Fandom Wikis",
@ -228,6 +262,23 @@
"destination_platform": "mediawiki",
"destination_icon": "celeste.png"
},
{
"id": "en-cerasus",
"origins_label": "Cerasus Fandom Wiki",
"origins": [
{
"origin": "Cerasus Fandom Wiki",
"origin_base_url": "cerasus.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Cerasus Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Cerasus:",
"destination_platform": "mediawiki",
"destination_icon": "cerasuswiki.png"
},
{
"id": "en-chipschallenge",
"origins_label": "Chip's Challenge Fandom Wiki",
@ -420,6 +471,23 @@
"destination_platform": "mediawiki",
"destination_icon": "doomwiki.png"
},
{
"id": "en-dotflow",
"origins_label": "Dotflow Fandom Wiki",
"origins": [
{
"origin": "Dotflow Fandom Wiki",
"origin_base_url": "dotflow.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Dotflow Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Dotflow:",
"destination_platform": "mediawiki",
"destination_icon": "dotflowwiki.png"
},
{
"id": "en-dragalialost",
"origins_label": "Dragalia Lost Fandom Wiki",
@ -1548,6 +1616,23 @@
"destination_platform": "mediawiki",
"destination_icon": "ubfunkeyswiki.png"
},
{
"id": "en-unevendream",
"origins_label": "Uneven Dream Fandom Wiki",
"origins": [
{
"origin": "Uneven Dream Fandom Wiki",
"origin_base_url": "outotsuyume.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Uneven Dream Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Uneven_Dream:",
"destination_platform": "mediawiki",
"destination_icon": "unevendreamwiki.png"
},
{
"id": "en-vvvvvv",
"origins_label": "VVVVVV Fandom Wikis",
@ -1633,6 +1718,56 @@
"destination_platform": "mediawiki",
"destination_icon": "yugipedia.png"
},
{
"id": "en-yume2kki",
"origins_label": "Yume 2kki Fandom Wiki",
"origins": [
{
"origin": "Yume 2kki Fandom Wiki",
"origin_base_url": "yume2kki.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Yume 2kki Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Yume_2kki:",
"destination_platform": "mediawiki",
"destination_icon": "yume2kkiwiki.png"
},
{
"id": "en-yumenikki",
"origins_label": "Yume Nikki Fandom Wiki",
"origins": [
{
"origin": "Yume Nikki Fandom Wiki",
"origin_base_url": "yumenikki.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Yume Nikki Wiki",
"destination_base_url": "yume.wiki",
"destination_content_path": "/",
"destination_content_prefix": "Yume_Nikki:",
"destination_platform": "mediawiki",
"destination_icon": "yumenikkiwiki.png"
},
{
"id": "en-yumenikkifangames",
"origins_label": "Yume Nikki Fangames Fandom Wiki",
"origins": [
{
"origin": "Yume Nikki Fangames Fandom Wiki",
"origin_base_url": "yumenikkifg.fandom.com",
"origin_content_path": "/wiki/"
}
],
"destination": "Yume Nikki Fangames Wiki",
"destination_base_url": "ynfg.yume.wiki",
"destination_content_path": "/",
"destination_platform": "mediawiki",
"destination_icon": "yumenikkifanwiki.png"
},
{
"id": "en-zelda",
"origins_label": "Zelda Fandom Wiki",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
favicons/en/cerasuswiki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
favicons/en/dotflowwiki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB