From 24292e771b504a3ffbf3e39f60005325036009f8 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 24 Nov 2019 01:13:52 -0500 Subject: [PATCH] Made the popup work on non YouTube tabs. --- _locales/en/messages.json | 2 +- popup.html | 226 +++++++++++++++++++------------------- 2 files changed, 115 insertions(+), 113 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 26582468..85381acb 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -100,7 +100,7 @@ "message": "Sponsorship Ends Now" }, "noVideoID": { - "message": "This probably isn't a YouTube tab, or you clicked too early. \n If you know this is a YouTube tab,\n close this popup and open it again.\n\nYou must refresh your YouTube tab after installing or updating (even auto-update) the extension." + "message": "No YouTube video found at this tab. If you know this is a YouTube tab, close this popup and open it again. If that does not work, try reloading the tab." }, "success": { "message": "Success!" diff --git a/popup.html b/popup.html index 5b5a2948..88cb5756 100644 --- a/popup.html +++ b/popup.html @@ -14,7 +14,7 @@ -

__MSG_Loading__

+

__MSG_noVideoID__

- +
+ + +
-
- __MSG_viewLeaderboard__ __MSG_here__. +

__MSG_yourWork__

+ +

+ + + + +

+ __MSG_viewLeaderboard__ __MSG_here__. +
+

+ +
+ + +
+ + __MSG_publicStats__ __MSG_here__. + +
+ +