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 0000000..1c0a0d0 Binary files /dev/null and b/favicons/ru/minecraftwiki.png differ diff --git a/manifest2.json b/manifest2.json index 848ace9..adf17bd 100644 --- a/manifest2.json +++ b/manifest2.json @@ -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" diff --git a/manifest3.json b/manifest3.json index 96d3585..65dfaa4 100644 --- a/manifest3.json +++ b/manifest3.json @@ -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" diff --git a/popup.js b/popup.js index d802d52..3eab5a8 100644 --- a/popup.js +++ b/popup.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"]; // Set power setting function setPower(setting) { diff --git a/settings.html b/settings.html index d9ca072..fd5b568 100644 --- a/settings.html +++ b/settings.html @@ -643,6 +643,7 @@ + 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: