Made the popup work on non YouTube tabs.

This commit is contained in:
Ajay Ramachandran
2019-11-24 01:13:52 -05:00
parent 468e33eff7
commit 24292e771b
2 changed files with 115 additions and 113 deletions

View File

@@ -100,7 +100,7 @@
"message": "Sponsorship Ends Now" "message": "Sponsorship Ends Now"
}, },
"noVideoID": { "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": { "success": {
"message": "Success!" "message": "Success!"

View File

@@ -14,7 +14,7 @@
</h1> </h1>
<!-- Loading text --> <!-- Loading text -->
<p id="loadingIndicator" class="popupElement">__MSG_Loading__</p> <p id="loadingIndicator" class="popupElement">__MSG_noVideoID__</p>
<!-- Hidden until loading complete --> <!-- Hidden until loading complete -->
<div id="mainControls" class="main popupElement" style="display: none"> <div id="mainControls" class="main popupElement" style="display: none">
@@ -89,13 +89,6 @@
<br/> <br/>
<div>
<button id="disableSkipping" class="greenButton popupElement">__MSG_disableSkipping__</button>
<button id="enableSkipping" class="whitelistButton popupElement" style="display: none">__MSG_enableSkipping__</button>
</div>
<br/>
<button id="reportAnIssue" class="dangerButton popupElement">__MSG_voteOnTime__</button> <button id="reportAnIssue" class="dangerButton popupElement">__MSG_voteOnTime__</button>
<div id="issueReporterContainer" class="popupElement" style="display: none"> <div id="issueReporterContainer" class="popupElement" style="display: none">
@@ -108,6 +101,16 @@
</div> </div>
<br/>
<br/>
</div>
<div>
<button id="disableSkipping" class="greenButton popupElement">__MSG_disableSkipping__</button>
<button id="enableSkipping" class="whitelistButton popupElement" style="display: none">__MSG_enableSkipping__</button>
</div>
<h2 class="recordingSubtitle popupElement">__MSG_yourWork__</h2> <h2 class="recordingSubtitle popupElement">__MSG_yourWork__</h2>
<p class="popupElement"> <p class="popupElement">
@@ -229,7 +232,6 @@
<button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button> <button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button>
</div> </div>
</div> </div>
</div>
</center> </center>
</body> </body>