From 433db26078643fbbe62c2cf51054c6d8a499dd33 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 30 Dec 2019 23:15:29 -0500 Subject: [PATCH] Added option to enable invidious support. --- _locales/en/messages.json | 6 ++++ manifest.json | 11 +++--- options/options.html | 18 +++++++++- options/options.js | 71 ++++++++++++++++++++++++++++++++++----- 4 files changed, 93 insertions(+), 13 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7ebbc3ab..e31a5741 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -344,5 +344,11 @@ }, "keybindCurrentlySet": { "message": ". It is currently set to:" + }, + "supportInvidious": { + "message": "Support Invidious" + }, + "supportInvidiousDescription": { + "message": "Invidious (invidio.us) is a third party YouTube client. To enable support, you must accept the extra permissions." } } diff --git a/manifest.json b/manifest.json index a287db2b..175ed2e9 100644 --- a/manifest.json +++ b/manifest.json @@ -8,9 +8,7 @@ { "matches": [ "https://*.youtube.com/*", - "https://www.youtube-nocookie.com/embed/*", - "https://*.invidio.us/*", - "https://*.invidiou.sh/*" + "https://www.youtube-nocookie.com/embed/*" ], "all_frames": true, "js": [ @@ -46,7 +44,12 @@ "permissions": [ "storage", "notifications", - "https://sponsor.ajay.app/*" + "https://sponsor.ajay.app/*", + "https://*.invidio.us/*" + ], + "optional_permissions": [ + "declarativeContent", + "https://*/*" ], "browser_action": { "default_title": "__MSG_Name__", diff --git a/options/options.html b/options/options.html index 45983d58..943c3c80 100644 --- a/options/options.html +++ b/options/options.html @@ -20,7 +20,23 @@

__MSG_Options__