From f3e73da8d13e51b1d1e3c18d0522ca68271a3294 Mon Sep 17 00:00:00 2001 From: DrWhoFan13 <159411967+DrWhoFan13@users.noreply.github.com> Date: Fri, 19 Jul 2024 02:49:56 -0700 Subject: [PATCH] Adding support for Swedish wikis + Swedish Wikisimpsons --- data/sitesSV.json | 21 +++++++++++++++++++++ favicons/sv/wikisimpsons.png | Bin 0 -> 617 bytes manifest-chromium.json | 1 + manifest-firefox.json | 1 + pages/settings/index.html | 1 + scripts/common-functions.js | 2 +- 6 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 data/sitesSV.json create mode 100644 favicons/sv/wikisimpsons.png 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 0000000000000000000000000000000000000000..0d9f56bddf4a6884b9ee6228245a6b99d0ec9617 GIT binary patch literal 617 zcmV-v0+#)WP)y1`R=Q zOXln#4JC6dsPlo59(;-PaOn~gs^_nH;8rZO72cG=X_{9U4l5n{tg~32 zKW_=dF@V$ukP_I~q((N2if)bBghK~9xiA|fL1>_-&m$C-&HZ*mI;=XN%*@si(q z`QddoUfh05S@>tKINGZ&Sv{vU=Bir0*dq$@dIaHKlW@a0(#p!FzOixX%GSH!-Av1q~(RENXPPdjJl!Wh(q zz{sVoZ;O>}T?lainoEW@DkW!9UFA`ksE>r5pKy+Jk``=T=;22KvS2{v3k#FRG7J;Y z8mli@nP_Fgb*K!6UbOdu`$uXuszPBG&s|A62_I8|dOC#<83C%|P|xk#)fofeYoZei zASH0}Q-I1aIN4ZflVoEA>8Y_~>>;#-puTV_O(^*HjLC9m9fTqTs3CwX5O%@j4ANI4 zZ{zSLdg_bP5Bp~HiwU#Bjb)Rbn#&`l20AT+{7XLpa2-rj2o{nb00000NkvXXu0mjf D<|G!i literal 0 HcmV?d00001 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;