Adding support for Swedish wikis + Swedish Wikisimpsons

pull/765/head
DrWhoFan13 2024-07-19 02:49:56 -07:00 committed by GitHub
parent 1a908257fd
commit f3e73da8d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 25 additions and 1 deletions

21
data/sitesSV.json Normal file
View File

@ -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/"
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

View File

@ -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",

View File

@ -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",

View File

@ -267,6 +267,7 @@
<option value="PL" data-msg="settingsLangPL"></option>
<option value="PT" data-msg="settingsLangPT"></option>
<option value="RU" data-msg="settingsLangRU"></option>
<option value="SV" data-msg="settingsLangSV"></option>
<option value="TH" data-msg="settingsLangTH"></option>
<option value="TOK" data-msg="settingsLangTOK"></option>
<option value="UK" data-msg="settingsLangUK"></option>

View File

@ -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;