diff --git a/background.js b/background.js index 9015ec1..2439da5 100644 --- a/background.js +++ b/background.js @@ -296,7 +296,7 @@ function redirectToBreezeWiki(storage, eventInfo, url) { // Load website data async function getData() { - const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"]; + const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"]; let sites = []; let promises = []; for (let i = 0; i < LANGS.length; i++) { diff --git a/content-banners.js b/content-banners.js index 392b4a2..1495d26 100644 --- a/content-banners.js +++ b/content-banners.js @@ -1,4 +1,4 @@ -const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"]; +const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"]; const breezeWikiRegex = /breezewiki\.com$|breeze\.hostux\.net$|bw\.projectsegfau\.lt$|antifandom\.com$|breezewiki\.pussthecat\.org$|bw\.vern\.cc$|breezewiki\.esmailelbob\.xyz$|bw\.artemislena\.eu$|bw\.hamstro\.dev$|nerd\.whatever\.social$|breeze\.nohost\.network$|breeze\.whateveritworks\.org$/; const currentURL = new URL(document.location); diff --git a/content-search-filtering.js b/content-search-filtering.js index e152b01..0aae613 100644 --- a/content-search-filtering.js +++ b/content-search-filtering.js @@ -1,3 +1,4 @@ +const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"]; const currentURL = new URL(document.location); let filteredWikis = []; let hiddenWikisRevealed = {}; @@ -26,7 +27,6 @@ function addLocationObserver(callback) { // Load website data: async function getData() { - const LANGS = ["DE", "EN", "ES", "FR", "IT", "PL", "TOK"]; let sites = []; let promises = []; for (let i = 0; i < LANGS.length; i++) { diff --git a/data/sitesUK.json b/data/sitesUK.json new file mode 100644 index 0000000..b8d4602 --- /dev/null +++ b/data/sitesUK.json @@ -0,0 +1,18 @@ +[ + { + "id": "uk-minecraft", + "origins_label": "Minecraft Fandom Wiki", + "origins": [ + { + "origin": "Minecraft Fandom Wiki", + "origin_base_url": "minecraft.fandom.com/uk", + "origin_content_path": "/wiki/" + } + ], + "destination": "Minecraft Wiki", + "destination_base_url": "uk.minecraft.wiki", + "destination_content_path": "/w/", + "destination_platform": "mediawiki", + "destination_icon": "minecraftwiki.png" + } +] diff --git a/favicons/uk/minecraftwiki.png b/favicons/uk/minecraftwiki.png new file mode 100644 index 0000000..1c0a0d0 Binary files /dev/null and b/favicons/uk/minecraftwiki.png differ diff --git a/manifest2.json b/manifest2.json index 340f1d1..850468c 100644 --- a/manifest2.json +++ b/manifest2.json @@ -50,6 +50,7 @@ "data/sitesPL.json", "data/sitesPT.json", "data/sitesTOK.json", + "data/sitesUK.json", "data/sitesZH.json" ], "background": { diff --git a/manifest3.json b/manifest3.json index 0ee1a36..1a02b93 100644 --- a/manifest3.json +++ b/manifest3.json @@ -38,6 +38,7 @@ "data/sitesPL.json", "data/sitesPT.json", "data/sitesTOK.json", + "data/sitesUK.json", "data/sitesZH.json" ], "matches": [ diff --git a/popup.js b/popup.js index 16ff28d..672d654 100644 --- a/popup.js +++ b/popup.js @@ -1,4 +1,4 @@ -const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"]; +const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"]; // Set power setting function setPower(setting) { diff --git a/settings.js b/settings.js index 34d2482..274e730 100644 --- a/settings.js +++ b/settings.js @@ -1,4 +1,4 @@ -const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "ZH"]; +const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"]; var sites = []; // Create object prototypes for getting and setting attributes: