diff --git a/data/sitesSV.json b/data/sitesSV.json new file mode 100644 index 0000000..93765bb --- /dev/null +++ b/data/sitesSV.json @@ -0,0 +1,21 @@ +[ + { + "id": "sv-simpsons", + "origins_label": "Simpsons Fandom Wiki", + "origins": [ + { + "origin": "Simpsons Fandom Wiki", + "origin_base_url": "simpsons.fandom.com/sv", + "origin_content_path": "/wiki/", + "origin_main_page": "Wikisimpsons" + } + ], + "destination": "Svenska Wikisimpsons", + "destination_base_url": "sv.simpsonswiki.com", + "destination_platform": "mediawiki", + "destination_icon": "wikisimpsons.png", + "destination_main_page": "Huvudsida", + "destination_search_path": "/w/index.php", + "destination_content_path": "/wiki/" + } +] \ No newline at end of file diff --git a/favicons/sv/wikisimpsons.png b/favicons/sv/wikisimpsons.png new file mode 100644 index 0000000..0d9f56b Binary files /dev/null and b/favicons/sv/wikisimpsons.png differ diff --git a/manifest-chromium.json b/manifest-chromium.json index 0b2b3e9..70801af 100644 --- a/manifest-chromium.json +++ b/manifest-chromium.json @@ -43,6 +43,7 @@ "data/sitesPL.json", "data/sitesPT.json", "data/sitesRU.json", + "data/sitesSV.json", "data/sitesTH.json", "data/sitesTOK.json", "data/sitesUK.json", diff --git a/manifest-firefox.json b/manifest-firefox.json index a0fa491..458b6a0 100644 --- a/manifest-firefox.json +++ b/manifest-firefox.json @@ -63,6 +63,7 @@ "data/sitesPL.json", "data/sitesPT.json", "data/sitesRU.json", + "data/sitesSV.json", "data/sitesTH.json", "data/sitesTOK.json", "data/sitesUK.json", diff --git a/pages/settings/index.html b/pages/settings/index.html index a3bbd7a..20e1f60 100644 --- a/pages/settings/index.html +++ b/pages/settings/index.html @@ -267,6 +267,7 @@ + diff --git a/scripts/common-functions.js b/scripts/common-functions.js index 1122b0d..47d9a29 100644 --- a/scripts/common-functions.js +++ b/scripts/common-functions.js @@ -1,4 +1,4 @@ -var LANGS = ["DE", "EN", "ES", "FI", "FR", "HU", "IT", "JA", "LZH", "KO", "PL", "PT", "RU", "TH", "TOK", "UK", "ZH"]; +var LANGS = ["DE", "EN", "ES", "FI", "FR", "HU", "IT", "JA", "LZH", "KO", "PL", "PT", "RU", "SV", "TH", "TOK", "UK", "ZH"]; var BASE64REGEX = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/; const extensionAPI = typeof browser === "undefined" ? chrome : browser;