Adding 15 more wikis + support for Polski

pull/91/head
Kevin Payravi 2023-02-10 02:12:37 -06:00
parent 67b12236be
commit 05c04175b9
21 changed files with 187 additions and 19 deletions

View File

@ -74,7 +74,7 @@ function redirectToBreezeWiki(storage, eventInfo, url) {
// Load website data.
async function getData() {
const LANGS = ["DE", "EN", "ES", "IT"];
const LANGS = ["DE", "EN", "ES", "IT", "PL"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

View File

@ -25,7 +25,7 @@ function addLocationObserver(callback) {
// Load website data
async function getData() {
const LANGS = ["DE", "EN", "ES", "IT"];
const LANGS = ["DE", "EN", "ES", "IT", "PL"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

View File

@ -32,6 +32,28 @@
"destination_platform": "mediawiki",
"destination_icon": "arms.png"
},
{
"id": "en-banjokazooie",
"origin": "Banjo-Kazooie Fandom Wiki",
"origin_base_url": "banjokazooie.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Jiggywikki",
"destination_base_url": "banjokazooiewiki.com",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "jiggywikki.png"
},
{
"id": "en-bionicle",
"origin": "Bionicle Fandom Wiki",
"origin_base_url": "bionicle.fandom.com",
"origin_content_path": "/wiki/",
"destination": "BIONICLEsector01",
"destination_base_url": "biosector01.com",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "biosector01.png"
},
{
"id": "en-blazblue",
"origin": "BlazBlue Fandom Wiki",
@ -43,6 +65,17 @@
"destination_platform": "mediawiki",
"destination_icon": "blazblue.png"
},
{
"id": "en-bluearchive",
"origin": "Blue Archive Fandom Wiki",
"origin_base_url": "bluearchive.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Blue Archive Wiki",
"destination_base_url": "bluearchive.wiki",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "bluearchive.png"
},
{
"id": "en-chrono",
"origin": "Chrono Fandom Wiki",
@ -54,6 +87,17 @@
"destination_platform": "mediawiki",
"destination_icon": "chrono.png"
},
{
"id": "en-criticalrole",
"origin": "Critical Role Fandom Wiki",
"origin_base_url": "criticalrole.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Critical Role Wiki",
"destination_base_url": "criticalrole.miraheze.org",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "criticalrole.png"
},
{
"id": "en-detectiveconan",
"origin": "Detective Conan Fandom Wiki",
@ -76,6 +120,17 @@
"destination_platform": "mediawiki",
"destination_icon": "wikimon.png"
},
{
"id": "en-doom",
"origin": "Doom Fandom Wiki",
"origin_base_url": "doom.fandom.com",
"origin_content_path": "/wiki/",
"destination": "The Doom Wiki",
"destination_base_url": "doomwiki.org",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "doomwiki.png"
},
{
"id": "en-dragalialost",
"origin": "Dragalia Lost Fandom Wiki",
@ -98,6 +153,17 @@
"destination_platform": "mediawiki",
"destination_icon": "wapopedia.png"
},
{
"id": "en-earthbound",
"origin": "EarthBound Fandom Wiki",
"origin_base_url": "earthbound.fandom.com",
"origin_content_path": "/wiki/",
"destination": "WikiBound",
"destination_base_url": "wikibound.info",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "wikibound.png"
},
{
"id": "en-elderscrolls",
"origin": "Elder Scrolls Fandom Wiki",
@ -131,6 +197,17 @@
"destination_platform": "mediawiki",
"destination_icon": "fallout.png"
},
{
"id": "en-falloutarchive",
"origin": "Fallout Fandom Wiki (Archived)",
"origin_base_url": "fallout-archive.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Independent Fallout Wiki",
"destination_base_url": "fallout.wiki",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "fallout.png"
},
{
"id": "en-fireemblem",
"origin": "Fire Emblem Fandom Wiki",
@ -142,6 +219,17 @@
"destination_platform": "mediawiki",
"destination_icon": "fireemblem.png"
},
{
"id": "en-friendsatthetable",
"origin": "Friends at the Table Fandom Wiki",
"origin_base_url": "friendsatthetable.fandom.com",
"origin_content_path": "/wiki/",
"destination": "FatTWiki",
"destination_base_url": "fatt.wiki",
"destination_content_path": "/view/",
"destination_platform": "mediawiki",
"destination_icon": "friendsatthetable.png"
},
{
"id": "en-fzero",
"origin": "F-Zero Fandom Wiki",
@ -153,6 +241,17 @@
"destination_platform": "mediawiki",
"destination_icon": "fzero.png"
},
{
"id": "en-godzilla",
"origin": "Godzilla Fandom Wiki",
"origin_base_url": "godzilla.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Wikizilla",
"destination_base_url": "wikizilla.org",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "wikizilla.png"
},
{
"id": "en-goldensun",
"origin": "Golden Sun Fandom Wiki",
@ -165,7 +264,7 @@
"destination_icon": "goldensun.png"
},
{
"id": "en-half-life",
"id": "en-halflife",
"origin": "Half-Life & Portal Fandom Wiki",
"origin_base_url": "half-life.fandom.com",
"origin_content_path": "/wiki/",
@ -252,6 +351,17 @@
"destination_platform": "mediawiki",
"destination_icon": "supermariowiki.png"
},
{
"id": "en-micronations",
"origin": "MicroNations Fandom Wiki",
"origin_base_url": "micronations.fandom.com",
"origin_content_path": "/wiki/",
"destination": "MicroWiki",
"destination_base_url": "micronations.wiki",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "microwiki.png"
},
{
"id": "en-mrlovequeenschoice",
"origin": "Mr. Love: Queen's Choice Fandom Wiki",
@ -263,6 +373,17 @@
"destination_platform": "mediawiki",
"destination_icon": "mrlove.png"
},
{
"id": "en-oldschoolrunescape",
"origin": "Old School Runescape Fandom Wiki",
"origin_base_url": "oldschoolrunescape.fandom.com",
"origin_content_path": "/wiki/",
"destination": "OSRS Wiki",
"destination_base_url": "oldschool.runescape.wiki",
"destination_content_path": "/w/",
"destination_platform": "mediawiki",
"destination_icon": "oldschoolrunescape.png"
},
{
"id": "en-pathofexile",
"origin": "Path of Exile Fandom Wiki",
@ -307,17 +428,39 @@
"destination_platform": "mediawiki",
"destination_icon": "rctwiki.png"
},
{
"id": "en-rayman",
"origin": "Rayman Fandom Wiki",
"origin_base_url": "rayman.fandom.com",
"origin_content_path": "/wiki/",
"destination": "RayWiki",
"destination_base_url": "raymanpc.com",
"destination_content_path": "/wiki/en/",
"destination_platform": "mediawiki",
"destination_icon": "rayman.png"
},
{
"id": "en-runescape",
"origin": "Runescape Fandom Wiki",
"origin": "RuneScape Fandom Wiki",
"origin_base_url": "runescape.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Runescape Wiki",
"destination": "RuneScape Wiki",
"destination_base_url": "runescape.wiki",
"destination_content_path": "/w/",
"destination_platform": "mediawiki",
"destination_icon": "runescape.png"
},
{
"id": "en-runescapeclassic",
"origin": "RuneScape Classic Fandom Wiki",
"origin_base_url": "runescapeclassic.fandom.com",
"origin_content_path": "/wiki/",
"destination": "RuneScape Classic Wiki",
"destination_base_url": "classic.runescape.wiki",
"destination_content_path": "/w/",
"destination_platform": "mediawiki",
"destination_icon": "runescapeclassic.png"
},
{
"id": "en-simpsons",
"origin": "Simpsons Fandom Wiki",
@ -396,15 +539,15 @@
"destination_icon": "tearsofthemis.png"
},
{
"id": "en-touhou",
"origin": "Touhou Fandom Wiki",
"origin_base_url": "touhou.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Touhou Wiki",
"destination_base_url": "en.touhouwiki.net",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "touhouwiki.png"
"id": "en-touhou",
"origin": "Touhou Fandom Wiki",
"origin_base_url": "touhou.fandom.com",
"origin_content_path": "/wiki/",
"destination": "Touhou Wiki",
"destination_base_url": "en.touhouwiki.net",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "touhouwiki.png"
},
{
"id": "en-transformers",
@ -450,4 +593,4 @@
"destination_platform": "mediawiki",
"destination_icon": "zeldapedia.png"
}
]
]

View File

@ -10,6 +10,17 @@
"destination_platform": "mediawiki",
"destination_icon": "smashpedia.png"
},
{
"id": "es-touhou",
"origin": "Touhou Fandom Wiki",
"origin_base_url": "touhou.fandom.com/es",
"origin_content_path": "/wiki/",
"destination": "Touhou Wiki",
"destination_base_url": "es.touhouwiki.net",
"destination_content_path": "/wiki/",
"destination_platform": "mediawiki",
"destination_icon": "touhouwiki.png"
},
{
"id": "es-pokemon",
"origin": "WikiDex (Fandom)",

13
data/sitesPL.json Normal file
View File

@ -0,0 +1,13 @@
[
{
"id": "pl-rayman",
"origin": "Rayman Fandom Wiki",
"origin_base_url": "rayman.fandom.com/pl",
"origin_content_path": "/wiki/",
"destination": "RayWiki",
"destination_base_url": "raymanpc.com",
"destination_content_path": "/wiki/pl/",
"destination_platform": "mediawiki",
"destination_icon": "rayman.png"
}
]

BIN
favicons/en/biosector01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 B

BIN
favicons/en/bluearchive.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

BIN
favicons/en/doomwiki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

BIN
favicons/en/jiggywikki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

BIN
favicons/en/microwiki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

BIN
favicons/en/rayman.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

BIN
favicons/en/wikibound.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
favicons/en/wikizilla.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
favicons/es/touhouwiki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

BIN
favicons/pl/rayman.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

View File

@ -174,6 +174,7 @@
<option value="EN" selected>English</option>
<option value="ES">Español</option>
<option value="IT">Italiano</option>
<option value="PL">Polski</option>
</select>
</div>
<div class="options">

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "IT"];
const LANGS = ["DE", "EN", "ES", "IT", "PL"];
var sites = [];
// Create object prototypes for getting and setting attributes:
@ -259,12 +259,12 @@ async function loadOptions(lang) {
// Output icon
let iconLink = document.createElement("a");
iconLink.href = 'https://' + sites[i].destination_base_url;
iconLink.title = sites[i].destination;
iconLink.href = 'https://' + sites[i].destination_base_url + sites[i].destination_content_path;
iconLink.title = 'Visit ' + sites[i].destination;
iconLink.target = '_blank';
let icon = document.createElement("img");
icon.src = 'favicons/' + lang.toLowerCase() + '/' + sites[i].destination_icon;
icon.alt = sites[i].destination;
icon.alt = 'Visit ' + sites[i].destination;
iconLink.appendChild(icon);
// Output text: