aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-04-02 18:35:15 +0300
committerManeraKai <manerakai@protonmail.com>2022-04-02 18:35:15 +0300
commit96a9083695b3106e27c28239d570a97f2434d358 (patch)
tree3fec2f4862304a5197475eb74801b41132467eea
parentTweaked design #60 (diff)
parentAdd i18n (diff)
downloadlibredirect-96a9083695b3106e27c28239d570a97f2434d358.zip
Merged branches
Diffstat (limited to '')
-rw-r--r--README.md2
-rw-r--r--src/_locales/ar/messages.json586
-rw-r--r--src/_locales/de/messages.json586
-rw-r--r--src/_locales/en/messages.json591
-rw-r--r--src/assets/javascripts/helpers/common.js16
-rw-r--r--src/assets/javascripts/localise.js4
-rw-r--r--src/instances/data.json38
-rw-r--r--src/manifest.json13
-rw-r--r--src/pages/background/background.js8
-rw-r--r--src/pages/errors/instance_offline.html11
-rw-r--r--src/pages/errors/instance_offline.js4
-rw-r--r--src/pages/options/general/general.html238
-rw-r--r--src/pages/options/imgur/imgur.html58
-rw-r--r--src/pages/options/init.js3
-rw-r--r--src/pages/options/instagram/instagram.html68
-rw-r--r--src/pages/options/lbry/lbry.html77
-rw-r--r--src/pages/options/maps/maps.html47
-rw-r--r--src/pages/options/medium/medium.html58
-rw-r--r--src/pages/options/peertube/peertube.html59
-rw-r--r--src/pages/options/pixiv/pixiv.html62
-rw-r--r--src/pages/options/reddit/reddit.html72
-rw-r--r--src/pages/options/search/search.html68
-rw-r--r--src/pages/options/sendTargets/sendTargets.html79
-rw-r--r--src/pages/options/spotify/spotify.html59
-rw-r--r--src/pages/options/tiktok/tiktok.html59
-rw-r--r--src/pages/options/translate/translate.html237
-rw-r--r--src/pages/options/twitter/twitter.html218
-rw-r--r--src/pages/options/wikipedia/wikipedia.html235
-rw-r--r--src/pages/options/youtube/youtube.html243
-rw-r--r--src/pages/options/youtubeMusic/youtubeMusic.html288
-rw-r--r--src/pages/popup/popup.html44
-rw-r--r--src/pages/popup/style.css2
-rw-r--r--src/pages/stylesheets/NotoNaskhArabic-VariableFont_wght.ttfbin0 -> 196420 bytes
-rw-r--r--src/pages/stylesheets/NotoSansArabic-VariableFont_wdth,wght.ttfbin0 -> 765740 bytes
-rw-r--r--src/pages/stylesheets/Vazirmatn-VariableFont_wght.ttfbin0 -> 285620 bytes
-rw-r--r--src/pages/stylesheets/styles.css41
36 files changed, 3038 insertions, 1136 deletions
diff --git a/README.md b/README.md
index de367c9d..03d967c4 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ Send Files => [Send](https://github.com/timvisee/send)
- `npm run test`
### Test in Firefox
-- `npm run-script start`
+- `npm run start`
### Install temporarily
- open `about:addons`
diff --git a/src/_locales/ar/messages.json b/src/_locales/ar/messages.json
new file mode 100644
index 00000000..50e627c5
--- /dev/null
+++ b/src/_locales/ar/messages.json
@@ -0,0 +1,586 @@
+{
+ "extensionName": {
+ "message": "LibRedirect",
+ "description": "name of the extension"
+ },
+
+ "extensionDescription": {
+ "message": "إضافة متصفح تعيد توجيه مواقع مشهورة إلى واجهات أمامية ذات تحترم الخصوصية",
+ "description": "description of the extension"
+ },
+
+ "switchInstance": {
+ "message": "تبديل المَثيل",
+ "description": "used in manifest.json as shortcut description"
+ },
+
+ "instance": {
+ "message": "المَثيل",
+ "description": "used in popup.html"
+ },
+
+ "settings": {
+ "message": "الإعدادات",
+ "description": "used in popup.html"
+ },
+
+ "libOptions": {
+ "message": "LibRedirect إعدادات",
+ "description": "used in general.html"
+ },
+
+ "general": {
+ "message": "العامة",
+ "description": "used in general.html"
+ },
+
+ "search": {
+ "message": "البحث",
+ "description": "used in general.html"
+ },
+
+ "translate": {
+ "message": "الترجمة",
+ "description": "used in general.html"
+ },
+
+ "maps": {
+ "message": "الخرائط",
+ "description": "used in general.html"
+ },
+
+ "sendFiles": {
+ "message": "إرسال الملفات",
+ "description": "used in general.html"
+ },
+
+ "youtube": {
+ "message": "يوتيوب",
+ "description": "used in general.html"
+ },
+
+ "instagram": {
+ "message": "إنستغرام",
+ "description": "used in general.html"
+ },
+
+ "twitter": {
+ "message": "تويتر",
+ "description": "used in general.html"
+ },
+
+ "reddit": {
+ "message": "ريديت",
+ "description": "used in general.html"
+ },
+
+ "tiktok": {
+ "message": "تيك توك",
+ "description": "used in general.html"
+ },
+
+ "ytmusic": {
+ "message": "يوتيوب ميوزيك",
+ "description": "used in general.html"
+ },
+
+ "imgur": {
+ "message": "إمجور",
+ "description": "used in general.html"
+ },
+
+ "pixiv": {
+ "message": "بكسيف",
+ "description": "used in general.html"
+ },
+
+ "wikipedia": {
+ "message": "ويكيبيديا",
+ "description": "used in general.html"
+ },
+
+ "peertube": {
+ "message": "PeerTube",
+ "description": "used in general.html"
+ },
+
+ "spotify": {
+ "message": "سبوتيفاي",
+ "description": "used in general.html"
+ },
+
+ "medium": {
+ "message": "ميديام",
+ "description": "used in general.html"
+ },
+
+ "tor": {
+ "message": "تور",
+ "description": "used in imgur.html"
+ },
+
+ "pixivMoe": {
+ "message": "pixiv萌え",
+ "description": "used in pixiv.html"
+ },
+
+ "theme": {
+ "message": "السمة",
+ "description": "used in general.html"
+ },
+
+ "system": {
+ "message": "النظام",
+ "description": "used in general.html"
+ },
+
+ "light": {
+ "message": "فاتح",
+ "description": "used in general.html"
+ },
+
+ "dark": {
+ "message": "داكن",
+ "description": "used in general.html"
+ },
+
+ "applyTheme": {
+ "message": "تطبيق السمة على الواجهات",
+ "description": "used in general.html"
+ },
+
+ "alwaysPref": {
+ "message": "استخدم المُثلاء المفضلين دائماً",
+ "description": "used in general.html"
+ },
+
+ "autoRedirect": {
+ "message": "إعادة التوجيه تلقائياً من المُثلاء الذين لا يعملون",
+ "description": "used in general.html"
+ },
+
+ "exceptions": {
+ "message": "الاستثناءات",
+ "description": "used in general.html"
+ },
+
+ "updateInstances": {
+ "message": "تحديث قائمة المُثلاء",
+ "description": "used in general.html"
+ },
+
+ "importSettings": {
+ "message": "استيراد الإعدادات",
+ "description": "used in general.html"
+ },
+
+ "exportSettings": {
+ "message": "تصدير الإعدادات",
+ "description": "used in general.html"
+ },
+
+ "resetSettings": {
+ "message": "إعادة تعيين الإعدادات",
+ "description": "used in general.html"
+ },
+
+ "customPopup": {
+ "message": "تخصيص النافذة المنبثقة",
+ "description": "used in general.html"
+ },
+
+ "enable": {
+ "message": "تفعيل",
+ "description": "used in imgur.html"
+ },
+
+ "protocol": {
+ "message": "البروتوكول",
+ "description": "used in imgur.html"
+ },
+
+ "normal": {
+ "message": "العادي",
+ "description": "used in imgur.html"
+ },
+
+ "defaultInstances": {
+ "message": "المُثلاء الافتراضيين",
+ "description": "used in imgur.html"
+ },
+
+ "customInstances": {
+ "message": "المُثلاء المخصصين",
+ "description": "used in imgur.html"
+ },
+
+ "toggleAll": {
+ "message": "تبديل الكل",
+ "description": "used in common.js"
+ },
+
+ "frontend": {
+ "message": "الواجهة الأمامية",
+ "description": "used in maps.html"
+ },
+
+ "notFullyPrivate": {
+ "message": "هذه الواجهة لا تحترم الخصوصية تماماً",
+ "description": "used in pixiv.html"
+ },
+
+ "oldReddit": {
+ "message": "ريديت القديم",
+ "description": "used in reddit.html"
+ },
+
+ "bypassReddit": {
+ "message": "تجاوز \"Open in Reddit\"",
+ "description": "used in reddit.html"
+ },
+
+ "searchNote": {
+ "message": "ملاحظة: لاستعمال \"البحث\" بكامل إمكانيته، اجعل LibRedirect محرك البحث الافتراضي",
+ "description": "used in search.html"
+ },
+
+ "libSendFiles": {
+ "message": "LibRedirect: إرسال الملفات",
+ "description": "used in sendTargets.html"
+ },
+
+ "from": {
+ "message": "من",
+ "description": "used in translate.html"
+ },
+
+ "to": {
+ "message": "إلى",
+ "description": "used in translate.html"
+ },
+
+ "default": {
+ "message": "الافتراضي",
+ "description": "used in translate.html"
+ },
+
+ "auto": {
+ "message": "تلقائي",
+ "description": "used in translate.html"
+ },
+
+ "engine": {
+ "message": "محرك البحث",
+ "description": "used in translate.html"
+ },
+
+ "libTranslate": {
+ "message": "LibRedirect: الترجمة",
+ "description": "used in translate.html"
+ },
+
+ "bypassTwitter": {
+ "message": "تجاوز \"Open in Twitter\"",
+ "description": "used in twitter.html"
+ },
+
+ "embeddedVids": {
+ "message": "واجهة الفيديوهات المضمنة",
+ "description": "used in youtube.html"
+ },
+
+ "redirectType": {
+ "message": "نوع إعادة التوجيه",
+ "description": "used in youtube.html"
+ },
+
+ "both": {
+ "message": "الإثنين",
+ "description": "used in youtube.html"
+ },
+
+ "onlyEmbedded": {
+ "message": "فقط للتضمينات",
+ "description": "used in youtube.html"
+ },
+
+ "onlyNotEmbedded": {
+ "message": "فقط لغير التضمينات",
+ "description": "used in youtube.html"
+ },
+
+ "bypassYoutube": {
+ "message": "تجاوز \"Watch on YouTube\"",
+ "description": "used in youtube.html"
+ },
+
+ "enableCustom": {
+ "message": "تمكين الإعدادات الخاصة (ستُستخدم ملفات تعريف الارتباط والـlocalStorage)",
+ "description": "used in youtube.html"
+ },
+
+ "autoplayVid": {
+ "message": "تشغيل الفيديوهات التلقائي",
+ "description": "used in youtube.html"
+ },
+
+ "volume": {
+ "message": "الصوت: ",
+ "description": "used in youtube.html"
+ },
+
+ "playerStyle": {
+ "message": "شكل مشغل الفيديو",
+ "description": "used in youtube.html"
+ },
+
+ "alwaysLoop": {
+ "message": "إعادة تشغيل الفيديو تلقائياً",
+ "description": "used in youtube.html"
+ },
+
+ "playNext": {
+ "message": "تشغيل التالي افتراضياً",
+ "description": "used in youtube.html"
+ },
+
+ "autoplayNext": {
+ "message": "تشغيل الفيديو التالي تلقائياً",
+ "description": "used in youtube.html"
+ },
+
+ "alwaysProxy": {
+ "message": "بروكسي المقاطع المرئيّة",
+ "description": "used in youtube.html"
+ },
+
+ "listenByDefault": {
+ "message": "تشغيل النسخة السمعية تلقائيًا",
+ "description": "used in youtube.html"
+ },
+
+ "defaultSpeed": {
+ "message": "السرعة الافتراضية",
+ "description": "used in youtube.html"
+ },
+
+ "prefQuality": {
+ "message": "الجودة المفضلة للمقاطع",
+ "description": "used in youtube.html"
+ },
+
+ "dash": {
+ "message": "DASH (جودة تكيُّفية)",
+ "description": "used in youtube.html"
+ },
+
+ "prefDashQuality": {
+ "message": "جودة فيديو DASH المفضلة",
+ "description": "used in youtube.html"
+ },
+
+ "best": {
+ "message": "الأفضل",
+ "description": "used in youtube.html"
+ },
+
+ "worst": {
+ "message": "الأسوء",
+ "description": "used in youtube.html"
+ },
+
+ "defaultComments": {
+ "message": "التعليقات الافتراضية",
+ "description": "used in youtube.html"
+ },
+
+ "none": {
+ "message": "لا شيء",
+ "description": "used in youtube.html"
+ },
+
+ "defaultCaptions": {
+ "message": "التسميات التوضيحية الاتفراضية",
+ "description": "used in youtube.html"
+ },
+
+ "showRelated": {
+ "message": "اعرض الفيديوهات ذات الصلة",
+ "description": "used in youtube.html"
+ },
+
+ "showAnnotations": {
+ "message": "إظهار الـAnnotation بشكل افتراضي",
+ "description": "used in youtube.html"
+ },
+
+ "autoExtendDesc": {
+ "message": "توسيع وصف الفيديو تلقائيا",
+ "description": "used in youtube.html"
+ },
+
+ "interactive360": {
+ "message": "مقاطع فيديو تفاعلية بزاوية 360 درجة (تتطلب WebGL)",
+ "description": "used in youtube.html"
+ },
+
+ "savePlaybackPos": {
+ "message": "حفظ موضع التشغيل",
+ "description": "used in youtube.html"
+ },
+
+ "enableSponsorBlock": {
+ "message": "Enable SponsorBlock",
+ "description": "used in youtube.html"
+ },
+
+ "skipSponsors": {
+ "message": "Skip sponsors",
+ "description": "used in youtube.html"
+ },
+
+ "skipIntermission": {
+ "message": "Skip Intermission/Intro Animation",
+ "description": "used in youtube.html"
+ },
+
+ "skipEndcards": {
+ "message": "Skip Endcards/Credits",
+ "description": "used in youtube.html"
+ },
+
+ "skipPreview": {
+ "message": "Skip Preview/Recap",
+ "description": "used in youtube.html"
+ },
+
+ "skipReminder": {
+ "message": "Skip interaction reminder (subscribe)",
+ "description": "used in youtube.html"
+ },
+
+ "skipUnpaidPromo": {
+ "message": "Skip Unpaid/Self Promotion",
+ "description": "used in youtube.html"
+ },
+
+ "skipMusic": {
+ "message": "Skip Music: Non-Music Section",
+ "description": "used in youtube.html"
+ },
+
+ "skipHighlights": {
+ "message": "Skip highlights",
+ "description": "used in youtube.html"
+ },
+
+ "skipFiller": {
+ "message": "Skip Filler Tangent",
+ "description": "used in youtube.html"
+ },
+
+ "audioOnly": {
+ "message": "Audio only",
+ "description": "used in youtube.html"
+ },
+
+ "defaultQuality": {
+ "message": "Default quality",
+ "description": "used in youtube.html"
+ },
+
+ "bufferingGoal": {
+ "message": "Buffering Goal (in seconds)",
+ "description": "used in youtube.html"
+ },
+
+ "countrySelection": {
+ "message": "Country selection",
+ "description": "used in youtube.html"
+ },
+
+ "defaultHomepage": {
+ "message": "Default homepage",
+ "description": "used in youtube.html"
+ },
+
+ "trending": {
+ "message": "Trending",
+ "description": "used in youtube.html"
+ },
+
+ "feed": {
+ "message": "Feed",
+ "description": "used in youtube.html"
+ },
+
+ "showComments": {
+ "message": "Show comments",
+ "description": "used in youtube.html"
+ },
+
+ "minimizeDesc": {
+ "message": "Minimize description by default",
+ "description": "used in youtube.html"
+ },
+
+ "storeHistory": {
+ "message": "Store watch history",
+ "description": "used in youtube.html"
+ },
+
+ "enabledCodecs": {
+ "message": "Enabled codecs (multiple)",
+ "description": "used in youtube.html"
+ },
+
+ "disableLBRY": {
+ "message": "Disable LBRY for streaming",
+ "description": "used in youtube.html"
+ },
+
+ "enableProxyLBRY": {
+ "message": "Enable proxy for LBRY",
+ "description": "used in youtube.html"
+ },
+
+ "proxyLBRY": {
+ "message": "Proxy LBRY videos",
+ "description": "used in youtube.html"
+ },
+
+ "skipNote": {
+ "message": "Skip to the last watched point when encountering a video already seen",
+ "description": "used in youtube.html"
+ },
+
+ "embedExceptions": {
+ "message": "Embed exceptions",
+ "description": "used in youtube.html"
+ },
+
+ "instanceOffline": {
+ "message": "This instance is offline, you'll be redirected after&nbsp;",
+ "description": "used in instance_offline.html"
+ },
+
+ "sec": {
+ "message": "الثواني",
+ "description": "used in instance_offline.html"
+ },
+
+ "cancel": {
+ "message": "إلغاء",
+ "description": "used in instance_offline.html"
+ },
+
+ "instanceIsOff": {
+ "message": "المَثيل غير متصل على النت",
+ "description": "used in instance_offline.html"
+ },
+
+ "redirectionCanceled": {
+ "message": "تم إلغاء إعادة التوجيه",
+ "description": "used in instance_offline.js"
+ }
+ }
diff --git a/src/_locales/de/messages.json b/src/_locales/de/messages.json
new file mode 100644
index 00000000..03248032
--- /dev/null
+++ b/src/_locales/de/messages.json
@@ -0,0 +1,586 @@
+{
+ "extensionName": {
+ "message": "LibRedirect",
+ "description": "name of the extension"
+ },
+
+ "extensionDescription": {
+ "message": "Eine Erweiterung, die beliebte Websites zu alternativen datenschutzfreundlichen Frontends und Backends weiterleitet.",
+ "description": "description of the extension"
+ },
+
+ "switchInstance": {
+ "message": "Instanz wechseln",
+ "description": "used in manifest.json as shortcut description"
+ },
+
+ "instance": {
+ "message": "Instanz",
+ "description": "used in popup.html"
+ },
+
+ "settings": {
+ "message": "Optionen",
+ "description": "used in popup.html"
+ },
+
+ "libOptions": {
+ "message": "LibRedirect-Optionen",
+ "description": "used in general.html"
+ },
+
+ "general": {
+ "message": "Allgemein",
+ "description": "used in general.html"
+ },
+
+ "search": {
+ "message": "Suche",
+ "description": "used in general.html"
+ },
+
+ "translate": {
+ "message": "Übersetzen",
+ "description": "used in general.html"
+ },
+
+ "maps": {
+ "message": "Karten",
+ "description": "used in general.html"
+ },
+
+ "sendFiles": {
+ "message": "Dateien senden",
+ "description": "used in general.html"
+ },
+
+ "youtube": {
+ "message": "YouTube",
+ "description": "used in general.html"
+ },
+
+ "instagram": {
+ "message": "Instagram",
+ "description": "used in general.html"
+ },
+
+ "twitter": {
+ "message": "Twitter",
+ "description": "used in general.html"
+ },
+
+ "reddit": {
+ "message": "Reddit",
+ "description": "used in general.html"
+ },
+
+ "tiktok": {
+ "message": "TikTok",
+ "description": "used in general.html"
+ },
+
+ "ytmusic": {
+ "message": "YT Music",
+ "description": "used in general.html"
+ },
+
+ "imgur": {
+ "message": "Imgur",
+ "description": "used in general.html"
+ },
+
+ "pixiv": {
+ "message": "Pixiv",
+ "description": "used in general.html"
+ },
+
+ "wikipedia": {
+ "message": "Wikipedia",
+ "description": "used in general.html"
+ },
+
+ "peertube": {
+ "message": "PeerTube",
+ "description": "used in general.html"
+ },
+
+ "spotify": {
+ "message": "Spotify",
+ "description": "used in general.html"
+ },
+
+ "medium": {
+ "message": "Medium",
+ "description": "used in general.html"
+ },
+
+ "tor": {
+ "message": "Tor",
+ "description": "used in imgur.html"
+ },
+
+ "pixivMoe": {
+ "message": "pixiv萌え",
+ "description": "used in pixiv.html"
+ },
+
+ "theme": {
+ "message": "Thema",
+ "description": "used in general.html"
+ },
+
+ "system": {
+ "message": "System",
+ "description": "used in general.html"
+ },
+
+ "light": {
+ "message": "Hell",
+ "description": "used in general.html"
+ },
+
+ "dark": {
+ "message": "Dunkel",
+ "description": "used in general.html"
+ },
+
+ "applyTheme": {
+ "message": "Thema auf Seiten anwenden",
+ "description": "used in general.html"
+ },
+
+ "alwaysPref": {
+ "message": "Immer bevorzugte Instanzen verwenden",
+ "description": "used in general.html"
+ },
+
+ "autoRedirect": {
+ "message": "Instanzen automatisch weiterleiten, die offline sind",
+ "description": "used in general.html"
+ },
+
+ "exceptions": {
+ "message": "Ausnahmen",
+ "description": "used in general.html"
+ },
+
+ "updateInstances": {
+ "message": "Instanzen aktualisieren",
+ "description": "used in general.html"
+ },
+
+ "importSettings": {
+ "message": "Einstellungen importieren",
+ "description": "used in general.html"
+ },
+
+ "exportSettings": {
+ "message": "Einstellungen exportieren",
+ "description": "used in general.html"
+ },
+
+ "resetSettings": {
+ "message": "Einstellungen zurücksetzen",
+ "description": "used in general.html"
+ },
+
+ "customPopup": {
+ "message": "Popup personalisieren",
+ "description": "used in general.html"
+ },
+
+ "enable": {
+ "message": "Aktivieren",
+ "description": "used in imgur.html"
+ },
+
+ "protocol": {
+ "message": "Protokoll",
+ "description": "used in imgur.html"
+ },
+
+ "normal": {
+ "message": "Normal",
+ "description": "used in imgur.html"
+ },
+
+ "defaultInstances": {
+ "message": "Standard-Instanzen",
+ "description": "used in imgur.html"
+ },
+
+ "customInstances": {
+ "message": "Eigene Instanzen",
+ "description": "used in imgur.html"
+ },
+
+ "toggleAll": {
+ "message": "Alle umschalten",
+ "description": "used in common.js"
+ },
+
+ "frontend": {
+ "message": "Frontend",
+ "description": "used in maps.html"
+ },
+
+ "notFullyPrivate": {
+ "message": "Das ist kein völlig privates Frontend.",
+ "description": "used in pixiv.html"
+ },
+
+ "oldReddit": {
+ "message": "Altes Reddit",
+ "description": "used in reddit.html"
+ },
+
+ "bypassReddit": {
+ "message": "„Öffnen mit Reddit“ umgehen",
+ "description": "used in reddit.html"
+ },
+
+ "searchNote": {
+ "message": "Hinweis: Um das volle Potenzial der Suchweiterleitung auszunutzen, lege LibRedirect als Standardsuchmaschine fest.",
+ "description": "used in search.html"
+ },
+
+ "libSendFiles": {
+ "message": "LibRedirect: Dateien senden",
+ "description": "used in sendTargets.html"
+ },
+
+ "from": {
+ "message": "Von",
+ "description": "used in translate.html"
+ },
+
+ "to": {
+ "message": "Nach",
+ "description": "used in translate.html"
+ },
+
+ "default": {
+ "message": "Standard",
+ "description": "used in translate.html"
+ },
+
+ "auto": {
+ "message": "Auto",
+ "description": "used in translate.html"
+ },
+
+ "engine": {
+ "message": "Übersetzer",
+ "description": "used in translate.html"
+ },
+
+ "libTranslate": {
+ "message": "LibRedirect: Übersetzen",
+ "description": "used in translate.html"
+ },
+
+ "bypassTwitter": {
+ "message": "„Öffnen mit Twitter“ umgehen",
+ "description": "used in twitter.html"
+ },
+
+ "invidious": {
+ "message": "Invidious",
+ "description": "used in youtube.html"
+ },
+
+ "embeddedVids": {
+ "message": "Frontend für eingebettete Videos",
+ "description": "used in youtube.html"
+ },
+
+ "redirectType": {
+ "message": "Art der Weiterleitung",
+ "description": "used in youtube.html"
+ },
+
+ "both": {
+ "message": "beides",
+ "description": "used in youtube.html"
+ },
+
+ "onlyEmbedded": {
+ "message": "nur eingebettet",
+ "description": "used in youtube.html"
+ },
+
+ "onlyNotEmbedded": {
+ "message": "nur nicht-eingebunden",
+ "description": "used in youtube.html"
+ },
+
+ "bypassYoutube": {
+ "message": "„Auf YouTube ansehen“ umgehen",
+ "description": "used in youtube.html"
+ },
+
+ "enableCustom": {
+ "message": "Aktiviere benutzerdefinierte Einstellungen (verwendet Cookies und localStorage)",
+ "description": "used in youtube.html"
+ },
+
+ "autoplayVid": {
+ "message": "Video automatisch abspielen",
+ "description": "used in youtube.html"
+ },
+
+ "volume": {
+ "message": "Lautstärke: ",
+ "description": "used in youtube.html"
+ },
+
+ "playerStyle": {
+ "message": "Player-Stil",
+ "description": "used in youtube.html"
+ },
+
+ "alwaysLoop": {
+ "message": "Immer wiederholen",
+ "description": "used in youtube.html"
+ },
+
+ "playNext": {
+ "message": "Immer automatisch nächstes Video abspielen",
+ "description": "used in youtube.html"
+ },
+
+ "autoplayNext": {
+ "message": "Nächstes Video automatisch abspielen",
+ "description": "used in youtube.html"
+ },
+
+ "alwaysProxy": {
+ "message": "Videos immer durch Proxy leiten",
+ "description": "used in youtube.html"
+ },
+
+ "listenByDefault": {
+ "message": "Nur Ton als Standard",
+ "description": "used in youtube.html"
+ },
+
+ "defaultSpeed": {
+ "message": "Standardgeschwindigkeit",
+ "description": "used in youtube.html"
+ },
+
+ "prefQuality": {
+ "message": "Bevorzugte Videoqualität",
+ "description": "used in youtube.html"
+ },
+
+ "dash": {
+ "message": "DASH (automatische Qualität)",
+ "description": "used in youtube.html"
+ },
+
+ "prefDashQuality": {
+ "message": "Bevorzugte DASH-Videoqualität",
+ "description": "used in youtube.html"
+ },
+
+ "best": {
+ "message": "Höchste",
+ "description": "used in youtube.html"
+ },
+
+ "worst": {
+ "message": "Niedrigste",
+ "description": "used in youtube.html"
+ },
+
+ "defaultComments": {
+ "message": "Standardkommentare",
+ "description": "used in youtube.html"
+ },
+
+ "none": {
+ "message": "keine",
+ "description": "used in youtube.html"
+ },
+
+ "defaultCaptions": {
+ "message": "Standarduntertitel",
+ "description": "used in youtube.html"
+ },
+
+ "showRelated": {
+ "message": "Ähnliche Videos anzeigen",
+ "description": "used in youtube.html"
+ },
+
+ "showAnnotations": {
+ "message": "Anmerkungen standardmäßig anzeigen",
+ "description": "used in youtube.html"
+ },
+
+ "autoExtendDesc": {
+ "message": "Videobeschreibung automatisch erweitern",
+ "description": "used in youtube.html"
+ },
+
+ "interactive360": {
+ "message": "Interaktive 360-Grad-Videos (erfordert WebGL)",
+ "description": "used in youtube.html"
+ },
+
+ "savePlaybackPos": {
+ "message": "Wiedergabeposition speichern",
+ "description": "used in youtube.html"
+ },
+
+ "enableSponsorBlock": {
+ "message": "SponsorBlock einschalten",
+ "description": "used in youtube.html"
+ },
+
+ "skipSponsors": {
+ "message": "Sponsoren überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "skipIntermission": {
+ "message": "Pausen-/Intro-Animation überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "skipEndcards": {
+ "message": "Abspann überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "skipPreview": {
+ "message": "Vorschau/Rückschau überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "skipReminder": {
+ "message": "Interaktionserinnerung überspringen (Abonnieren)",
+ "description": "used in youtube.html"
+ },
+
+ "skipUnpaidPromo": {
+ "message": "Unbezahlte Werbung/Eigenwerbung überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "skipMusic": {
+ "message": "Musik überspringen: Nicht-Musik-Bereich",
+ "description": "used in youtube.html"
+ },
+
+ "skipHighlight": {
+ "message": "Höhepunkt überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "skipFiller": {
+ "message": "Lückenfüller überspringen",
+ "description": "used in youtube.html"
+ },
+
+ "audioOnly": {
+ "message": "Nur Audio",
+ "description": "used in youtube.html"
+ },
+
+ "defaultQuality": {
+ "message": "Standardqualität",
+ "description": "used in youtube.html"
+ },
+
+ "bufferingGoal": {
+ "message": "Pufferungsziel (in Sekunden)",
+ "description": "used in youtube.html"
+ },
+
+ "countrySelection": {
+ "message": "Länderauswahl",
+ "description": "used in youtube.html"
+ },
+
+ "defaultHomepage": {
+ "message": "Standard-Startseite",
+ "description": "used in youtube.html"
+ },
+
+ "trending": {
+ "message": "Trends",
+ "description": "used in youtube.html"
+ },
+
+ "feed": {
+ "message": "Abonnements",
+ "description": "used in youtube.html"
+ },
+
+ "showComments": {
+ "message": "Kommentare anzeigen",
+ "description": "used in youtube.html"
+ },
+
+ "minimizeDesc": {
+ "message": "Beschreibung standardmäßig minimieren",
+ "description": "used in youtube.html"
+ },
+
+ "storeHistory": {
+ "message": "Wiedergabeverlauf speichern",
+ "description": "used in youtube.html"
+ },
+
+ "enabledCodecs": {
+ "message": "Aktivierte Codecs (mehrere)",
+ "description": "used in youtube.html"
+ },
+
+ "disableLBRY": {
+ "message": "LBRY für Streaming deaktivieren",
+ "description": "used in youtube.html"
+ },
+
+ "enableProxyLBRY": {
+ "message": "Proxy für LBRY einschalten",
+ "description": "used in youtube.html"
+ },
+
+ "proxyLBRY": {
+ "message": "LBRY-Videos durch Proxy leiten",
+ "description": "used in youtube.html"
+ },
+
+ "skipNote": {
+ "message": "Springe zum letzten Wiedergabezeitpunkt bei bereits angesehenen Videos",
+ "description": "used in youtube.html"
+ },
+
+ "embedExceptions": {
+ "message": "Ausnahmen einbetten",
+ "description": "used in youtube.html"
+ },
+
+ "sec": {
+ "message": "Sekunden",
+ "description": "used in instance_offline.html"
+ },
+
+ "cancel": {
+ "message": "Abbrechen",
+ "description": "used in instance_offline.html"
+ },
+
+ "instanceIsOff": {
+ "message": "Instanz ist offline",
+ "description": "used in instance_offline.html"
+ },
+
+ "redirectionCanceled": {
+ "message": "Weiterleitung abgebrochen",
+ "description": "used in instance_offline.js"
+ }
+}
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
new file mode 100644
index 00000000..bd693d3c
--- /dev/null
+++ b/src/_locales/en/messages.json
@@ -0,0 +1,591 @@
+{
+ "extensionName": {
+ "message": "LibRedirect",
+ "description": "name of the extension"
+ },
+
+ "extensionDescription": {
+ "message": "A web extension that redirects popular sites to alternative privacy-friendly frontends and backends",
+ "description": "description of the extension"
+ },
+
+ "switchInstance": {
+ "message": "Switch Instance",
+ "description": "used in manifest.json as shortcut description"
+ },
+
+ "instance": {
+ "message": "Instance",
+ "description": "used in popup.html"
+ },
+
+ "settings": {
+ "message": "Settings",
+ "description": "used in popup.html"
+ },
+
+ "libOptions": {
+ "message": "LibRedirect Options",
+ "description": "used in general.html"
+ },
+
+ "general": {
+ "message": "General",
+ "description": "used in general.html"
+ },
+
+ "search": {
+ "message": "Search",
+ "description": "used in general.html"
+ },
+
+ "translate": {
+ "message": "Translate",
+ "description": "used in general.html"
+ },
+
+ "maps": {
+ "message": "Maps",
+ "description": "used in general.html"
+ },
+
+ "sendFiles": {
+ "message": "Send Files",
+ "description": "used in general.html"
+ },
+
+ "youtube": {
+ "message": "YouTube",
+ "description": "used in general.html"
+ },
+
+ "instagram": {
+ "message": "Instagram",
+ "description": "used in general.html"
+ },
+
+ "twitter": {
+ "message": "Twitter",
+ "description": "used in general.html"
+ },
+
+ "reddit": {
+ "message": "Reddit",
+ "description": "used in general.html"
+ },
+
+ "tiktok": {
+ "message": "TikTok",
+ "description": "used in general.html"
+ },
+
+ "ytmusic": {
+ "message": "YT Music",
+ "description": "used in general.html"
+ },
+
+ "imgur": {
+ "message": "Imgur",
+ "description": "used in general.html"
+ },
+
+ "pixiv": {
+ "message": "Pixiv",
+ "description": "used in general.html"
+ },
+
+ "wikipedia": {
+ "message": "Wikipedia",
+ "description": "used in general.html"
+ },
+
+ "peertube": {
+ "message": "PeerTube",
+ "description": "used in general.html"
+ },
+
+ "spotify": {
+ "message": "Spotify",
+ "description": "used in general.html"
+ },
+
+ "medium": {
+ "message": "Medium",
+ "description": "used in general.html"
+ },
+
+ "tor": {
+ "message": "Tor",
+ "description": "used in imgur.html"
+ },
+
+ "pixivMoe": {
+ "message": "pixiv萌え",
+ "description": "used in pixiv.html"
+ },
+
+ "theme": {
+ "message": "Theme",
+ "description": "used in general.html"
+ },
+
+ "system": {
+ "message": "System",
+ "description": "used in general.html"
+ },
+
+ "light": {
+ "message": "Light",
+ "description": "used in general.html"
+ },
+
+ "dark": {
+ "message": "Dark",
+ "description": "used in general.html"
+ },
+
+ "applyTheme": {
+ "message": "Apply theme to sites",
+ "description": "used in general.html"
+ },
+
+ "alwaysPref": {
+ "message": "Always use Preferred Instances",
+ "description": "used in general.html"
+ },
+
+ "autoRedirect": {
+ "message": "Auto Redirect of offline instances",
+ "description": "used in general.html"
+ },
+
+ "exceptions": {
+ "message": "Exceptions",
+ "description": "used in general.html"
+ },
+
+ "updateInstances": {
+ "message": "Update Instances",
+ "description": "used in general.html"
+ },
+
+ "importSettings": {
+ "message": "Import Settings",
+ "description": "used in general.html"
+ },
+
+ "exportSettings": {
+ "message": "Export Settings",
+ "description": "used in general.html"
+ },
+
+ "resetSettings": {
+ "message": "Reset Settings",
+ "description": "used in general.html"
+ },
+
+ "customPopup": {
+ "message": "Customize Popup",
+ "description": "used in general.html"
+ },
+
+ "enable": {
+ "message": "Enable",
+ "description": "used in imgur.html"
+ },
+
+ "protocol": {
+ "message": "Protocol",
+ "description": "used in imgur.html"
+ },
+
+ "normal": {
+ "message": "Normal",
+ "description": "used in imgur.html"
+ },
+
+ "defaultInstances": {
+ "message": "Default Instances",
+ "description": "used in imgur.html"
+ },
+
+ "customInstances": {
+ "message": "Custom Instances",
+ "description": "used in imgur.html"
+ },
+
+ "toggleAll": {
+ "message": "Toggle all",
+ "description": "used in common.js"
+ },
+
+ "frontend": {
+ "message": "Frontend",
+ "description": "used in maps.html"
+ },
+
+ "notFullyPrivate": {
+ "message": "This isn't a fully private frontend.",
+ "description": "used in pixiv.html"
+ },
+
+ "oldReddit": {
+ "message": "Old Reddit",
+ "description": "used in reddit.html"
+ },
+
+ "bypassReddit": {
+ "message": "Bypass \"Open in Reddit\"",
+ "description": "used in reddit.html"
+ },
+
+ "searchNote": {
+ "message": "Note: To use Search to its full potential, make LibRedirect as the Default Search Engine",
+ "description": "used in search.html"
+ },
+
+ "libSendFiles": {
+ "message": "LibRedirect: Send Files",
+ "description": "used in sendTargets.html"
+ },
+
+ "from": {
+ "message": "From",
+ "description": "used in translate.html"
+ },
+
+ "to": {
+ "message": "To",
+ "description": "used in translate.html"
+ },
+
+ "default": {
+ "message": "Default",
+ "description": "used in translate.html"
+ },
+
+ "auto": {
+ "message": "Auto",
+ "description": "used in translate.html"
+ },
+
+ "engine": {
+ "message": "Engine",
+ "description": "used in translate.html"
+ },
+
+ "libTranslate": {
+ "message": "LibRedirect: Translate",
+ "description": "used in translate.html"
+ },
+
+ "bypassTwitter": {
+ "message": "Bypass \"Open in Twitter\"",
+ "description": "used in twitter.html"
+ },
+
+ "invidious": {
+ "message": "Invidious",
+ "description": "used in youtube.html"
+ },
+
+ "embeddedVids": {
+ "message": "Embedded Videos Frontend",
+ "description": "used in youtube.html"
+ },
+
+ "redirectType": {
+ "message": "Redirect Type",
+ "description": "used in youtube.html"
+ },
+
+ "both": {
+ "message": "both",
+ "description": "used in youtube.html"
+ },
+
+ "onlyEmbedded": {
+ "message": "only embedded",
+ "description": "used in youtube.html"
+ },
+
+ "onlyNotEmbedded": {
+ "message": "only not embedded",
+ "description": "used in youtube.html"
+ },
+
+ "bypassYoutube": {
+ "message": "Bypass \"Watch on YouTube\"",
+ "description": "used in youtube.html"
+ },
+
+ "enableCustom": {
+ "message": "Enable Custom Settings (will use cookies and localStorage)",
+ "description": "used in youtube.html"
+ },
+
+ "autoplayVid": {
+ "message": "Autoplay Video",
+ "description": "used in youtube.html"
+ },
+
+ "volume": {
+ "message": "Volume: ",
+ "description": "used in youtube.html"
+ },
+
+ "playerStyle": {
+ "message": "Player Style",
+ "description": "used in youtube.html"
+ },
+
+ "alwaysLoop": {
+ "message": "Always loop",
+ "description": "used in youtube.html"
+ },
+
+ "playNext": {
+ "message": "Play next by default",
+ "description": "used in youtube.html"
+ },
+
+ "autoplayNext": {
+ "message": "Autoplay next video",
+ "description": "used in youtube.html"
+ },
+
+ "alwaysProxy": {
+ "message": "Always proxy videos",
+ "description": "used in youtube.html"
+ },
+
+ "listenByDefault": {
+ "message": "Listen by default",
+ "description": "used in youtube.html"
+ },
+
+ "defaultSpeed": {
+ "message": "Default speed",
+ "description": "used in youtube.html"
+ },
+
+ "prefQuality": {
+ "message": "Preferred video quality",
+ "description": "used in youtube.html"
+ },
+
+ "dash": {
+ "message": "DASH (adaptive quality)",
+ "description": "used in youtube.html"
+ },
+
+ "prefDashQuality": {
+ "message": "Preferred DASH video quality",
+ "description": "used in youtube.html"
+ },
+
+ "best": {
+ "message": "Best",
+ "description": "used in youtube.html"
+ },
+
+ "worst": {
+ "message": "Worst",
+ "description": "used in youtube.html"
+ },
+
+ "defaultComments": {
+ "message": "Default comments",
+ "description": "used in youtube.html"
+ },
+
+ "none": {
+ "message": "None",
+ "description": "used in youtube.html"
+ },
+
+ "defaultCaptions": {
+ "message": "Default captions",
+ "description": "used in youtube.html"
+ },
+
+ "showRelated": {
+ "message": "Show related videos",
+ "description": "used in youtube.html"
+ },
+
+ "showAnnotations": {
+ "message": "Show annotations by default",
+ "description": "used in youtube.html"
+ },
+
+ "autoExtendDesc": {
+ "message": "Automatically extend video description",
+ "description": "used in youtube.html"
+ },
+
+ "interactive360": {
+ "message": "Interactive 360 degree videos (requires WebGL)",
+ "description": "used in youtube.html"
+ },
+
+ "savePlaybackPos": {
+ "message": "Save playback position",
+ "description": "used in youtube.html"
+ },
+
+ "enableSponsorBlock": {
+ "message": "Enable SponsorBlock",
+ "description": "used in youtube.html"
+ },
+
+ "skipSponsors": {
+ "message": "Skip sponsors",
+ "description": "used in youtube.html"
+ },
+
+ "skipIntermission": {
+ "message": "Skip Intermission/Intro Animation",
+ "description": "used in youtube.html"
+ },
+
+ "skipEndcards": {
+ "message": "Skip Endcards/Credits",
+ "description": "used in youtube.html"
+ },
+
+ "skipPreview": {
+ "message": "Skip Preview/Recap",
+ "description": "used in youtube.html"
+ },
+
+ "skipReminder": {
+ "message": "Skip interaction reminder (subscribe)",
+ "description": "used in youtube.html"
+ },
+
+ "skipUnpaidPromo": {
+ "message": "Skip Unpaid/Self Promotion",
+ "description": "used in youtube.html"
+ },
+
+ "skipMusic": {
+ "message": "Skip Music: Non-Music Section",
+ "description": "used in youtube.html"
+ },
+
+ "skipHighlight": {
+ "message": "Skip Highlight",
+ "description": "used in youtube.html"
+ },
+
+ "skipFiller": {
+ "message": "Skip Filler Tangent",
+ "description": "used in youtube.html"
+ },
+
+ "audioOnly": {
+ "message": "Audio only",
+ "description": "used in youtube.html"
+ },
+
+ "defaultQuality": {
+ "message": "Default quality",
+ "description": "used in youtube.html"
+ },
+
+ "bufferingGoal": {
+ "message": "Buffering Goal (in seconds)",
+ "description": "used in youtube.html"
+ },
+
+ "countrySelection": {
+ "message": "Country selection",
+ "description": "used in youtube.html"
+ },
+
+ "defaultHomepage": {
+ "message": "Default homepage",
+ "description": "used in youtube.html"
+ },
+
+ "trending": {
+ "message": "Trending",
+ "description": "used in youtube.html"
+ },
+
+ "feed": {
+ "message": "Feed",
+ "description": "used in youtube.html"
+ },
+
+ "showComments": {
+ "message": "Show comments",
+ "description": "used in youtube.html"
+ },
+
+ "minimizeDesc": {
+ "message": "Minimize description by default",
+ "description": "used in youtube.html"
+ },
+
+ "storeHistory": {
+ "message": "Store watch history",
+ "description": "used in youtube.html"
+ },
+
+ "enabledCodecs": {
+ "message": "Enabled codecs (multiple)",
+ "description": "used in youtube.html"
+ },
+
+ "disableLBRY": {
+ "message": "Disable LBRY for streaming",
+ "description": "used in youtube.html"
+ },
+
+ "enableProxyLBRY": {
+ "message": "Enable proxy for LBRY",
+ "description": "used in youtube.html"
+ },
+
+ "proxyLBRY": {
+ "message": "Proxy LBRY videos",
+ "description": "used in youtube.html"
+ },
+
+ "skipNote": {
+ "message": "Skip to the last watched point when encountering a video already seen",
+ "description": "used in youtube.html"
+ },
+
+ "embedExceptions": {
+ "message": "Embed exceptions",
+ "description": "used in youtube.html"
+ },
+
+ "instanceOffline": {
+ "message": "This instance is offline, you'll be redirected after&nbsp;",
+ "description": "used in instance_offline.html"
+ },
+
+ "sec": {
+ "message": "seconds",
+ "description": "used in instance_offline.html"
+ },
+
+ "cancel": {
+ "message": "Cancel",
+ "description": "used in instance_offline.html"
+ },
+
+ "instanceIsOff": {
+ "message": "Instance is offline",
+ "description": "used in instance_offline.html"
+ },
+
+ "redirectionCanceled": {
+ "message": "Redirection canceled",
+ "description": "used in instance_offline.js"
+ }
+}
diff --git a/src/assets/javascripts/helpers/common.js b/src/assets/javascripts/helpers/common.js
index f3982cd6..545fc9c4 100644
--- a/src/assets/javascripts/helpers/common.js
+++ b/src/assets/javascripts/helpers/common.js
@@ -7,6 +7,7 @@ import redditHelper from "./reddit.js";
import searchHelper from "./search.js";
import translateHelper from "./translate/translate.js";
import wikipediaHelper from "./wikipedia.js";
+import localise from '../localise.js'
function getRandomInstance(instances) {
return instances[~~(instances.length * Math.random())];
@@ -99,10 +100,12 @@ function processDefaultCustomInstances(
nameCheckListElement.innerHTML =
[
- `<div>Toggle All<input type="checkbox" id="${name}-${protocol}-toogle-all" /></div>`,
+ `<div><x data-localise="__MSG_toggleAll__">Toggle All</x><input type="checkbox" id="${name}-${protocol}-toogle-all" /></div>`,
...nameHelper.getRedirects()[name][protocol].map((x) => `<div>${x}<input type="checkbox" id="${x}" /></div>`),
].join('\n<hr>\n');
+ localise.localisePage();
+
calcNameCheckBoxes();
document.getElementById(`${name}-${protocol}-toogle-all`).addEventListener("change", event => {
if (event.target.checked)
@@ -168,10 +171,21 @@ function processDefaultCustomInstances(
})
}
+function browserLang() {
+ var userLang = navigator.language || navigator.userLanguage;
+ return userLang;
+}
+
+function isRtl() {
+ return ["ar", "iw", "ku", "fa", "ur"].includes(browserLang())
+}
+
export default {
getRandomInstance,
updateInstances,
protocolHost,
isFirefox,
processDefaultCustomInstances,
+ browserLang,
+ isRtl,
};
diff --git a/src/assets/javascripts/localise.js b/src/assets/javascripts/localise.js
index 78e4c907..7c24d6c7 100644
--- a/src/assets/javascripts/localise.js
+++ b/src/assets/javascripts/localise.js
@@ -33,3 +33,7 @@ function localisePage() {
}
localisePage();
+
+export default {
+ localisePage
+} \ No newline at end of file
diff --git a/src/instances/data.json b/src/instances/data.json
index 13d6b5db..1155cc36 100644
--- a/src/instances/data.json
+++ b/src/instances/data.json
@@ -4,6 +4,7 @@
"https://yewtu.be",
"https://vid.puffyan.us",
"https://invidious.snopyta.org",
+ "https://invidious.kavin.rocks",
"https://invidio.xamh.de",
"https://inv.riverside.rocks",
"https://invidious-us.kavin.rocks",
@@ -18,8 +19,7 @@
"https://invidious.esmailelbob.xyz",
"https://invidious.privacy.gd",
"https://youtube.076.ne.jp",
- "https://invidious.namazso.eu",
- "https://invidious.kavin.rocks"
+ "https://invidious.namazso.eu"
],
"tor": [
"http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion",
@@ -127,7 +127,6 @@
"normal": [
"https://teddit.net",
"https://teddit.ggc-project.de",
- "https://teddit.kavin.rocks",
"https://teddit.zaggy.nl",
"https://teddit.namazso.eu",
"https://teddit.nautolan.racing",
@@ -142,10 +141,11 @@
"https://teddit.sethforprivacy.com",
"https://teddit.totaldarkness.net",
"https://teddit.adminforge.de",
- "https://teddit.bus-hit.me"
+ "https://teddit.bus-hit.me",
+ "https://teddit.froth.zone",
+ "https://trom.tf/"
],
"tor": [
- "http://teddit4w6cmzmj5kimhfcavs7yo5s7alszvsi2khqutqtlaanpcftfyd.onion",
"http://snoo.ioensistjs7wd746zluwixvojbbkxhr37lepdvwtdfeav673o64iflqd.onion",
"http://ibarajztopxnuhabfu7fg6gbudynxofbnmvis3ltj6lfx47b6fhrd5qd.onion",
"http://tedditfyn6idalzso5wam5qd3kdtxoljjhbrbbx34q2xkcisvshuytad.onion",
@@ -158,10 +158,14 @@
"https://wikiless.org",
"https://wikiless.alefvanoon.xyz",
"https://wikiless.sethforprivacy.com",
- "https://wiki.604kph.xyz"
+ "https://wiki.604kph.xyz",
+ "https://wikiless.lunar.icu",
+ "https://https://wiki.froth.zone",
+ "https://hflqp2ejxygpj6cdwo3ogfieqmxw3b56w7dblt7bor2ltwk6kcfa.b32.i2p"
],
"tor": [
- "http://dj2tbh2nqfxyfmvq33cjmhuw7nb6am7thzd3zsjvizeqf374fixbrxyd.onion"
+ "http://dj2tbh2nqfxyfmvq33cjmhuw7nb6am7thzd3zsjvizeqf374fixbrxyd.onion",
+ "http://c2pesewpalbi6lbfc5hf53q4g3ovnxe4s7tfa6k2aqkf7jd7a7dlz5ad.onion"
]
},
"scribe": {
@@ -246,7 +250,6 @@
"https://searx.hardwired.link",
"https://searx.josie.lol",
"https://searx.kujonello.cf",
- "https://searx.lavatech.top",
"https://searx.mastodontech.de",
"https://searx.mha.fi",
"https://searx.mxchange.org",
@@ -300,17 +303,13 @@
],
"tor": [
"http://3afisqjw2rxm6z7mmstyt5rx75qfqrgxnkzftknbp2vhipr2nrmrjdyd.onion",
- "http://searxbgetrkiwxhdwi6svpgh7eotopqyxhbqiokrwzg7dcte44t36kyd.onion",
- "http://suche.xyzco456vwisukfg.onion",
"http://w5rl6wsd7mzj4bdkbuqvzidet5osdsm5jhg2f7nvfidakfq5exda5wid.onion",
"http://4n53nafyi77iplnbrpmxnp3x4exbswwxigujaxy3b37fvr7bvlopxeyd.onion",
"http://z34ambyi6makk6ta7ksog2sljly2ctt2sa3apekb7wkllk72sxecdtad.onion",
- "http://search.4bkxscubgtxwvhpe.onion",
- "http://juy4e6eicawzdrz7.onion",
+ "http://yra4tke2pwcnatxjkufpw6kvebu3h3ti2jca2lcdpgx3mpwol326lzid.onion",
"http://z5vawdol25vrmorm4yydmohsd4u6rdoj2sylvoi3e3nqvxkvpqul7bqd.onion",
"http://zbuc3bbzbfdqqo2x46repx2ddajbha6fpsjeeptjhhhhzji3zopxdqyd.onion",
"http://f4qfqajszpx5b7itzxt6mb7kj4ktpgbdq7lq6xaiqyqx6a7de3epptad.onion",
- "http://searx.cwuzdtzlubq5uual.onion",
"http://rq2w52kyrif3xpfihkgjnhqm3a5aqhoikpv72z3drpjglfzc2wr5z4yd.onion",
"http://searx3aolosaf3urwnhpynlhuokqsgz47si4pzz5hvb7uuzyjncl2tid.onion",
"http://searx.bsbvtqi5oq2cqzn32zt4cr2f2z2rwots3dq7gmdcnlyqoxko2wx6reqd.onion"
@@ -351,12 +350,13 @@
]
},
"peertube": [
+ "https://tubulus.openlatin.org",
+ "https://raudsepp.live",
"https://shiotube.f5.si",
"https://views.southfox.me",
"https://vide.oxel.me",
"https://video.mttv.it",
"https://peertube.cloud.nerdraum.de",
- "https://wansaw.com",
"https://v.jrgnsn.net",
"https://vid.pretok.tv",
"https://videos.slownewsdayshow.com",
@@ -382,7 +382,6 @@
"https://video.torgvisor.ru",
"https://wwtube.net",
"https://video.snug.moe",
- "https://hast.tv",
"https://video.avant-le-strike.buzz",
"https://videos.ritimo.org",
"https://videos.ephphatha.church",
@@ -418,7 +417,6 @@
"https://videotube.duckdns.org",
"https://peertube.1001solutions.net",
"https://peertube.razorserver.fr",
- "https://hitchtube.fr",
"https://tv.based.quest",
"https://peertube.beardedtek.com",
"https://casnocensure.site",
@@ -442,7 +440,6 @@
"https://testube.distrilab.fr",
"https://peertube.rse43.com",
"https://podlibre.video",
- "https://pire.artisanlogiciel.net",
"https://libremedia.video",
"https://vid.lelux.fi",
"https://v.wolfskaempf.de",
@@ -512,7 +509,6 @@
"https://zapping.no-ip.info",
"https://video.anartist.org",
"https://peertube.home.x0r.fr",
- "https://whitedissidenttv.com",
"https://peertube.marud.fr",
"https://freetubehub.live",
"https://peertube.librelabucm.org",
@@ -537,7 +533,6 @@
"https://pocketnetpeertube2.nohost.me",
"https://peertube.bubbletea.dev",
"https://pt.maciej.website",
- "https://thevideoverse.com",
"https://peertube.art3mis.de",
"https://open.movie",
"https://tube.rfc1149.net",
@@ -595,7 +590,6 @@
"https://quantube.win",
"https://tv.orion-serv.fr",
"https://tube.sloth.network",
- "https://peertube.iselfhost.com",
"https://video.interru.io",
"https://tube.cnr.it",
"https://tube.alado.space",
@@ -622,7 +616,6 @@
"https://tube.22decembre.eu",
"https://video.berzs.xyz",
"https://invoice.peertube.biz",
- "https://videos-passages.huma-num.fr",
"https://pt.sfunk1x.com",
"https://video.antopie.org",
"https://vtr.chikichiki.tube",
@@ -667,7 +660,6 @@
"https://xn--modervr-jxa.space",
"https://watch.daspr.io",
"https://video.windfluechter.org",
- "https://peertube.pixificial.xyz",
"https://pocketnetpeertube10.nohost.me",
"https://tube.io18.top",
"https://peertube.remerge.net",
@@ -722,7 +714,6 @@
"https://video.benetou.fr",
"https://bideoak.argia.eus",
"https://video.hainry.fr",
- "https://vid.addyadds.us",
"https://video.gresille.org",
"https://peertube.tangentfox.com",
"https://puffy.tube",
@@ -867,7 +858,6 @@
"https://video.076.ne.jp",
"https://stream.elven.pw",
"https://juggling.digital",
- "https://my.bunny.cafe",
"https://videos.rampin.org",
"https://bitcointv.com",
"https://videos.lucero.top",
diff --git a/src/manifest.json b/src/manifest.json
index 5a428c62..2aaa505e 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -1,6 +1,6 @@
{
- "name": "LibRedirect",
- "description": "A web extension that redirects popular sites to alternative privacy-friendly frontends and backends",
+ "name": "__MSG_extensionName__",
+ "description": "__MSG_extensionDescription__",
"version": "1.6.0",
"manifest_version": 2,
"browser_specific_settings": {
@@ -28,7 +28,7 @@
"<all_urls>"
],
"browser_action": {
- "default_title": "LibRedirect",
+ "default_title": "__MSG_extensionName__",
"browser_style": false,
"default_popup": "pages/popup/popup.html",
"default_icon": {
@@ -45,7 +45,7 @@
},
"chrome_settings_overrides": {
"search_provider": {
- "name": "LibRedirect",
+ "name": "__MSG_extensionName__",
"keyword": "libredirect",
"favicon_url": "https://raw.githubusercontent.com/libredirect/libredirect/master/src/assets/images/libredirect-16.png",
"search_url": "https://libredirect.invalid/?q={searchTerms}",
@@ -58,9 +58,10 @@
"suggested_key": {
"default": "Alt+Shift+L"
},
- "description": "Switch Instance"
+ "description": "__MSG_switchInstance__"
}
},
+ "default_locale": "en",
"update_url": "https://raw.githubusercontent.com/libredirect/libredirect/master/src/updates/updates.xml",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAroWDSoSRZ1scj+eJRrvnhJbrqXTKnhQuxs6+AJg16sqr0bsMdFV+MSY4i4xnK+K5WOYkBliWXgUyk/wzicoAjOnSJddrL/Md4FuWHI2NVIkrlsLOrYkygi5OLqGPajRH/w8Cdmg7KzEpXe/OnYV0/qS8li8huEdTzdeLdhfbiVl1j3DOr4OJALQ7mPeeNFHFo/oVQ+OkSezWLezA5jUGfhtzPYV6u1TXzX7lCi8E/BbDbwkvvXOMcjXCv08kjdLOY2djCA2a6zr0xAb3q8DlexAMZ8vMof7AQRFtBKhLc9n9VFoipMMdBOVQQj/eIcRILBrmkcZNnJxFKiHNJ+NcZQIDAQAB"
-} \ No newline at end of file
+}
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index c0b1b73f..e54627c4 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -237,7 +237,7 @@ function changeWholeInstance(url) {
browser.commands.onCommand.addListener(
command => {
if (command === 'switchInstance')
- chrome.tabs.query(
+ browser.tabs.query(
{ active: true, currentWindow: true },
tabs => {
let url;
@@ -252,13 +252,13 @@ browser.commands.onCommand.addListener(
browser.menus.create({
id: "settings",
- title: "Settings",
+ title: browser.i18n.getMessage("Settings"),
contexts: ["browser_action"]
});
browser.menus.create({
id: "switchInstance",
- title: "Switch Instance",
+ title: chrome.i18n.getMessage("switchInstance"),
contexts: ["browser_action"]
});
@@ -272,4 +272,4 @@ browser.menus.onClicked.addListener((info, tab) => {
}
else if (info.menuItemId == 'settings')
browser.runtime.openOptionsPage()
-}); \ No newline at end of file
+});
diff --git a/src/pages/errors/instance_offline.html b/src/pages/errors/instance_offline.html
index 09ffb431..4c47997b 100644
--- a/src/pages/errors/instance_offline.html
+++ b/src/pages/errors/instance_offline.html
@@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>Instance is offline</title>
+ <title data-localise="__MSG_instanceIsOff__">Instance is offline</title>
<link href="../stylesheets/styles.css" rel="stylesheet" />
<style>
body {
@@ -29,13 +29,14 @@
<body>
<div>
- <p id="message">This instance is offline, you'll be redirected after&nbsp;<span
- id="number">2</span>&nbsp;seconds
+ <p id="message" data-localise="__MSG_instanceOffline__">This instance is offline, you'll be redirected after&nbsp;<span
+ id="number">2</span>&nbsp;<x data-localise="__MSG_sec__">seconds</x>
</p>
- <button id="cancel">Cancel</button>
+ <button id="cancel" data-localise="__MSG_cancel__">Cancel</button>
</div>
<script src="instance_offline.js"></script>
+ <script src="../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/errors/instance_offline.js b/src/pages/errors/instance_offline.js
index c3aee2c1..ba9dd522 100644
--- a/src/pages/errors/instance_offline.js
+++ b/src/pages/errors/instance_offline.js
@@ -16,5 +16,5 @@ setTimeout(
let isCanceled = false;
document.getElementById("cancel").addEventListener("click", () => {
isCanceled = true;
- document.getElementById("message").innerHTML = "Redirection Canceled";
-}) \ No newline at end of file
+ document.getElementById("message").innerHTML = browser.i18n.getMessage('redirectionCanceled');
+})
diff --git a/src/pages/options/general/general.html b/src/pages/options/general/general.html
index 31083704..ee670e98 100644
--- a/src/pages/options/general/general.html
+++ b/src/pages/options/general/general.html
@@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg" />
<link href="../../stylesheets/styles.css" rel="stylesheet" />
- <title>LibRedirect Options</title>
+ <title data-localise="__MSG_libOptions__">LibRedirect Options</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
@@ -17,47 +17,47 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html" class="selected">General</a>
+ <a href="../general/general.html" class="selected" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
<!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
@@ -66,15 +66,15 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
@@ -82,7 +82,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
@@ -90,103 +90,86 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
- <section class="option-block general">
- <div>
- <div class="some-block option-block">
- <h4>Theme</h4>
- <select id="theme">
- <option value="DEFAULT">System</option>
- <option value="light">Light</option>
- <option value="dark">Dark</option>
- </select>
- </div>
+ <section class="option-block">
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_theme__">Theme</h4>
+ <select id="theme">
+ <option value="DEFAULT" data-localise="__MSG_system__">System</option>
+ <option value="light" data-localise="__MSG_light__">Light</option>
+ <option value="dark" data-localise="__MSG_dark__">Dark</option>
+ </select>
+ </div>
- <div class="some-block option-block">
- <h4>Apply Theme to sites</h4>
- <input id="apply-theme-to-sites" type="checkbox" checked />
- </div>
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_applyTheme__">Apply Theme to sites</h4>
+ <input id="apply-theme-to-sites" type="checkbox" checked />
+ </div>
- <div class="some-block option-block">
- <h4>Always use Preferred Instances</h4>
- <input id="always-use-preferred" type="checkbox" checked />
- </div>
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_alwaysPref__">Always use Preferred Instances</h4>
+ <input id="always-use-preferred" type="checkbox" checked />
+ </div>
- <div class="some-block option-block">
- <h4>Auto Redirect of offline instances</h4>
- <input id="auto-redirect" type="checkbox" checked />
- </div>
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_autoRedirect__">Auto Redirect of offline instances</h4>
+ <input id="auto-redirect" type="checkbox" checked />
+ </div>
+
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_exceptions__">Exceptions</h4>
+ </div>
<div class="some-block option-block">
<h4>Exceptions</h4>
</div>
- <form id="custom-exceptions-instance-form">
- <div class="some-block option-block">
- <div class="some-block" style="padding:0;">
- <input id="exceptions-custom-instance" placeholder="https://www.google.com" type="url" />
- &nbsp;
- <select id="exceptions-custom-instance-type">
- <option value="url">URL</option>
- <option value="regex">Regex</option>
- </select>
- &nbsp;
- </div>
- <button type="submit" class="add" id="exceptions-add-instance">
- <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
- </svg>
- </button>
- </div>
- </form>
- <div class="checklist" id="exceptions-custom-checklist"></div>
-
- <div class="buttons buttons-inline">
- <a class="button button-inline" id="update-instances">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
- </svg>
- Update Instances
- </a>
- &nbsp; &nbsp;
- <label for="import-settings" class="button button-inline">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" />
- </svg>&nbsp;
- Import Settings
- <input type="file" class="button button-inline" style="display:none;" id="import-settings">
- </label>
- &nbsp; &nbsp;
- <a class="button button-inline" id="export-settings">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" />
- </svg>&nbsp;
- Export Settings
- </a>
- &nbsp; &nbsp;
- <a class="button button-inline" id="reset-settings">
- <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24"
- width="24px" fill="currentColor">
+ <div class="buttons buttons-inline">
+ <a class="button button-inline" id="update-instances">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
+ </svg>
+ <x data-localise="__MSG_updateInstances__">Update Instances</x>
+ </a>
+ &nbsp; &nbsp;
+ <label for="import-settings" class="button button-inline">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" />
+ </svg>&nbsp;
+ <x data-localise="__MSG_importSettings__">Import Settings</x>
+ <input type="file" class="button button-inline" style="display:none;" id="import-settings">
+ </label>
+ &nbsp; &nbsp;
+ <a class="button button-inline" id="export-settings">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" />
+ </svg>&nbsp;
+ <x data-localise="__MSG_exportSettings__">Export Settings</x>
+ </a>
+ &nbsp; &nbsp;
+ <a class="button button-inline" id="reset-settings">
+ <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24"
+ width="24px" fill="currentColor">
+ <g>
<g>
<g>
<path
@@ -195,11 +178,16 @@
d="M6,13c0-1.65,0.67-3.15,1.76-4.24L6.34,7.34C4.9,8.79,4,10.79,4,13c0,4.08,3.05,7.44,7,7.93v-2.02 C8.17,18.43,6,15.97,6,13z" />
</g>
</g>
- </svg>
- Reset Settings
- </a>
- </div>
+ </g>
+ </svg>
+ <x data-localise="__MSG_resetSettings__">Reset Settings</x>
+ </a>
+ </div>
+
+ <hr>
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_customPopup__">Customize Popup</h4>
</div>
<div id="customize-popup">
<div class="some-block option-block">
@@ -271,37 +259,28 @@
<input type="checkbox" id="spotify" />
</div>
<div>
- <div>
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
- </svg>
- Search
- </div>
- <input type="checkbox" id="search" />
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
+ </svg>
+ <x data-localise="__MSG_search__">Search</x>
</div>
<div>
- <div>
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
- </svg>
- Translate
- </div>
- <input type="checkbox" id="translate" />
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
+ </svg>
+ <x data-localise="__MSG_translate__">Translate</x>
</div>
<div>
- <div>
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z" />
- </svg>
- Maps
- </div>
- <input type="checkbox" id="maps" />
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z" />
+ </svg>
+ <x data-localise="__MSG_maps__">Maps</x>
</div>
<div>
<div>
@@ -338,13 +317,12 @@
</div>
<div>
<div>
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
- </svg>
- Send Files
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
+ </svg>
</div>
- <input type="checkbox" id="sendTargets" />
+ Send Files
</div>
</div>
</div>
@@ -352,7 +330,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./general.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/imgur/imgur.html b/src/pages/options/imgur/imgur.html
index 37b7bda1..578ad70d 100644
--- a/src/pages/options/imgur/imgur.html
+++ b/src/pages/options/imgur/imgur.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Imgur</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,57 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html" class="selected">Imgur</a>
+ <a href="../imgur/imgur.html" class="selected" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -79,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -98,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,22 +123,22 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-imgur" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -146,12 +146,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="rimgo-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-rimgo-normal-instance-form">
<div class="some-block option-block">
@@ -168,12 +168,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="rimgo-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-rimgo-tor-instance-form">
<div class="some-block option-block">
@@ -193,7 +193,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./imgur.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/init.js b/src/pages/options/init.js
index 60958682..a16bfae2 100644
--- a/src/pages/options/init.js
+++ b/src/pages/options/init.js
@@ -1,4 +1,5 @@
window.browser = window.browser || window.chrome;
+import commonHelper from "../../assets/javascripts/helpers/common.js";
function changeTheme() {
browser.storage.local.get(
@@ -32,3 +33,5 @@ changeTheme()
browser.storage.onChanged.addListener(changeTheme)
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", changeTheme)
+
+if (commonHelper.isRtl) document.getElementsByTagName("body")[0].classList.add("rtl"); \ No newline at end of file
diff --git a/src/pages/options/instagram/instagram.html b/src/pages/options/instagram/instagram.html
index 51b6c58d..f61f0015 100644
--- a/src/pages/options/instagram/instagram.html
+++ b/src/pages/options/instagram/instagram.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Instagram</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,48 +19,55 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
+
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
+
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html" class="selected">Instagram</a>
+ <a href="../instagram/instagram.html" class="selected" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
+
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
+
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
+
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
+
<div class="title">
<!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
@@ -68,23 +75,26 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
+
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
@@ -92,47 +102,47 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-bibliogram" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
<hr>
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="bibliogram-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-bibliogram-normal-instance-form">
<div class="some-block option-block">
@@ -150,12 +160,12 @@
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="bibliogram-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-bibliogram-tor-instance-form">
<div class="some-block option-block">
@@ -174,7 +184,7 @@
</section>
<script type="module" src="../init.js"></script>
<script type="module" src="./instagram.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/lbry/lbry.html b/src/pages/options/lbry/lbry.html
index 16ea3875..6e0e43fe 100644
--- a/src/pages/options/lbry/lbry.html
+++ b/src/pages/options/lbry/lbry.html
@@ -10,56 +10,68 @@
<title>LibRedirect: LBRY/Odysee</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
width="26px" fill="currentColor">
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
+
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
+
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
+
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
+
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
+
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
+
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
+
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
+
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
+
<div class="title">
<!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
@@ -67,59 +79,66 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
+
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html" class="selected">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" class="selected" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
+
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-lbry" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -127,12 +146,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="librarian-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-librarian-normal-instance-form">
<div class="some-block option-block">
@@ -149,12 +168,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="librarian-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-librarian-tor-instance-form">
<div class="some-block option-block">
@@ -174,7 +193,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./lbry.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script> -->
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/maps/maps.html b/src/pages/options/maps/maps.html
index 6f10c270..849c5c1c 100644
--- a/src/pages/options/maps/maps.html
+++ b/src/pages/options/maps/maps.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Maps</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
@@ -20,57 +20,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -80,25 +80,26 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +108,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +116,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html" class="selected">Maps</a>
+ <a href="../maps/maps.html" class="selected" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,7 +124,7 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
@@ -131,12 +132,12 @@
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-osm" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Frontend</h4>
+ <h4 data-localise="__MSG_frontend__">Frontend</h4>
<select id="maps-frontend">
<option value="osm">OpenStreetMap</option>
<option value="facil">Facil Map</option>
@@ -146,7 +147,7 @@
</section>
<script type="module" src="../init.js"></script>
<script type="module" src="./maps.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/medium/medium.html b/src/pages/options/medium/medium.html
index ee922d17..bc0b9d69 100644
--- a/src/pages/options/medium/medium.html
+++ b/src/pages/options/medium/medium.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Medium</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,57 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -79,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html" class="selected">Medium</a>
+ <a href="../medium/medium.html" class="selected" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -98,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,23 +123,23 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-medium" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -147,12 +147,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="scribe-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-scribe-normal-instance-form">
<div class="some-block option-block">
@@ -170,12 +170,12 @@
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="scribe-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-scribe-tor-instance-form">
<div class="some-block option-block">
@@ -195,7 +195,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./medium.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/peertube/peertube.html b/src/pages/options/peertube/peertube.html
index 23009d1d..fb95dd44 100644
--- a/src/pages/options/peertube/peertube.html
+++ b/src/pages/options/peertube/peertube.html
@@ -10,66 +10,67 @@
<title>LibRedirect: Peertube</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
width="26px" fill="currentColor">
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -79,17 +80,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html" class="selected">Peertube</a>
+ <a href="../peertube/peertube.html" class="selected" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -98,7 +99,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +108,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +116,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,22 +124,22 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-peertube" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -146,12 +147,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="simpleertube-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-simpleertube-normal-instance-form">
<div class="some-block option-block">
@@ -168,12 +169,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="simpleertube-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customPopup__">Custom Instances</h4>
</div>
<form id="custom-simpleertube-tor-instance-form">
<div class="some-block option-block">
@@ -193,7 +194,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./peertube.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/pixiv/pixiv.html b/src/pages/options/pixiv/pixiv.html
index 8f6630da..8f153430 100644
--- a/src/pages/options/pixiv/pixiv.html
+++ b/src/pages/options/pixiv/pixiv.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Pixiv</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,57 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html" class="selected">Pixiv</a>
+ <a href="../pixiv/pixiv.html" class="selected" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -79,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -98,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,31 +123,31 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-pixiv" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Frontend: <span style="color:red;">This isn't a fully private frontend</span></h4>
+ <h4><x data-localise="__MSG_frontend__">Frontend</x>: <span style="color:red;" data-localise="__MSG_notFullyPrivate__">This isn't a fully private frontend</span></h4>
<select id="maps-frontend">
- <option value="pixivMoe">pixiv萌え</option>
+ <option value="pixivMoe" data-localise="__MSG_pixivMoe__">pixiv萌え</option>
</select>
</div>
<hr>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -155,12 +155,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="pixivMoe-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-pixivMoe-normal-instance-form">
<div class="some-block option-block">
@@ -177,12 +177,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="pixivMoe-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-pixivMoe-tor-instance-form">
<div class="some-block option-block">
@@ -202,7 +202,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./pixiv.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/reddit/reddit.html b/src/pages/options/reddit/reddit.html
index 57f29b15..d63618a3 100644
--- a/src/pages/options/reddit/reddit.html
+++ b/src/pages/options/reddit/reddit.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Reddit</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,57 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html" class="selected">Reddit</a>
+ <a href="../reddit/reddit.html" class="selected" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -79,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -98,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,7 +123,7 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
@@ -132,29 +132,29 @@
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-reddit" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4 id="frontend">Frontend</h4>
+ <h4 id="frontend" data-localise="__MSG_frontend__">Frontend</h4>
<select id="reddit-frontend">
<option value="libreddit">Libreddit</option>
<option value="teddit">Teddit</option>
- <option value="old">Old Reddit</option>
+ <option value="old" data-localise="__MSG_oldReddit__">Old Reddit</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Bypass "Open in Reddit"</h4>
+ <h4 data-localise="__MSG_bypassReddit__">Bypass "Open in Reddit"</h4>
<input id="bypass-watch-on-reddit" type="checkbox" checked />
</div>
@@ -164,13 +164,13 @@
<div id="libreddit-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="libreddit-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-libreddit-normal-instance-form">
<div class="some-block option-block">
@@ -189,13 +189,13 @@
<div id="libreddit-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="libreddit-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-libreddit-tor-instance-form">
<div class="some-block option-block">
@@ -218,13 +218,13 @@
<div id="teddit-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="teddit-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-teddit-normal-instance-form">
<div class="some-block option-block">
@@ -242,13 +242,13 @@
</div>
<div id="teddit-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="teddit-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-teddit-tor-instance-form">
<div class="some-block option-block">
@@ -269,7 +269,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./reddit.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/search/search.html b/src/pages/options/search/search.html
index 6544b3a9..3ad8353c 100644
--- a/src/pages/options/search/search.html
+++ b/src/pages/options/search/search.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Search</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,57 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -79,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -98,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html" class="selected">Search</a>
+ <a href="../search/search.html" class="selected" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -107,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -115,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -123,19 +123,19 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-search" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4 id="frontend">Frontend</h4>
+ <h4 id="frontend" data-localise="__MSG_frontend__">Frontend</h4>
<select id="search-frontend">
<option value="searx">SearX</option>
<option value="whoogle">Whoogle</option>
@@ -145,16 +145,16 @@
<div id="searx-whoogle">
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
</div>
<div class="some-block">
- <h4>Note: To use Search to its full potential, make LibRedirect as the
+ <h4 data-localise="__MSG_searchNote__">Note: To use Search to its full potential, make LibRedirect as the
Default Search Engine
</h4>
</div>
@@ -163,13 +163,13 @@
<hr>
<div id="searx-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="searx-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-searx-normal-instance-form">
<div class="some-block option-block">
@@ -187,13 +187,13 @@
</div>
<div id="searx-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="searx-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-searx-tor-instance-form">
<div class="some-block option-block">
@@ -215,13 +215,13 @@
<hr>
<div id="whoogle-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="whoogle-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-whoogle-normal-instance-form">
<div class="some-block option-block">
@@ -239,13 +239,13 @@
</div>
<div id="whoogle-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="whoogle-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-whoogle-tor-instance-form">
<div class="some-block option-block">
@@ -271,7 +271,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./search.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
</html>
diff --git a/src/pages/options/sendTargets/sendTargets.html b/src/pages/options/sendTargets/sendTargets.html
index 3431c9a2..3a00adf8 100644
--- a/src/pages/options/sendTargets/sendTargets.html
+++ b/src/pages/options/sendTargets/sendTargets.html
@@ -7,59 +7,71 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg" />
<link href="../../stylesheets/styles.css" rel="stylesheet" />
- <title>LibRedirect: Send Files</title>
+ <title data-localise="__MSG_libSendFiles__">LibRedirect: Send Files</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
width="26px" fill="currentColor">
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
+
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
+
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
+
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
+
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
+
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
+
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
+
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
+
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
+
<div class="title">
<!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
@@ -67,59 +79,66 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
+
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html" class="selected">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" class="selected" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
+
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-sendTargets" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -127,12 +146,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="send-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-send-normal-instance-form">
<div class="some-block option-block">
@@ -149,12 +168,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="send-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-send-tor-instance-form">
<div class="some-block option-block">
@@ -174,7 +193,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./sendTargets.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/spotify/spotify.html b/src/pages/options/spotify/spotify.html
index 2d5bda75..890bf970 100644
--- a/src/pages/options/spotify/spotify.html
+++ b/src/pages/options/spotify/spotify.html
@@ -10,7 +10,7 @@
<title>LibRedirect: Spotify</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,56 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
+
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html" class="selected">Spotify</a>
+ <a href="../spotify/spotify.html" class="selected" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -78,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -97,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -106,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -114,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -122,22 +123,22 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-spotify" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -145,12 +146,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="soju-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-soju-normal-instance-form">
<div class="some-block option-block">
@@ -167,12 +168,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="soju-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-soju-tor-instance-form">
<div class="some-block option-block">
@@ -192,7 +193,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./spotify.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/tiktok/tiktok.html b/src/pages/options/tiktok/tiktok.html
index 05b3417e..34c091a8 100644
--- a/src/pages/options/tiktok/tiktok.html
+++ b/src/pages/options/tiktok/tiktok.html
@@ -10,7 +10,7 @@
<title>LibRedirect: TikTok</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
<section class="links">
<div class="title">
@@ -19,56 +19,57 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
</div>
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
+
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html" class="selected">TikTok</a>
+ <a href="../tiktok/tiktok.html" class="selected" data-localise="__MSG_tiktok__">TikTok</a>
</div>
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
<div class="title">
@@ -78,17 +79,17 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
<div class="title">
@@ -97,7 +98,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
<div class="title">
@@ -106,7 +107,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
<div class="title">
@@ -114,7 +115,7 @@
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
<div class="title">
@@ -122,22 +123,22 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-tiktok" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -145,12 +146,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="proxiTok-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-proxiTok-normal-instance-form">
<div class="some-block option-block">
@@ -167,12 +168,12 @@
</div>
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="proxiTok-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-proxiTok-tor-instance-form">
<div class="some-block option-block">
@@ -192,7 +193,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./tiktok.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/translate/translate.html b/src/pages/options/translate/translate.html
index 931ba760..aace2d45 100644
--- a/src/pages/options/translate/translate.html
+++ b/src/pages/options/translate/translate.html
@@ -7,134 +7,135 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg" />
<link href="../../stylesheets/styles.css" rel="stylesheet" />
- <title>LibRedirect: Translate</title>
+ <title data-localise="__MSG_libTranslate__">LibRedirect: Translate</title>
</head>
-<body class="option">
- <section class="links">
+<body dir="auto" class="option">
+ <section class="links">
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
- width="26px" fill="currentColor">
- <path
- d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
- </svg>
- <a href="../general/general.html">General</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
+ width="26px" fill="currentColor">
+ <path
+ d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
+ </svg>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/youtube-icon.png" />
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/youtube-music-icon.png" />
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/twitter-icon.png" />
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/instagram-icon.png" />
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/tiktok-icon.png" />
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/reddit-icon.png" />
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/imgur-icon.png" />
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/pixiv-icon.svg" />
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/spotify-icon.png" />
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/wikipedia-icon.svg" />
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
+ </div>
- <div class="title">
- <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
- <circle cx="500" cy="500" r="500" />
- <ellipse ry="475" rx="250" cy="501" cx="1296" />
- <ellipse cx="1682" cy="502" rx="88" ry="424" />
- </svg>
- <a href="../medium/medium.html">Medium</a>
- </div>
+ <div class="title">
+ <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
+ <circle cx="500" cy="500" r="500" />
+ <ellipse ry="475" rx="250" cy="501" cx="1296" />
+ <ellipse cx="1682" cy="502" rx="88" ry="424" />
+ </svg>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/peertube-icon.svg" />
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/lbry-icon.png" />
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
- </svg>
- <a href="../search/search.html">Search</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
+ </svg>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
- </svg>
- <a href="../translate/translate.html" class="selected">Translate</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
+ </svg>
+ <a href="../translate/translate.html" class="selected" data-localise="__MSG_translate__">Translate</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
- </svg>
- <a href="../maps/maps.html">Maps</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
+ </svg>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
- </svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
+ </svg>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
+ </div>
+
+ </section>
- </section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-simplyTranslate" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Frontend</h4>
+ <h4 data-localise="__MSG_frontend__">Frontend</h4>
<select id="translate-frontend">
<option value="simplyTranslate">SimplyTranslate</option>
<option value="lingva">Lingva</option>
@@ -142,10 +143,10 @@
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -153,7 +154,7 @@
<div id="simplyTranslate">
<div class="some-block option-block">
- <h4>From</h4>
+ <h4 data-localise="__MSG_from__">From</h4>
<select id="from">
<option value="DEFAULT">Default</option>
<option value="auto">Auto</option>
@@ -268,7 +269,7 @@
</select>
</div>
<div class="some-block option-block">
- <h4>To</h4>
+ <h4 data-localise="__MSG_to__">To</h4>
<select id="to">
<option value="DEFAULT">Default</option>
<option value="af">Afrikaans</option>
@@ -383,9 +384,9 @@
</div>
<div class="some-block option-block">
- <h4>Engine</h4>
+ <h4 data-localise="__MSG_engine__">Engine</h4>
<select id="simplyTranslate-engine">
- <option value="DEFAULT">Default</option>
+ <option value="DEFAULT" data-localise="__MSG_default__">Default</option>
<option value="google">Google</option>
<option value="libre">Libre</option>
<option value="deepl">Deepl</option>
@@ -395,13 +396,13 @@
</div>
<div id="simplyTranslate-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="simplyTranslate-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-simplyTranslate-normal-instance-form">
<div class="some-block option-block">
@@ -420,13 +421,13 @@
</div>
<div id="simplyTranslate-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="simplyTranslate-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise"__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-simplyTranslate-tor-instance-form">
<div class="some-block option-block">
@@ -448,13 +449,13 @@
<div id="lingva">
<div id="lingva-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="lingva-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-lingva-normal-instance-form">
<div class="some-block option-block">
@@ -472,13 +473,13 @@
</div>
<div id="lingva-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="lingva-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-lingva-tor-instance-form">
<div class="some-block option-block">
@@ -500,7 +501,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./translate.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/twitter/twitter.html b/src/pages/options/twitter/twitter.html
index 2e8d0122..226d8570 100644
--- a/src/pages/options/twitter/twitter.html
+++ b/src/pages/options/twitter/twitter.html
@@ -10,142 +10,142 @@
<title>LibRedirect: Twitter</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
- <section class="links">
+ <section class="links">
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
- width="26px" fill="currentColor">
- <path
- d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
- </svg>
- <a href="../general/general.html">General</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
+ width="26px" fill="currentColor">
+ <path
+ d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
+ </svg>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/youtube-icon.png" />
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/youtube-music-icon.png" />
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html" class="selected">Twitter</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/twitter-icon.png" />
+ <a href="../twitter/twitter.html" class="selected" data-localise="__MSG_twitter__">Twitter</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/instagram-icon.png" />
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/tiktok-icon.png" />
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/reddit-icon.png" />
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/imgur-icon.png" />
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/pixiv-icon.svg" />
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/spotify-icon.png" />
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/wikipedia-icon.svg" />
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
+ </div>
- <div class="title">
- <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
- <circle cx="500" cy="500" r="500" />
- <ellipse ry="475" rx="250" cy="501" cx="1296" />
- <ellipse cx="1682" cy="502" rx="88" ry="424" />
- </svg>
- <a href="../medium/medium.html">Medium</a>
- </div>
+ <div class="title">
+ <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
+ <circle cx="500" cy="500" r="500" />
+ <ellipse ry="475" rx="250" cy="501" cx="1296" />
+ <ellipse cx="1682" cy="502" rx="88" ry="424" />
+ </svg>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/peertube-icon.svg" />
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
+ </div>
- <div class="title">
- <img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
- </div>
+ <div class="title">
+ <img src="../../../assets/images/lbry-icon.png" />
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
- </svg>
- <a href="../search/search.html">Search</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
+ </svg>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
- </svg>
- <a href="../translate/translate.html">Translate</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
+ </svg>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
- </svg>
- <a href="../maps/maps.html">Maps</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
+ </svg>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
+ </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
- </svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
- </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
+ </svg>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
+ </div>
- </section>
+ </section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-nitter" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Bypass "Open in Twitter"</h4>
+ <h4 data-localise="__MSG_bypassTwitter__">Bypass "Open in Twitter"</h4>
<input id="bypass-watch-on-twitter" type="checkbox" checked />
</div>
@@ -154,12 +154,12 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="nitter-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-nitter-normal-instance-form">
<div class="some-block option-block">
@@ -179,12 +179,12 @@
<div id="tor">
<div class="some-block option-block">
- <h4>Default Tor Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Tor Instances</h4>
</div>
<div class="checklist" id="nitter-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-nitter-tor-instance-form">
<div class="some-block option-block">
@@ -205,7 +205,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./twitter.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/wikipedia/wikipedia.html b/src/pages/options/wikipedia/wikipedia.html
index 21fa9ced..7ad257c0 100644
--- a/src/pages/options/wikipedia/wikipedia.html
+++ b/src/pages/options/wikipedia/wikipedia.html
@@ -10,116 +10,135 @@
<title>LibRedirect: Wikipedia</title>
</head>
-<body class="option">
- <section class="links">
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
- width="26px" fill="currentColor">
- <path
- d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
- </svg>
- <a href="../general/general.html">General</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html" class="selected">Wikipedia</a>
- </div>
- <div class="title">
- <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
- <circle cx="500" cy="500" r="500" />
- <ellipse ry="475" rx="250" cy="501" cx="1296" />
- <ellipse cx="1682" cy="502" rx="88" ry="424" />
- </svg>
- <a href="../medium/medium.html">Medium</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
- </svg>
- <a href="../search/search.html">Search</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
- </svg>
- <a href="../translate/translate.html">Translate</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
- </svg>
- <a href="../maps/maps.html">Maps</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
- </svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
- </div>
- </section>
+<body dir="auto" class="option">
+ <section class="links">
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
+ width="26px" fill="currentColor">
+ <path
+ d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
+ </svg>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/youtube-icon.png" />
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/youtube-music-icon.png" />
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/twitter-icon.png" />
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/instagram-icon.png" />
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/tiktok-icon.png" />
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/reddit-icon.png" />
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/imgur-icon.png" />
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/pixiv-icon.svg" />
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/spotify-icon.png" />
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/wikipedia-icon.svg" />
+ <a href="../wikipedia/wikipedia.html" class="selected" data-localise="__MSG_wikipedia__">Wikipedia</a>
+ </div>
+
+ <div class="title">
+ <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
+ <circle cx="500" cy="500" r="500" />
+ <ellipse ry="475" rx="250" cy="501" cx="1296" />
+ <ellipse cx="1682" cy="502" rx="88" ry="424" />
+ </svg>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/peertube-icon.svg" />
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/lbry-icon.png" />
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
+ </svg>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
+ </svg>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
+ </svg>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
+ </svg>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
+ </div>
+
+ </section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-wikipedia" type="checkbox" checked />
</div>
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
@@ -127,13 +146,13 @@
<div id="normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="wikiless-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-wikiless-normal-instance-form">
<div class="some-block option-block">
@@ -152,13 +171,13 @@
<div id="tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="wikiless-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-wikiless-tor-instance-form">
<div class="some-block option-block">
@@ -179,7 +198,7 @@
<script type="module" src="../init.js"></script>
<script type="module" src="./wikipedia.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/youtube/youtube.html b/src/pages/options/youtube/youtube.html
index e2d627c7..fba8de63 100644
--- a/src/pages/options/youtube/youtube.html
+++ b/src/pages/options/youtube/youtube.html
@@ -10,57 +10,69 @@
<title>LibRedirect: YouTube</title>
</head>
-<body class="option">
+<body class="option" dir="auto">
<section class="links">
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
width="26px" fill="currentColor">
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- <a href="../general/general.html">General</a>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html" class="selected">YouTube</a>
+ <a href="../youtube/youtube.html" class="selected" data-localise="__MSG_youtube__">YouTube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+ <a href="../youtubeMusic/youtubeMusic.html" data-localise="__MSG_ytmusic__">YT Music</a>
</div>
+
<div class="title">
<img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
</div>
+
<div class="title">
<img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
</div>
+
<div class="title">
<img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
</div>
+
<div class="title">
<img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
</div>
+
<div class="title">
<img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
</div>
+
<div class="title">
<img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
</div>
+
<div class="title">
<img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
</div>
+
<div class="title">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
</div>
+
<div class="title">
<!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
@@ -68,56 +80,63 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <a href="../medium/medium.html">Medium</a>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
</div>
+
<div class="title">
<img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
</div>
+
<div class="title">
<img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <a href="../search/search.html">Search</a>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path d="M0 0h24v24H0V0z" fill="none" />
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <a href="../translate/translate.html">Translate</a>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
- <a href="../maps/maps.html">Maps</a>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
</div>
+
<div class="title">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
</div>
+
</section>
<section class="option-block">
<div class="some-block option-block">
- <h4>Enable</h4>
+ <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-invidious" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Frontend</h4>
+ <h4 data-localise="__MSG_frontend__">Frontend</h4>
<select id="youtube-frontend">
<option value="invidious">Invidious</option>
<option value="piped">Piped</option>
@@ -131,7 +150,7 @@
<div id="freetube-yatte">
<div class="some-block option-block">
- <h4>Embedded Videos Frontend</h4>
+ <h4 data-localise="__MSG_embeddedVids__">Embedded Videos Frontend</h4>
<select id="youtube-embed-frontend">
<option value="invidious">Invidious</option>
<option value="piped">Piped</option>
@@ -145,29 +164,29 @@
<div id="invidious-piped-pipedMaterial">
<div class="some-block option-block">
- <h4>Protocol</h4>
+ <h4 data-localise="__MSG_protocol__">Protocol</h4>
<select id="protocol">
- <option value="normal">Normal</option>
- <option value="tor">Tor</option>
+ <option value="normal" data-localise="__MSG_normal__">Normal</option>
+ <option value="tor" data-localise="__MSG_tor__">Tor</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Redirect Type</h4>
+ <h4 data-localise="__MSG_redirectType">Redirect Type</h4>
<select id="only-embed">
- <option value="both">both</option>
- <option value="onlyEmbedded">Only Embedded</option>
- <option value="onlyNotEmbedded">Only Not Embedded</option>
+ <option value="both" data-localise="__MSG_both__">both</option>
+ <option value="onlyEmbedded" data-localise="__MSG_onlyEmbedded__">Only Embedded</option>
+ <option value="onlyNotEmbedded" data-localise="__MSG_onlyNotEmbedded__">Only Not Embedded</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Bypass Watch On YouTube</h4>
+ <h4 data-localise="__MSG_bypassYoutube__">Bypass Watch On YouTube</h4>
<input id="bypass-watch-on-youtube" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Enable Custom Settings (will use cookies and localStorage)</h4>
+ <h4 data-localise="__MSG_enableCustom__">Enable Custom Settings (will use cookies and localStorage)</h4>
<input id="enable-youtube-custom-settings" type="checkbox" />
</div>
@@ -176,12 +195,12 @@
<hr>
<div class="some-block option-block">
- <h4>Autoplay Video</h4>
+ <h4 data-localise="__MSG_autoplayVid__">Autoplay Video</h4>
<input id="invidious-youtubeAutoplay" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Volume: <span id="volume-value">--%</span></h4>
+ <h4><x data-localise="__MSG_volume__">Volume: </x><span id="volume-value">--%</span></h4>
<input id="invidious-volume" name="invidious-volume" type="range" min="0" max="100" step="1" />
</div>
@@ -194,40 +213,40 @@
<div class="custom-settings">
<div class="some-block option-block">
- <h4>Player Style</h4>
+ <h4 data-localise="__MSG_playerStyle__">Player Style</h4>
<select id="invidious-player_style">
- <option value="invidious">Invidious</option>
- <option value="youtube">YouTube</option>
+ <option value="invidious" data-localise="__MSG_invidious__">Invidious</option>
+ <option value="youtube" data-localise="__MSG_youtube__">YouTube</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Always loop</h4>
+ <h4 data-localise="__MSG_alwaysLoop__">Always loop</h4>
<input id="invidious-video_loop" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Play next by default</h4>
+ <h4 data-localise="__MSG_playNext__">Play next by default</h4>
<input id="invidious-continue" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Autoplay next video</h4>
+ <h4 data-localise="__MSG_autoplayNext__">Autoplay next video</h4>
<input id="invidious-continue_autoplay" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Always proxy videos</h4>
+ <h4 data-localise="__MSG_alwaysProxy__">Always proxy videos</h4>
<input id="invidious-local" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Listen by default</h4>
+ <h4 data-localise="__MSG_listenByDefault__">Listen by default</h4>
<input id="invidious-listen" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Default speed</h4>
+ <h4 data-localise="__MSG_defaultSpeed__">Default speed</h4>
<select id="invidious-speed">
<option>2.0</option>
<option>1.75</option>
@@ -241,20 +260,20 @@
</div>
<div class="some-block option-block">
- <h4>Preferred video quality</h4>
+ <h4 data-localise="__MSG_prefQuality__">Preferred video quality</h4>
<select id="invidious-quality">
<option value="hd720">720p</option>
<option value="medium">480p</option>
- <option value="dash">DASH (adaptive quality)</option>
+ <option value="dash" data-localise="__MSG_dash__">DASH (adaptive quality)</option>
</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Preferred DASH video quality</h4>
+ <h4 data-localise="__MSG_prefDashQuality__">Preferred DASH video quality</h4>
<select id="invidious-quality_dash">
- <option value="auto">Auto</option>
- <option value="best">Best</option>
+ <option value="auto" data-localise="__MSG_auto__">Auto</option>
+ <option value="best" data-localise="__MSG_best__">Best</option>
<option value="4320p">4320p</option>
<option value="2160p">2160p</option>
<option value="1440p">1440p</option>
@@ -264,31 +283,31 @@
<option value="360p">360p</option>
<option value="240p">240p</option>
<option value="144p">144p</option>
- <option value="worst">Worst</option>
+ <option value="worst" data-localise="__MSG_worst__">Worst</option>
</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Default comments</h4>
+ <h4 data-localise="__MSG_defaultComments__">Default comments</h4>
<select id="invidious-comments[0]">
- <option value="">none</option>
+ <option value="" data-localise="__MSG_none__">none</option>
<option value="youtube">YouTube</option>
<option value="reddit">Reddit</option>
</option>
</select>
&nbsp;
<select id="invidious-comments[1]">
- <option value="">none</option>
+ <option value="" data-localise="__MSG_none__">none</option>
<option value="youtube">YouTube</option>
<option value="reddit">Reddit</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Default captions</h4>
+ <h4 data-localise="__MSG_defaultCaptions__">Default captions</h4>
<select id="invidious-captions[0]">
- <option value="">none</option>
+ <option value="" data-localise="__MSG_none__">none</option>
<option value="English">English</option>
<option value="English (auto-generated)">English (auto-generated)</option>
<option value="English (United Kingdom)">English (United Kingdom)</option>
@@ -421,7 +440,7 @@
</select>
&nbsp;
<select id="invidious-captions[1]">
- <option value="">none</option>
+ <option value="" data-localise="__MSG_none__">none</option>
<option value="English">English</option>
<option value="English (auto-generated)">English (auto-generated)</option>
<option value="English (United Kingdom)">English (United Kingdom)</option>
@@ -554,7 +573,7 @@
</select>
&nbsp;
<select id="invidious-captions[2]">
- <option value="">none</option>
+ <option value="" data-localise="__MSG_none__">none</option>
<option value="English">English</option>
<option value="English (auto-generated)">English (auto-generated)</option>
<option value="English (United Kingdom)">English (United Kingdom)</option>
@@ -688,27 +707,27 @@
</div>
<div class="some-block option-block">
- <h4>Show related videos</h4>
+ <h4 data-localise="__MSG_showRelated__">Show related videos</h4>
<input id="invidious-related_videos" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Show annotations by default</h4>
+ <h4 data-localise="__MSG_showAnnotations__">Show annotations by default</h4>
<input id="invidious-annotations" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Automatically extend video description</h4>
+ <h4 data-localise="__MSG_autoExtendDesc__">Automatically extend video description</h4>
<input id="invidious-extend_desc" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Interactive 360 degree videos (requires WebGL)</h4>
+ <h4 data-localise="__MSG_interactive360__">Interactive 360 degree videos (requires WebGL)</h4>
<input id="invidious-vr_mode" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Save playback position</h4>
+ <h4 data-localise="__MSG_savePlaybackPos__">Save playback position</h4>
<input id="invidious-save_player_pos" type="checkbox" />
</div>
@@ -718,13 +737,13 @@
<div id="invidious-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="invidious-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-invidious-normal-instance-form">
<div class="some-block option-block">
@@ -743,13 +762,13 @@
<div id="invidious-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="invidious-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-invidious-tor-instance-form">
<div class="some-block option-block">
@@ -773,62 +792,62 @@
<div class="custom-settings">
<div class="some-block option-block">
- <h4>Enable Sponsorblock</h4>
+ <h4 data-localise="__MSG_enableSponsorBlock__">Enable Sponsorblock</h4>
<input id="piped-sponsorblock" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Sponsors</h4>
+ <h4 data-localise="__MSG_skipSponsors__">Skip Sponsors</h4>
<input id="piped-selectedSkip-sponsor" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Intermission/Intro Animation</h4>
+ <h4 data-localise="__MSG_skipIntermission__">Skip Intermission/Intro Animation</h4>
<input id="piped-selectedSkip-intro" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Endcards/Credits</h4>
+ <h4 data-localise="__MSG_skripEndcars__">Skip Endcards/Credits</h4>
<input id="piped-selectedSkip-outro" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Preview/Recap</h4>
+ <h4 data-localise="__MSG_skripPreview__">Skip Preview/Recap</h4>
<input id="piped-selectedSkip-preview" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Interaction Reminder (Subscribe)</h4>
+ <h4 data-localise="__MSG_skipReminder__">Skip Interaction Reminder (Subscribe)</h4>
<input id="piped-selectedSkip-interaction" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Unpaid/Self Promotion</h4>
+ <h4 data-localise="__MSG_skipUnpaidPromo__">Skip Unpaid/Self Promotion</h4>
<input id="piped-selectedSkip-selfpromo" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Music: Non-Music Section</h4>
+ <h4 data-localise="__MSG_skipMusic__">Skip Music: Non-Music Section</h4>
<input id="piped-selectedSkip-music_offtopic" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Highlight</h4>
+ <h4 data-localise="__MSG_skipHighlight__">Skip Highlight</h4>
<input id="piped-selectedSkip-poi_highlight" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Filler Tangent</h4>
+ <h4 data-localise="__MSG_skipFiller__">Skip Filler Tangent</h4>
<input id="piped-selectedSkip-filler" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Audio Only</h4>
+ <h4 data-localise="__MSG_audioOnly__">Audio Only</h4>
<input id="piped-listen" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Default Quality</h4>
+ <h4 data-localise="__MSG_defaultQuality__">Default Quality</h4>
<select id="piped-quality">
<option value="0">Auto</option>
<option value="144">144p</option>
@@ -844,12 +863,12 @@
</div>
<div class="some-block option-block">
- <h4>Buffering Goal (in seconds)</h4>
+ <h4 data-localise="__MSG_bufferingGoal__">Buffering Goal (in seconds)</h4>
<input id="piped-bufferGoal" type="number" min="10" />
</div>
<div class="some-block option-block">
- <h4>Country Selection</h4>
+ <h4 data-localise="__MSG_countrySelection__">Country Selection</h4>
<select id="piped-region">
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
@@ -1048,30 +1067,30 @@
</div>
<div class="some-block option-block">
- <h4>Default Homepage</h4>
+ <h4 data-localise="__MSG_defaultHomepage__">Default Homepage</h4>
<select id="piped-homepage">
- <option value="trending">Trending</option>
- <option value="feed">Feed</option>
+ <option value="trending" data-localise="__MSG_trending__">Trending</option>
+ <option value="feed" data-localise="__MSG_feed__">Feed</option>
</select>
</div>
<div class="some-block option-block">
- <h4>Show Comments</h4>
+ <h4 data-localise="__MSG_showComments__">Show Comments</h4>
<input id="piped-comments" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Minimize Description by default</h4>
+ <h4 data-localise="__MSG_minimizeDesc__">Minimize Description by default</h4>
<input id="piped-minimizeDescription" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Store Watch History</h4>
+ <h4 data-localise="__MSG_storeHistory__">Store Watch History</h4>
<input id="piped-watchHistory" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Enabled Codecs (Multiple)</h4>
+ <h4 data-localise="__MSG_enabledCodecs__">Enabled Codecs (Multiple)</h4>
<select id="piped-enabledCodecs" multiple>
<option value="av1">AV1</option>
<option value="vp9">VP9</option>
@@ -1080,12 +1099,12 @@
</div>
<div class="some-block option-block">
- <h4>Disable LBRY for Streaming</h4>
+ <h4 data-localise="__MSG_disableLBRY__">Disable LBRY for Streaming</h4>
<input id="piped-disableLBRY" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Enable Proxy for LBRY</h4>
+ <h4 data-localise="__MSG_enableProxyLBRY__">Enable Proxy for LBRY</h4>
<input id="piped-proxyLBRY" type="checkbox" />
</div>
@@ -1093,13 +1112,13 @@
<hr>
<div id="piped-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="piped-normal-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-piped-normal-instance-form">
<div class="some-block option-block">
@@ -1118,13 +1137,13 @@
<div id="piped-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="piped-tor-checklist">
</div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-piped-tor-instance-form">
<div class="some-block option-block">
@@ -1148,72 +1167,72 @@
<div class="custom-settings">
<div class="some-block option-block">
- <h4>Audio Only</h4>
+ <h4 data-localise="__MSG_audioOnly__">Audio Only</h4>
<input id="pipedMaterial-listen" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Disable LBRY</h4>
+ <h4 data-localise="__MSG_disableLBRY__">Disable LBRY</h4>
<input id="pipedMaterial-disableLBRY" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Proxy LBRY videos</h4>
+ <h4 data-localise="__MSG_proxyLBRY__">Proxy LBRY videos</h4>
<input id="pipedMaterial-proxyLBRY" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Enable Sponsorblock</h4>
+ <h4 data-localise="__MSG_enableSponsorBlock__">Enable Sponsorblock</h4>
<input id="pipedMaterial-sponsorblock" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip to the last watched point when encountering a video already seen</h4>
+ <h4 data-localise="__MSG_skipNote__">Skip to the last watched point when encountering a video already seen</h4>
<input id="pipedMaterial-skipToLastPoint" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Sponsors</h4>
+ <h4 data-localise="__MSG_skipSponsors__">Skip Sponsors</h4>
<input id="pipedMaterial-selectedSkip-sponsor" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Intermission/Intro Animation</h4>
+ <h4 data-localise="__MSG_skipIntermission__">Skip Intermission/Intro Animation</h4>
<input id="pipedMaterial-selectedSkip-intro" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Endcards/Credits</h4>
+ <h4 data-localise="__MSG_skripEndcars__">Skip Endcards/Credits</h4>
<input id="pipedMaterial-selectedSkip-outro" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Preview/Recap</h4>
+ <h4 data-localise="__MSG_skripPreview__">Skip Preview/Recap</h4>
<input id="pipedMaterial-selectedSkip-preview" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Interaction Reminder (Subscribe)</h4>
+ <h4 data-localise="__MSG_skipReminder__">Skip Interaction Reminder (Subscribe)</h4>
<input id="pipedMaterial-selectedSkip-interaction" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Unpaid/Self Promotion</h4>
+ <h4 data-localise="__MSG_skipUnpaidPromo__">Skip Unpaid/Self Promotion</h4>
<input id="pipedMaterial-selectedSkip-selfpromo" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Music: Non-Music Section</h4>
+ <h4 data-localise="__MSG_skipMusic__">Skip Music: Non-Music Section</h4>
<input id="pipedMaterial-selectedSkip-music_offtopic" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Highlight</h4>
+ <h4 data-localise="__MSG_skipHighlights__">Skip Highlight</h4>
<input id="pipedMaterial-selectedSkip-poi_highlight" type="checkbox" />
</div>
<div class="some-block option-block">
- <h4>Skip Filler Tangent</h4>
+ <h4 data-localise="__MSG_skipFiller__">Skip Filler Tangent</h4>
<input id="pipedMaterial-selectedSkip-filler" type="checkbox" />
</div>
<hr>
@@ -1222,12 +1241,12 @@
<div id="pipedMaterial-normal">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="pipedMaterial-normal-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-pipedMaterial-normal-instance-form">
<div class="some-block option-block">
@@ -1246,12 +1265,12 @@
<div id="pipedMaterial-tor">
<div class="some-block option-block">
- <h4>Default Instances</h4>
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
</div>
<div class="checklist" id="pipedMaterial-tor-checklist"></div>
<hr>
<div class="some-block option-block">
- <h4>Custom Instances</h4>
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
</div>
<form id="custom-pipedMaterial-tor-instance-form">
<div class="some-block option-block">
@@ -1270,7 +1289,7 @@
</div>
<div class="some-block option-block">
- <h4>Embed Exceptions</h4>
+ <h4 data-localise="__MSG_embedExceptions__">Embed Exceptions</h4>
</div>
<form id="custom-exceptions-instance-form">
<div class="some-block option-block">
@@ -1303,7 +1322,7 @@
<script type="module" src="./piped.js"></script>
<script type="module" src="./pipedMaterial.js"></script>
<script type="module" src="./embed-exceptions.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/options/youtubeMusic/youtubeMusic.html b/src/pages/options/youtubeMusic/youtubeMusic.html
index 1993d449..d2cc4906 100644
--- a/src/pages/options/youtubeMusic/youtubeMusic.html
+++ b/src/pages/options/youtubeMusic/youtubeMusic.html
@@ -2,155 +2,171 @@
<html lang="en">
<head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg" />
- <link href="../../stylesheets/styles.css" rel="stylesheet" />
- <title>LibRedirect: YT Music</title>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg" />
+ <link href="../../stylesheets/styles.css" rel="stylesheet" />
+ <title>LibRedirect: YT Music</title>
</head>
-<body class="option">
+<body dir="auto" class="option">
- <section class="links">
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
- width="26px" fill="currentColor">
- <path
- d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
- </svg>
- <a href="../general/general.html">General</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/youtube-icon.png" />
- <a href="../youtube/youtube.html">YouTube</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/youtube-music-icon.png" />
- <a href="../youtubeMusic/youtubeMusic.html" class="selected">YT Music</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/twitter-icon.png" />
- <a href="../twitter/twitter.html">Twitter</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/instagram-icon.png" />
- <a href="../instagram/instagram.html">Instagram</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/tiktok-icon.png" />
- <a href="../tiktok/tiktok.html">TikTok</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/reddit-icon.png" />
- <a href="../reddit/reddit.html">Reddit</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/imgur-icon.png" />
- <a href="../imgur/imgur.html">Imgur</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/pixiv-icon.svg" />
- <a href="../pixiv/pixiv.html">Pixiv</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/spotify-icon.png" />
- <a href="../spotify/spotify.html">Spotify</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/wikipedia-icon.svg" />
- <a href="../wikipedia/wikipedia.html">Wikipedia</a>
- </div>
- <div class="title">
- <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
- <circle cx="500" cy="500" r="500" />
- <ellipse ry="475" rx="250" cy="501" cx="1296" />
- <ellipse cx="1682" cy="502" rx="88" ry="424" />
- </svg>
- <a href="../medium/medium.html">Medium</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/peertube-icon.svg" />
- <a href="../peertube/peertube.html">Peertube</a>
- </div>
- <div class="title">
- <img src="../../../assets/images/lbry-icon.png" />
- <a href="../lbry/lbry.html">LBRY/Odysee</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
- </svg>
- <a href="../search/search.html">Search</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path
- d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
- </svg>
- <a href="../translate/translate.html">Translate</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
- </svg>
- <a href="../maps/maps.html">Maps</a>
- </div>
- <div class="title">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
- <path
- d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
- </svg>
- <a href="../sendTargets/sendTargets.html">Send Files</a>
- </div>
- </section>
+ <section class="links">
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
+ width="26px" fill="currentColor">
+ <path
+ d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
+ </svg>
+ <a href="../general/general.html" data-localise="__MSG_general__">General</a>
+ </div>
- <section class="option-block">
+ <div class="title">
+ <img src="../../../assets/images/youtube-icon.png" />
+ <a href="../youtube/youtube.html" data-localise="__MSG_youtube__">YouTube</a>
+ </div>
- <div class="some-block option-block">
- <h4>Enable</h4>
- <input id="disable-beatbump" type="checkbox" checked />
- </div>
+ <div class="title">
+ <img src="../../../assets/images/youtube-music-icon.png" />
+ <a href="../youtubeMusic/youtubeMusic.html" class="selected" data-localise="__MSG_ytmusic__">YT Music</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/twitter-icon.png" />
+ <a href="../twitter/twitter.html" data-localise="__MSG_twitter__">Twitter</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/instagram-icon.png" />
+ <a href="../instagram/instagram.html" data-localise="__MSG_instagram__">Instagram</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/tiktok-icon.png" />
+ <a href="../tiktok/tiktok.html" data-localise="__MSG_tiktok__">TikTok</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/reddit-icon.png" />
+ <a href="../reddit/reddit.html" data-localise="__MSG_reddit__">Reddit</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/imgur-icon.png" />
+ <a href="../imgur/imgur.html" data-localise="__MSG_imgur__">Imgur</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/pixiv-icon.svg" />
+ <a href="../pixiv/pixiv.html" data-localise="__MSG_pixiv__">Pixiv</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/spotify-icon.png" />
+ <a href="../spotify/spotify.html" data-localise="__MSG_spotify__">Spotify</a>
+ </div>
+
+ <div class="title">
+ <img src="../../../assets/images/wikipedia-icon.svg" />
+ <a href="../wikipedia/wikipedia.html" data-localise="__MSG_wikipedia__">Wikipedia</a>
+ </div>
- <hr>
+ <div class="title">
+ <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
+ <circle cx="500" cy="500" r="500" />
+ <ellipse ry="475" rx="250" cy="501" cx="1296" />
+ <ellipse cx="1682" cy="502" rx="88" ry="424" />
+ </svg>
+ <a href="../medium/medium.html" data-localise="__MSG_medium__">Medium</a>
+ </div>
- <div id="normal">
+ <div class="title">
+ <img src="../../../assets/images/peertube-icon.svg" />
+ <a href="../peertube/peertube.html" data-localise="__MSG_peertube__">Peertube</a>
+ </div>
- <div class="some-block option-block">
- <h4>Default Instances</h4>
- </div>
- <div class="checklist" id="beatbump-normal-checklist"></div>
- <hr>
- <div class="some-block option-block">
- <h4>Custom Instances</h4>
- </div>
- <form id="custom-beatbump-normal-instance-form">
- <div class="some-block option-block">
- <input id="beatbump-normal-custom-instance" placeholder="https://beatbump.com" type="url" />
- <button type="submit" class="add" id="beatbump-normal-add-instance">
- <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px"
- fill="currentColor">
- <path d="M0 0h24v24H0V0z" fill="none" />
- <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
- </svg>
- </button>
- </div>
- </form>
- <div class="checklist" id="beatbump-normal-custom-checklist"></div>
+ <div class="title">
+ <img src="../../../assets/images/lbry-icon.png" />
+ <a href="../lbry/lbry.html" data-localise="__MSG_lbry__">LBRY/Odysee</a>
+ </div>
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
+ </svg>
+ <a href="../search/search.html" data-localise="__MSG_search__">Search</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path
+ d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
+ </svg>
+ <a href="../translate/translate.html" data-localise="__MSG_translate__">Translate</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
+ </svg>
+ <a href="../maps/maps.html" data-localise="__MSG_maps__">Maps</a>
+ </div>
+
+ <div class="title">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+ <path
+ d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
+ </svg>
+ <a href="../sendTargets/sendTargets.html" data-localise="__MSG_sendFiles__">Send Files</a>
+ </div>
+ </section>
+
+ <section class="option-block">
+
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_enable__">Enable</h4>
+ <input id="disable-beatbump" type="checkbox" checked />
+ </div>
+
+ <hr>
+
+ <div id="normal">
+
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_defaultInstances__">Default Instances</h4>
+ </div>
+ <div class="checklist" id="beatbump-normal-checklist"></div>
+ <hr>
+ <div class="some-block option-block">
+ <h4 data-localise="__MSG_customInstances__">Custom Instances</h4>
+ </div>
+ <form id="custom-beatbump-normal-instance-form">
+ <div class="some-block option-block">
+ <input id="beatbump-normal-custom-instance" placeholder="https://beatbump.com" type="url" />
+ <button type="submit" class="add" id="beatbump-normal-add-instance">
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor">
+ <path d="M0 0h24v24H0V0z" fill="none" />
+ <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
+ </svg>
+ </button>
</div>
+ </form>
+ <div class="checklist" id="beatbump-normal-custom-checklist"></div>
+
+ </div>
- </section>
+ </section>
- <script type="module" src="../init.js"></script>
- <script type="module" src="./youtubeMusic.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script type="module" src="../init.js"></script>
+ <script type="module" src="./youtubeMusic.js"></script>
+ <script type="module" src="../../../assets/javascripts/localise.js"></script>
</body>
</html> \ No newline at end of file
diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html
index e4d14067..2f83116c 100644
--- a/src/pages/popup/popup.html
+++ b/src/pages/popup/popup.html
@@ -8,11 +8,11 @@
<link href="./style.css" rel="stylesheet" />
</head>
-<body>
+<body dir="auto">
<div id="youtube" class="some-block">
<a class="title" href="https://youtube.com">
<img src="../../assets/images/youtube-icon.png" />
- <h4>YouTube</h4>
+ <h4 data-localise="__MSG_youtube__">YouTube</h4>
</a>
<input id="disable-youtube" type="checkbox" checked />
</div>
@@ -20,7 +20,7 @@
<div id="youtubeMusic" class="some-block">
<a class="title" href="https://music.youtube.com">
<img src="../../assets/images/youtube-music-icon.png" />
- <h4>YT Music</h4>
+ <h4 data-localise="__MSG_ytmusic__">YT Music</h4>
</a>
<input id="disable-youtubeMusic" type="checkbox" checked />
</div>
@@ -28,7 +28,7 @@
<div id="twitter" class="some-block">
<a class="title" href="https://twitter.com">
<img src="../../assets/images/twitter-icon.png" />
- <h4>Twitter</h4>
+ <h4 data-localise="__MSG_twitter__">Twitter</h4>
</a>
<input id="disable-nitter" type="checkbox" checked />
</div>
@@ -37,7 +37,7 @@
<a class="title" href="https://instagram.com">
<!-- https://www.iconfinder.com/Indygo -->
<img src="../../assets/images/instagram-icon.png" />
- <h4>Instagram</h4>
+ <h4 data-localise="__MSG_instagram__">Instagram</h4>
</a>
<input id="disable-bibliogram" type="checkbox" checked />
</div>
@@ -46,7 +46,7 @@
<a class="title" href="https://tiktok.com">
<!-- https://www.flaticon.com/authors/designer-shah -->
<img src="../../assets/images/tiktok-icon.png" />
- <h4>TikTok</h4>
+ <h4 data-localise="__MSG_tiktok__">TikTok</h4>
</a>
<input id="disable-tiktok" type="checkbox" checked />
</div>
@@ -54,7 +54,7 @@
<div id="imgur" class="some-block">
<a class="title" href="https://imgur.com">
<img src="../../assets/images/imgur-icon.png" />
- <h4>Imgur</h4>
+ <h4 data-localise="__MSG_imgur__">Imgur</h4>
</a>
<input id="disable-imgur" type="checkbox" checked />
</div>
@@ -63,7 +63,7 @@
<a class="title" href="https://reddit.com">
<!-- https://www.flaticon.com/authors/md-tanvirul-haque -->
<img src="../../assets/images/reddit-icon.png" />
- <h4>Reddit</h4>
+ <h4 data-localise="__MSG_reddit__">Reddit</h4>
</a>
<input id="disable-reddit" type="checkbox" checked />
</div>
@@ -72,7 +72,7 @@
<a class="title" href="https://pixiv.net">
<!-- https://clipground.com/pics/getsecond?url=pixiv-logo-2.png -->
<img src="../../assets/images/pixiv-icon.svg" />
- <h4>Pixiv</h4>
+ <h4 data-localise="__MSG_pixiv__">Pixiv</h4>
</a>
<input id="disable-pixiv" type="checkbox" checked />
</div>
@@ -80,7 +80,7 @@
<div id="spotify" class="some-block">
<a class="title" href="https://spotify.com">
<img src="../../../assets/images/spotify-icon.png" />
- <h4>Spotify</h4>
+ <h4 data-localise="__MSG_spotify__">Spotify</h4>
</a>
<input id="disable-spotify" type="checkbox" checked />
</div>
@@ -88,7 +88,7 @@
<div id="wikipedia" class="some-block">
<a class="title" href="https://wikipedia.org">
<img src="../../../assets/images/wikipedia-icon.svg" />
- <h4>Wikipedia</h4>
+ <h4 data-localise="__MSG_wikipedia__">Wikipedia</h4>
</a>
<input id="disable-wikipedia" type="checkbox" checked />
</div>
@@ -101,7 +101,7 @@
<ellipse ry="475" rx="250" cy="501" cx="1296" />
<ellipse cx="1682" cy="502" rx="88" ry="424" />
</svg>
- <h4>Medium</h4>
+ <h4 data-localise="__MSG_medium__">Medium</h4>
</a>
<input id="disable-medium" type="checkbox" checked />
</div>
@@ -109,7 +109,7 @@
<div id="peertube" class="some-block">
<a class="title" href="https://search.joinpeertube.org">
<img src="../../../assets/images/peertube-icon.svg" />
- <h4>Peertube</h4>
+ <h4 data-localise="__MSG_peertube__">Peertube</h4>
</a>
<input id="disable-peertube" type="checkbox" checked />
</div>
@@ -117,7 +117,7 @@
<div id="lbry" class="some-block">
<a class="title" href="https://odysee.com">
<img src="../../../assets/images/lbry-icon.png" />
- <h4>LBRY</h4>
+ <h4 data-localise="__MSG_lbry__">LBRY</h4>
</a>
<input id="disable-lbry" type="checkbox" checked />
</div>
@@ -128,7 +128,7 @@
<path
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
</svg>
- <h4>Search</h4>
+ <h4 data-localise="__MSG_search__">Search</h4>
</a>
<input id="disable-search" type="checkbox" checked />
</div>
@@ -139,7 +139,7 @@
<path
d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
</svg>
- <h4>Translate</h4>
+ <h4 data-localise="__MSG_translate__">Translate</h4>
</a>
<input id="disable-simplyTranslate" type="checkbox" checked />
</div>
@@ -151,7 +151,7 @@
<path
d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z" />
</svg>
- <h4>Maps</h4>
+ <h4 data-localise="__MSG_maps__">Maps</h4>
</a>
<input id="disable-osm" type="checkbox" checked />
</div>
@@ -162,7 +162,7 @@
<path
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
</svg>
- <h4>Send Files</h4>
+ <h4 data-localise="__MSG_sendFiles__">Send Files</h4>
</a>
<input id="disable-sendTargets" type="checkbox" checked />
</div>
@@ -173,7 +173,7 @@
<path
d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" />
</svg>
- Instance
+ <x data-localise="__MSG_instance__">Instance</x>
</a>
<a class="button" id="more-options">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24"
@@ -181,14 +181,14 @@
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
</svg>
- Settings
+ <x data-localise="__MSG_settings__">Settings</x>
</a>
</div>
<script type="module" src="../options/init.js"></script>
<script type="module" src="./popup.js"></script>
- <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+ <script src="../../assets/javascripts/localise.js"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/pages/popup/style.css b/src/pages/popup/style.css
index a2fc1256..c84e3c71 100644
--- a/src/pages/popup/style.css
+++ b/src/pages/popup/style.css
@@ -1,5 +1,5 @@
body {
- width: 240px;
+ width: 250px;
min-height: auto;
}
diff --git a/src/pages/stylesheets/NotoNaskhArabic-VariableFont_wght.ttf b/src/pages/stylesheets/NotoNaskhArabic-VariableFont_wght.ttf
new file mode 100644
index 00000000..93f2844f
--- /dev/null
+++ b/src/pages/stylesheets/NotoNaskhArabic-VariableFont_wght.ttf
Binary files differ
diff --git a/src/pages/stylesheets/NotoSansArabic-VariableFont_wdth,wght.ttf b/src/pages/stylesheets/NotoSansArabic-VariableFont_wdth,wght.ttf
new file mode 100644
index 00000000..694b773c
--- /dev/null
+++ b/src/pages/stylesheets/NotoSansArabic-VariableFont_wdth,wght.ttf
Binary files differ
diff --git a/src/pages/stylesheets/Vazirmatn-VariableFont_wght.ttf b/src/pages/stylesheets/Vazirmatn-VariableFont_wght.ttf
new file mode 100644
index 00000000..f4b97c01
--- /dev/null
+++ b/src/pages/stylesheets/Vazirmatn-VariableFont_wght.ttf
Binary files differ
diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css
index 17949b64..7450915a 100644
--- a/src/pages/stylesheets/styles.css
+++ b/src/pages/stylesheets/styles.css
@@ -17,6 +17,27 @@ body {
font-style: normal;
}
+@font-face {
+ font-family: 'Vazirmatn';
+ src: url('Vazirmatn-VariableFont_wght.ttf');
+ font-weight: normal;
+ font-style: normal;
+}
+
+/* @font-face {
+ font-family: 'NotoSansArabic';
+ src: url('NotoSansArabic-VariableFont_wdth,wght.ttf');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'NotoNaskhArabic';
+ src: url('NotoNaskhArabic-VariableFont_wght.ttf');
+ font-weight: normal;
+ font-style: normal;
+} */
+
body {
margin: auto;
padding: 0;
@@ -26,6 +47,11 @@ body {
overflow-x: hidden
}
+body.rtl {
+ font-family: 'Vazirmatn';
+ /* line-height: 1; */
+}
+
div.some-block input[type="checkbox"] {
appearance: none;
-moz-appearance: none;
@@ -46,6 +72,11 @@ img, svg {
color: var(--text);
}
+body.rtl img, body.rtl svg {
+ margin-right: 0px;
+ margin-left: 10px;
+}
+
input[type="url"],
input[type="text"],
select {
@@ -216,10 +247,20 @@ div.some-block input[type="checkbox"]::before {
transition: .3s;
}
+body.rtl div.some-block input[type="checkbox"]::before {
+ left: auto;
+ right: 4px;
+}
+
div.some-block input[type="checkbox"]:checked::before {
left: 24px;
}
+body.rtl div.some-block input[type="checkbox"]:checked::before {
+ left: auto;
+ right: 24px;
+}
+
div.buttons {
display: flex;
margin: 0 15px;