Adding Russian category + Russian Minecraft Wiki

pull/379/head
Kevin Payravi 2023-12-06 19:50:16 -06:00
parent d5fd6fc6ff
commit 9922585ff1
11 changed files with 27 additions and 5 deletions

View File

@ -14,6 +14,7 @@ Indie Wiki Buddy is a browser extension that automatically notifies and redirect
![KO wikis](https://img.shields.io/badge/dynamic/json?style=flat-square&label=KO%20wikis&query=length&url=https%3A%2F%2Fraw.githubusercontent.com%2FKevinPayravi%2Findie-wiki-buddy%2Fmain%2Fdata%2FsitesKO.json)
![PL wikis](https://img.shields.io/badge/dynamic/json?style=flat-square&label=PL%20wikis&query=length&url=https%3A%2F%2Fraw.githubusercontent.com%2FKevinPayravi%2Findie-wiki-buddy%2Fmain%2Fdata%2FsitesPL.json)
![PT wikis](https://img.shields.io/badge/dynamic/json?style=flat-square&label=PT%20wikis&query=length&url=https%3A%2F%2Fraw.githubusercontent.com%2FKevinPayravi%2Findie-wiki-buddy%2Fmain%2Fdata%2FsitesPT.json)
![RU wikis](https://img.shields.io/badge/dynamic/json?style=flat-square&label=RU%20wikis&query=length&url=https%3A%2F%2Fraw.githubusercontent.com%2FKevinPayravi%2Findie-wiki-buddy%2Fmain%2Fdata%2FsitesRU.json)
![TOK wikis](https://img.shields.io/badge/dynamic/json?style=flat-square&label=TOK%20wikis&query=length&url=https%3A%2F%2Fraw.githubusercontent.com%2FKevinPayravi%2Findie-wiki-buddy%2Fmain%2Fdata%2FsitesTOK.json)
![ZH wikis](https://img.shields.io/badge/dynamic/json?style=flat-square&label=ZH%20wikis&query=length&url=https%3A%2F%2Fraw.githubusercontent.com%2FKevinPayravi%2Findie-wiki-buddy%2Fmain%2Fdata%2FsitesZH.json)

View File

@ -267,7 +267,7 @@ function redirectToBreezeWiki(storage, tabId, url) {
// Load website data
async function getData() {
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
let sites = [];
let promises = [];
for (let i = 0; i < LANGS.length; i++) {

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "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);

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
const currentURL = new URL(document.location);
let filteredWikis = [];
let hiddenWikisRevealed = {};

18
data/sitesRU.json Normal file
View File

@ -0,0 +1,18 @@
[
{
"id": "ru-minecraft",
"origins_label": "Minecraft Fandom Wiki",
"origins": [
{
"origin": "Minecraft Fandom Wiki",
"origin_base_url": "minecraft.fandom.com/ru",
"origin_content_path": "/wiki/"
}
],
"destination": "Minecraft Wiki",
"destination_base_url": "ru.minecraft.wiki",
"destination_content_path": "/w/",
"destination_platform": "mediawiki",
"destination_icon": "minecraftwiki.png"
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

View File

@ -50,6 +50,7 @@
"data/sitesKO.json",
"data/sitesPL.json",
"data/sitesPT.json",
"data/sitesRU.json",
"data/sitesTOK.json",
"data/sitesUK.json",
"data/sitesZH.json"

View File

@ -38,6 +38,7 @@
"data/sitesKO.json",
"data/sitesPL.json",
"data/sitesPT.json",
"data/sitesRU.json",
"data/sitesTOK.json",
"data/sitesUK.json",
"data/sitesZH.json"

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
// Set power setting
function setPower(setting) {

View File

@ -643,6 +643,7 @@
<option value="KO">Korean / 한국어 (KO)</option>
<option value="PL">Polish / Polski (PL)</option>
<option value="PT">Portuguese / Português (PT)</option>
<option value="RU">Russian / Русский язык (RU)</option>
<option value="TOK">Toki Pona (TOK)</option>
<option value="UK">Ukrainian / Українська мова (UK)</option>
<option value="ZH">Chinese / 中文 (ZH)</option>

View File

@ -1,4 +1,4 @@
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "TOK", "UK", "ZH"];
const LANGS = ["DE", "EN", "ES", "FR", "IT", "KO", "PL", "PT", "RU", "TOK", "UK", "ZH"];
var sites = [];
// Create object prototypes for getting and setting attributes: