diff --git a/background.js b/background.js index 8742fa3..e5b45c1 100644 --- a/background.js +++ b/background.js @@ -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++) { diff --git a/content.js b/content.js index 6527dd4..0bb2a6a 100644 --- a/content.js +++ b/content.js @@ -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++) { diff --git a/data/sitesEN.json b/data/sitesEN.json index 13953aa..783eb8d 100644 --- a/data/sitesEN.json +++ b/data/sitesEN.json @@ -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" } -] +] \ No newline at end of file diff --git a/data/sitesES.json b/data/sitesES.json index 63f5a61..0f94f22 100644 --- a/data/sitesES.json +++ b/data/sitesES.json @@ -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)", diff --git a/data/sitesPL.json b/data/sitesPL.json new file mode 100644 index 0000000..a55cb1e --- /dev/null +++ b/data/sitesPL.json @@ -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" + } +] \ No newline at end of file diff --git a/favicons/en/biosector01.png b/favicons/en/biosector01.png new file mode 100644 index 0000000..8e87574 Binary files /dev/null and b/favicons/en/biosector01.png differ diff --git a/favicons/en/bluearchive.png b/favicons/en/bluearchive.png new file mode 100644 index 0000000..d1522d1 Binary files /dev/null and b/favicons/en/bluearchive.png differ diff --git a/favicons/en/criticalrole.png b/favicons/en/criticalrole.png new file mode 100644 index 0000000..16feb17 Binary files /dev/null and b/favicons/en/criticalrole.png differ diff --git a/favicons/en/doomwiki.png b/favicons/en/doomwiki.png new file mode 100644 index 0000000..d25a005 Binary files /dev/null and b/favicons/en/doomwiki.png differ diff --git a/favicons/en/friendsatthetable.png b/favicons/en/friendsatthetable.png new file mode 100644 index 0000000..0e2afb2 Binary files /dev/null and b/favicons/en/friendsatthetable.png differ diff --git a/favicons/en/jiggywikki.png b/favicons/en/jiggywikki.png new file mode 100644 index 0000000..dee2b16 Binary files /dev/null and b/favicons/en/jiggywikki.png differ diff --git a/favicons/en/microwiki.png b/favicons/en/microwiki.png new file mode 100644 index 0000000..1982880 Binary files /dev/null and b/favicons/en/microwiki.png differ diff --git a/favicons/en/oldschoolrunescape.png b/favicons/en/oldschoolrunescape.png new file mode 100644 index 0000000..42e003a Binary files /dev/null and b/favicons/en/oldschoolrunescape.png differ diff --git a/favicons/en/rayman.png b/favicons/en/rayman.png new file mode 100644 index 0000000..f2a6f14 Binary files /dev/null and b/favicons/en/rayman.png differ diff --git a/favicons/en/runescapeclassic.png b/favicons/en/runescapeclassic.png new file mode 100644 index 0000000..9f295e5 Binary files /dev/null and b/favicons/en/runescapeclassic.png differ diff --git a/favicons/en/wikibound.png b/favicons/en/wikibound.png new file mode 100644 index 0000000..db57bb8 Binary files /dev/null and b/favicons/en/wikibound.png differ diff --git a/favicons/en/wikizilla.png b/favicons/en/wikizilla.png new file mode 100644 index 0000000..6792801 Binary files /dev/null and b/favicons/en/wikizilla.png differ diff --git a/favicons/es/touhouwiki.png b/favicons/es/touhouwiki.png new file mode 100644 index 0000000..961b7d3 Binary files /dev/null and b/favicons/es/touhouwiki.png differ diff --git a/favicons/pl/rayman.png b/favicons/pl/rayman.png new file mode 100644 index 0000000..f2a6f14 Binary files /dev/null and b/favicons/pl/rayman.png differ diff --git a/popup.html b/popup.html index fa0f6bc..3706d95 100644 --- a/popup.html +++ b/popup.html @@ -174,6 +174,7 @@ +
diff --git a/popup.js b/popup.js index ec584ab..823c931 100644 --- a/popup.js +++ b/popup.js @@ -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: