From d353f3b6777f9f8e79dd647bbdcca9af8114d4a0 Mon Sep 17 00:00:00 2001 From: Nanobyte Date: Sat, 9 Apr 2022 16:22:39 +0200 Subject: [PATCH] Add beta server warning to popup #1275 --- public/_locales/en/messages.json | 6 ++++++ public/popup.css | 10 ++++++++++ public/popup.html | 4 ++++ src/popup.ts | 10 +++++++++- 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 1d3e9f15..c63626eb 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -929,5 +929,11 @@ }, "youtubeKeybindWarning": { "message": "This is a built-in YouTube shortcut. Are you sure you want to use it?" + }, + "betaServerWarning": { + "message": "BETA Server is enabled!" + }, + "openOptionsPage": { + "message": "Open options page" } } diff --git a/public/popup.css b/public/popup.css index 31b68092..48af762e 100644 --- a/public/popup.css +++ b/public/popup.css @@ -544,3 +544,13 @@ #sponsorBlockPopupBody .hidden { display: none !important; } + +#sbBetaServerWarning { + padding: 8px; + font-size: 1em; + font-weight: 700; + word-break: break-word; + color: var(--sb-main-fg-color); + background: var(--sb-red-bg-color); + cursor: pointer; +} diff --git a/public/popup.html b/public/popup.html index 78001e86..c94dddbc 100644 --- a/public/popup.html +++ b/public/popup.html @@ -11,6 +11,10 @@
+ +