From 9922585ff16a2a51b612fc4415810e88bddfd38a Mon Sep 17 00:00:00 2001 From: Kevin Payravi Date: Wed, 6 Dec 2023 19:50:16 -0600 Subject: [PATCH] Adding Russian category + Russian Minecraft Wiki --- README.md | 1 + background.js | 2 +- content-banners.js | 2 +- content-search-filtering.js | 2 +- data/sitesRU.json | 18 ++++++++++++++++++ favicons/ru/minecraftwiki.png | Bin 0 -> 616 bytes manifest2.json | 1 + manifest3.json | 1 + popup.js | 2 +- settings.html | 1 + settings.js | 2 +- 11 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 data/sitesRU.json create mode 100644 favicons/ru/minecraftwiki.png diff --git a/README.md b/README.md index a7ca624..b0b553d 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/background.js b/background.js index 4a20b87..c10dbe6 100644 --- a/background.js +++ b/background.js @@ -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++) { diff --git a/content-banners.js b/content-banners.js index acc850d..7ea1fe1 100644 --- a/content-banners.js +++ b/content-banners.js @@ -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); diff --git a/content-search-filtering.js b/content-search-filtering.js index fd6db2c..fce5e69 100644 --- a/content-search-filtering.js +++ b/content-search-filtering.js @@ -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 = {}; diff --git a/data/sitesRU.json b/data/sitesRU.json new file mode 100644 index 0000000..25f5fe7 --- /dev/null +++ b/data/sitesRU.json @@ -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" + } +] diff --git a/favicons/ru/minecraftwiki.png b/favicons/ru/minecraftwiki.png new file mode 100644 index 0000000000000000000000000000000000000000..1c0a0d01ad7d98efe2c895fe30f708f779fca738 GIT binary patch literal 616 zcmV-u0+;=XP)la_aDzPeI{u@}SeV%%vw8+!_O8aClMiPq)J{$1j< zz?Z|S?zxsYzbXyM%e!%5`wR}?Uei{VU`yUSY+O1FCo5L5MD-^@#w<@ncG%%H{q@H7 zP8KlyA?jk{F+ZjOt83>WcBBKY)oaFs(xC*sMm z60F@;hNHVDBC^v?sS&;`-ZEfjB)X5*Abj$1a4?B@e0&^UU9Kdm82Nnv;%3b13Pbs7 zFDy9ZlPkK%%U+FD6HzDD)tz?$`!(~-Ur?jLSa?n zjuFdJz+onAl7fBy3}U)+Cf3hrK;x)zv{YKbZB-z|!~2(zS(lEWxzQ-d&!H-{atg-o zhcI7np51^b>fbis38@X{5WM`0g5ftc9HkQ?sfHBD2{_1b1-_rr76kk0UP_op&(F(& zHJy)cC_?D?!@o^HC?aC#{3hDOP)sNEi)|DMZ=!XnJFczIK>yBM3=oRs_X+I2-M2P( zLJTggO#*?l95MX3D@>LSMbuh%7D)jI8F|f;yy;RPC0ZMaO+zrZ#DauQ=p)GwVOc}` zX;HZH>v_F^VUrg0Yc+X-p9JE|NCC2860ktTs}TSV{=2Wc>3UlL0000Korean / 한국어 (KO) + diff --git a/settings.js b/settings.js index af7577a..32b13ab 100644 --- a/settings.js +++ b/settings.js @@ -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: