diff options
author | Ajay Ramachandran <[email protected]> | 2019-11-24 01:16:56 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-24 01:16:56 -0500 |
commit | 62d4b365c243734dc3a757e73d06760f5a799aa8 (patch) | |
tree | 5884f233e9e78615aa7dbd79cb8023ac308bf2a3 | |
parent | f35d34a807896d8fa4ca98b4ba4d7a3bf6c5246f (diff) | |
parent | 524df6389a9567cdcdcf9d19cca34e17e65398c0 (diff) | |
download | SponsorBlock-62d4b365c243734dc3a757e73d06760f5a799aa8.tar.gz SponsorBlock-62d4b365c243734dc3a757e73d06760f5a799aa8.zip |
Merge pull request #173 from ajayyy/experimental-ajay11.9.6
Made the popup work on non YouTube tabs
-rw-r--r-- | _locales/en/messages.json | 2 | ||||
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | popup.html | 210 |
3 files changed, 108 insertions, 106 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/manifest.json b/manifest.json index c8d06d88..6b8182e1 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.1.9.5", + "version": "1.1.9.6", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [ @@ -14,7 +14,7 @@ </h1> <!-- Loading text --> - <p id="loadingIndicator" class="popupElement">__MSG_Loading__</p> + <p id="loadingIndicator" class="popupElement">__MSG_noVideoID__</p> <!-- Hidden until loading complete --> <div id="mainControls" class="main popupElement" style="display: none"> @@ -89,13 +89,6 @@ <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> <div id="issueReporterContainer" class="popupElement" style="display: none"> @@ -108,126 +101,135 @@ </div> - <h2 class="recordingSubtitle popupElement">__MSG_yourWork__</h2> - - <p class="popupElement"> - <span id=sponsorTimesContributionsContainer class="popupElement" style="display: none"> - __MSG_soFarUHSubmited__ - <span id="sponsorTimesContributionsDisplay" class="popupElement"> - 0 - </span> - <span id="sponsorTimesContributionsDisplayEndWord" class="popupElement"> - __MSG_Sponsors__. - </span> - </span> + <br/> + <br/> - <span id=sponsorTimesViewsContainer class="popupElement" style="display: none"> - __MSG_savedPeopleFrom__ - <span id="sponsorTimesViewsDisplay" class="popupElement"> - 0 - </span> - <span id="sponsorTimesViewsDisplayEndWord" class="popupElement"> - __MSG_Segments__. - __MSG_savedPeopleFrom__ - </span> - </span> + </div> - <div class="popupElement"> - __MSG_viewLeaderboard__ <a class="popupElement discreteLink" href="https://sponsor.ajay.app/stats" target="_blank">__MSG_here__</a>. - </div> - </p> + <div> + <button id="disableSkipping" class="greenButton popupElement">__MSG_disableSkipping__</button> + <button id="enableSkipping" class="whitelistButton popupElement" style="display: none">__MSG_enableSkipping__</button> + </div> - <div id="setUsernameContainer" class="popupElement"> - - <button id="setUsernameButton" class="warningButton popupElement">__MSG_setUsername__</button> - <br/> - <sub class="popupElement"> - __MSG_publicStats__ <a class="popupElement discreteLink" href="https://sponsor.ajay.app/stats" target="_blank">__MSG_here__</a>. - </sub> + <h2 class="recordingSubtitle popupElement">__MSG_yourWork__</h2> + + <p class="popupElement"> + <span id=sponsorTimesContributionsContainer class="popupElement" style="display: none"> + __MSG_soFarUHSubmited__ + <span id="sponsorTimesContributionsDisplay" class="popupElement"> + 0 + </span> + <span id="sponsorTimesContributionsDisplayEndWord" class="popupElement"> + __MSG_Sponsors__. + </span> + </span> + + <span id=sponsorTimesViewsContainer class="popupElement" style="display: none"> + __MSG_savedPeopleFrom__ + <span id="sponsorTimesViewsDisplay" class="popupElement"> + 0 + </span> + <span id="sponsorTimesViewsDisplayEndWord" class="popupElement"> + __MSG_Segments__. + __MSG_savedPeopleFrom__ + </span> + </span> + + <div class="popupElement"> + __MSG_viewLeaderboard__ <a class="popupElement discreteLink" href="https://sponsor.ajay.app/stats" target="_blank">__MSG_here__</a>. </div> + </p> - <div id="setUsername" class="popupElement" style="display: none"> - <h3>__MSG_setUsername__</h3> + <div id="setUsernameContainer" class="popupElement"> + + <button id="setUsernameButton" class="warningButton popupElement">__MSG_setUsername__</button> + <br/> + <sub class="popupElement"> + __MSG_publicStats__ <a class="popupElement discreteLink" href="https://sponsor.ajay.app/stats" target="_blank">__MSG_here__</a>. + </sub> + </div> - <div id="setUsernameStatusContainer" style="display: none"> - <h2 id="setUsernameStatus"></h2> - </div> + <div id="setUsername" class="popupElement" style="display: none"> + <h3>__MSG_setUsername__</h3> - <input id="usernameInput" hint="Username"></input> + <div id="setUsernameStatusContainer" style="display: none"> + <h2 id="setUsernameStatus"></h2> + </div> - <br/> - <br/> + <input id="usernameInput" hint="Username"></input> - <button id="submitUsername" class="warningButton popupElement">__MSG_setUsername__</button> - </div> + <br/> + <br/> - <div id="optionsButtonContainer" class="popupElement"> - <br/> - <br/> - - <button id="optionsButton" class="dangerButton popupElement">__MSG_Options__</button> - </div> + <button id="submitUsername" class="warningButton popupElement">__MSG_setUsername__</button> + </div> - <div id="options" class="popupElement" style="display: none"> - <br/> + <div id="optionsButtonContainer" class="popupElement"> + <br/> + <br/> + + <button id="optionsButton" class="dangerButton popupElement">__MSG_Options__</button> + </div> - <h3>__MSG_Options__</h3> + <div id="options" class="popupElement" style="display: none"> + <br/> - <span id="keybindButtons"> - <button id="setStartSponsorKeybind" class="warningButton popupElement">__MSG_setStartSponsorShortcut__</button> - <br/> - <br/> - <button id="setSubmitKeybind" class="warningButton popupElement">__MSG_setSubmitKeybind__</button> - <br/> - </span> - - <h2 id="keybindDescription" style="display: none" class="popupElement">__MSG_keybindDescription__</h2> + <h3>__MSG_Options__</h3> + <span id="keybindButtons"> + <button id="setStartSponsorKeybind" class="warningButton popupElement">__MSG_setStartSponsorShortcut__</button> <br/> <br/> - - <button id="hideVideoPlayerControls" class="warningButton popupElement">__MSG_hideButtons__</button> - <button id="showVideoPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showButtons__</button> + <button id="setSubmitKeybind" class="warningButton popupElement">__MSG_setSubmitKeybind__</button> <br/> - <sub class="popupElement"> - __MSG_hideButtonsDescription__ - </sub> + </span> + + <h2 id="keybindDescription" style="display: none" class="popupElement">__MSG_keybindDescription__</h2> - <br/> - <br/> + <br/> + <br/> + + <button id="hideVideoPlayerControls" class="warningButton popupElement">__MSG_hideButtons__</button> + <button id="showVideoPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showButtons__</button> + <br/> + <sub class="popupElement"> + __MSG_hideButtonsDescription__ + </sub> - <button id="hideInfoButtonPlayerControls" class="warningButton popupElement">__MSG_hideInfoButton__</button> - <button id="showInfoButtonPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showInfoButton__</button> - <br/> - <sub class="popupElement"> - __MSG_whatInfoButton__ - </sub> + <br/> + <br/> - <br/> - <br/> + <button id="hideInfoButtonPlayerControls" class="warningButton popupElement">__MSG_hideInfoButton__</button> + <button id="showInfoButtonPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showInfoButton__</button> + <br/> + <sub class="popupElement"> + __MSG_whatInfoButton__ + </sub> - <button id="hideDeleteButtonPlayerControls" class="warningButton popupElement">__MSG_hideDeleteButton__</button> - <button id="showDeleteButtonPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showDeleteButton__</button> - <br/> - <sub class="popupElement"> - __MSG_whatDeleteButton__ - </sub> + <br/> + <br/> - <br/> - <br/> + <button id="hideDeleteButtonPlayerControls" class="warningButton popupElement">__MSG_hideDeleteButton__</button> + <button id="showDeleteButtonPlayerControls" style="display: none" class="warningButton popupElement">__MSG_showDeleteButton__</button> + <br/> + <sub class="popupElement"> + __MSG_whatDeleteButton__ + </sub> - <button id="disableSponsorViewTracking" class="warningButton popupElement">__MSG_disableViewTracking__</button> - <button id="enableSponsorViewTracking" style="display: none" class="warningButton popupElement">__MSG_enableViewTracking__</button> - <br/> - <sub class="popupElement"> - __MSG_whatViewTracking__ - </sub> - - <br/> - <br/> + <br/> + <br/> - <button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button> - </div> + <button id="disableSponsorViewTracking" class="warningButton popupElement">__MSG_disableViewTracking__</button> + <button id="enableSponsorViewTracking" style="display: none" class="warningButton popupElement">__MSG_enableViewTracking__</button> + <br/> + <sub class="popupElement"> + __MSG_whatViewTracking__ + </sub> + + <br/> + <br/> + + <button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button> </div> </div> </center> |