From 0b4111823255a3c5ff0adec55bea5b9323e9ce88 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 31 Dec 2019 19:09:37 -0500 Subject: [PATCH] Added option for custom invidious instances. --- _locales/en/messages.json | 18 ++++++++++++++++++ manifest.json | 8 +++++++- options/options.css | 4 ++++ options/options.html | 30 +++++++++++++++++++++++++++++ options/options.js | 40 ++++++++++++++++++++++++++++++++++++++- 5 files changed, 98 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 889ecbea..d3aa0bb2 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -353,5 +353,23 @@ }, "optionsInfo": { "message": "Enable Invidious support, disable autoskip, hide buttons and more." + }, + "addInvidiousInstance": { + "message": "Add Invidious Instance" + }, + "addInvidiousInstanceDescription": { + "message": "Add a custom instance of Invidious. This must be formatted with JUST the domain. Example: invidious.ajay.app" + }, + "add": { + "message": "Add" + }, + "addInvidiousInstanceError": { + "message": "This is an invalid domain. This should JUST include the domain part. Example: invidious.ajay.app" + }, + "resetInvidiousInstance": { + "message": "Reset Invidious Instance List" + }, + "resetInvidiousInstanceAlert": { + "message": "You are about to reset the Invidious instance list?" } } diff --git a/manifest.json b/manifest.json index 39a417ca..9b42f401 100644 --- a/manifest.json +++ b/manifest.json @@ -73,5 +73,11 @@ "page": "options/options.html", "open_in_tab": true }, - "manifest_version": 2 + "manifest_version": 2, + "browser_specific_settings": { + "gecko": { + "id": "sponsorBlocker@ajay.app", + "strict_min_version": "57.0" + } + } } diff --git a/options/options.css b/options/options.css index 16746d01..446bc1e2 100644 --- a/options/options.css +++ b/options/options.css @@ -7,6 +7,10 @@ body { text-align: center; } +.inline { + display: inline-block; +} + .bold { font-weight: bold; } diff --git a/options/options.html b/options/options.html index 943c3c80..49b3ece7 100644 --- a/options/options.html +++ b/options/options.html @@ -38,6 +38,36 @@

+
+
+ __MSG_addInvidiousInstance__ +
+ +
+ +
__MSG_addInvidiousInstanceDescription__
+ + +
+ +
+
+