SponsorBlock/public/popup.html

166 lines
7.4 KiB
HTML
Raw Normal View History

2022-02-13 11:28:15 +01:00
<!DOCTYPE html>
2021-07-27 19:20:40 +02:00
<html id="sponsorBlockPopupHTML">
<head>
2022-02-13 11:28:15 +01:00
<meta charset="utf-8" />
2021-07-27 19:20:40 +02:00
<title>__MSG_openPopup__</title>
2022-02-13 11:28:15 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link id="sponsorBlockPopupFont" href="/libs/Source+Sans+Pro.css" rel="stylesheet">
<link id="sponsorBlockStyleSheet" href="popup.css" rel="stylesheet">
2021-07-27 19:20:40 +02:00
</head>
2020-08-08 01:43:04 +02:00
2021-07-27 19:20:40 +02:00
<body id="sponsorBlockPopupBody">
2022-03-12 06:23:16 +01:00
<div id="sponsorblockPopup" class="sponsorBlockPageBody sb-preload">
2022-02-13 11:28:15 +01:00
2022-04-09 16:22:39 +02:00
<div id="sbBetaServerWarning" class="hidden" title="__MSG_openOptionsPage__">
__MSG_betaServerWarning__
</div>
2022-02-15 18:25:33 +01:00
<header class="sbPopupLogo">
2022-02-13 11:28:15 +01:00
<img src="icons/IconSponsorBlocker256px.png" alt="SponsorBlock" width="40" height="40" id="sponsorBlockPopupLogo">
2022-02-15 18:25:33 +01:00
<p class="u-mZ">SponsorBlock</p>
2022-02-13 11:28:15 +01:00
</header>
<div id="videoInfo">
<!-- Loading text -->
2022-02-15 18:25:33 +01:00
<p id="loadingIndicator" class="u-mZ">__MSG_noVideoID__</p>
2022-02-13 11:28:15 +01:00
<!-- If the video was found in the database -->
2022-02-15 18:25:33 +01:00
<p id="videoFound" class="u-mZ"></p>
2022-02-13 11:28:15 +01:00
<button id="refreshSegmentsButton" title="__MSG_refreshSegments__">
<img src="/icons/refresh.svg" alt="Refresh icon" id="refreshSegments" />
</button>
2021-07-27 19:20:40 +02:00
<div id="issueReporterContainer">
<div id="issueReporterTimeButtons"></div>
</div>
2020-08-16 04:09:14 +02:00
</div>
2022-02-13 11:28:15 +01:00
2022-02-15 18:25:33 +01:00
<div class="sbControlsMenu">
<label id="whitelistButton" for="whitelistToggle" class="hidden sbControlsMenu-item" title="__MSG_forceChannelCheckPopup__">
2022-02-13 11:28:15 +01:00
<input type="checkbox" style="display:none;" id="whitelistToggle">
2022-02-15 18:25:33 +01:00
<svg viewBox="0 0 24 24" width="23" height="23" class="SBWhitelistIcon sbControlsMenu-itemIcon">
2022-02-13 11:28:15 +01:00
<path d="M24 10H14V0h-4v10H0v4h10v10h4V14h10z" />
</svg>
<span id="whitelistChannel">__MSG_whitelistChannel__</span>
<span id="unwhitelistChannel" style="display: none">__MSG_removeFromWhitelist__</span>
</label>
<!--github: mbledkowski/toggle-switch-->
2022-02-15 18:25:33 +01:00
<label id="disableExtension" for="toggleSwitch" class="toggleSwitchContainer sbControlsMenu-item">
2022-02-13 11:28:15 +01:00
<span class="toggleSwitchContainer-switch">
2021-07-27 19:20:40 +02:00
<input type="checkbox" style="display:none;" id="toggleSwitch" checked>
<span class="switchBg shadow"></span>
<span class="switchBg white"></span>
<span class="switchBg green"></span>
<span class="switchDot"></span>
2022-02-13 11:28:15 +01:00
</span>
<span id="disableSkipping">__MSG_disableSkipping__</span>
<span id="enableSkipping" style="display: none">__MSG_enableSkipping__</span>
</label>
2022-02-15 18:25:33 +01:00
<button id="optionsButton" class="sbControlsMenu-item" title="__MSG_optionsInfo__">
<img src="/icons/settings.svg" alt="Settings icon" width="23" height="23" class="sbControlsMenu-itemIcon" id="sbPopupIconSettings" />
2022-02-13 11:28:15 +01:00
__MSG_Options__
</button>
2020-08-16 04:09:14 +02:00
</div>
2020-12-14 04:41:59 +01:00
2022-02-15 18:25:33 +01:00
<p id="whitelistForceCheck" class="u-mZ hidden">
2021-07-27 19:20:40 +02:00
__MSG_forceChannelCheckPopup__
2022-02-13 11:28:15 +01:00
</p>
2021-07-27 19:20:40 +02:00
<div id="mainControls" style="display: none">
2022-02-13 11:28:15 +01:00
<p class="sbHeader">
2021-07-27 19:20:40 +02:00
__MSG_recordTimesDescription__
</p>
<sub style="margin-bottom: 12px;">__MSG_popupHint__</sub>
2020-08-19 05:15:22 +02:00
<div>
2022-02-15 18:25:33 +01:00
<button id="sponsorStart" class="sbMediumButton">__MSG_sponsorStart__</button>
2021-07-27 19:20:40 +02:00
</div>
<div id="submissionSection" style="display: none">
<b style="display: block; margin-top: 12px;">__MSG_submissionEditHint__</b>
2022-02-15 18:25:33 +01:00
<button id="submitTimes" class="sbMediumButton">__MSG_submitTimesButton__</button>
2021-07-27 19:20:40 +02:00
</div>
</div>
2022-02-15 18:25:33 +01:00
2022-02-13 11:28:15 +01:00
<h1 class="recordingSubtitle sbHeader">__MSG_yourWork__</h1>
2022-02-15 18:25:33 +01:00
<div class="sbYourWorkCols">
2021-07-27 19:20:40 +02:00
<div id="usernameElement">
<div>
2022-02-15 18:25:33 +01:00
<p class="u-mZ">__MSG_Username__:</p>
2021-07-27 19:20:40 +02:00
<div id="setUsernameContainer">
2022-02-15 18:25:33 +01:00
<p id="usernameValue" class="u-mZ"></p>
2021-07-27 19:20:40 +02:00
<button id="setUsernameButton" title="__MSG_setUsername__">
<img src="/icons/pencil.svg" alt="__MSG_setUsername__" width="16" height="16" id="sbPopupIconEdit">
</button>
2021-09-01 10:22:06 +02:00
<button id="copyUserID" title="__MSG_copyPublicID__">
<img src="/icons/clipboard.svg" alt="__MSG_copyPublicID__" width="16" height="16" id="sbPopupIconCopyUserID">
</button>
</div>
2021-07-27 19:20:40 +02:00
<div id="setUsername" style="display: none">
<div id="setUsernameStatusContainer" style="display: none">
2022-02-15 18:25:33 +01:00
<p id="setUsernameStatus" class="u-mZ"></p>
2021-07-27 19:20:40 +02:00
</div>
2022-02-13 11:28:15 +01:00
<input id="usernameInput" placeholder="Username">
2021-07-27 19:20:40 +02:00
<button id="submitUsername">
<img src="/icons/check.svg" alt="__MSG_setUsername__" width="16" height="16" id="sbPopupIconCheck">
</button>
</div>
</div>
</div>
<div id="sponsorTimesContributionsContainer" class="hidden">
<div>
2022-02-15 18:25:33 +01:00
<p class="u-mZ">__MSG_Submissions__:</p>
2021-07-27 19:20:40 +02:00
<span id="sponsorTimesContributionsDisplay">
0
</span>
2020-08-16 04:09:14 +02:00
</div>
2020-08-19 05:15:22 +02:00
</div>
2020-08-16 04:09:14 +02:00
</div>
2021-07-27 19:20:40 +02:00
2022-02-15 18:25:33 +01:00
<p id="sponsorTimesViewsContainer" style="display: none" class="u-mZ">
2021-07-27 19:20:40 +02:00
__MSG_savedPeopleFrom__
<b><span id="sponsorTimesViewsDisplay">
0
</span></b>
<span id="sponsorTimesViewsDisplayEndWord">__MSG_Segments__</span>
<br>
(<b><span id="sponsorTimesOthersTimeSavedDisplay">0</span>
<span id="sponsorTimesOthersTimeSavedEndWord">__MSG_minsLower__</span></b>
<span>__MSG_youHaveSavedTimeEnd__</span>).
2022-02-13 11:28:15 +01:00
</p>
2022-02-15 18:25:33 +01:00
<p id="sponsorTimesSkipsDoneContainer" style="display: none" class="u-mZ">
2021-07-27 19:20:40 +02:00
__MSG_youHaveSkipped__
<b><span id="sponsorTimesSkipsDoneDisplay">
0
</span></b>
<span id="sponsorTimesSkipsDoneEndWord">__MSG_Segments__</span>
(<b><span id="sponsorTimeSavedDisplay">
0
</span>
2021-07-27 19:20:40 +02:00
<span id="sponsorTimeSavedEndWord">__MSG_minsLower__</span></b>).
2022-02-13 11:28:15 +01:00
</p>
2021-07-27 19:20:40 +02:00
<footer id="sbFooter">
2022-02-07 17:13:27 +01:00
<div id="sponsorTimesDonateContainer" style="display: none; align-items: center; justify-content: center;">
2022-02-13 11:28:15 +01:00
<img class="sbHeart" src="/icons/heart.svg" alt="Heart icon" />
2022-02-07 00:12:58 +01:00
<a id="sbConsiderDonateLink" href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">
__MSG_considerDonating__
</a>
2022-02-13 11:28:15 +01:00
<img id="sbCloseDonate" src="/icons/close.png" alt="Close icon" height="8" style="padding-left: 5px; cursor: pointer;" />
2022-02-07 00:12:58 +01:00
</div>
2021-07-27 19:20:40 +02:00
<a href="https://sponsor.ajay.app" target="_blank" rel="noopener">__MSG_website__</a> |
<a href="https://sponsor.ajay.app/stats" target="_blank" rel="noopener">__MSG_viewLeaderboard__</a> |
<a href="https://github.com/ajayyy/SponsorBlock" target="_blank" rel="noopener">GitHub</a>
<br/>
2021-08-29 21:01:11 +02:00
<a href="https://discord.gg/SponsorBlock" target="_blank" rel="noopener">Discord</a> |
2021-07-27 19:20:40 +02:00
<a href="https://matrix.to/#/#sponsor:ajay.app?via=ajay.app&via=matrix.org&via=mozilla.org" target="_blank" rel="noopener">Matrix</a> |
2022-02-15 18:25:33 +01:00
<a id="helpButton">__MSG_help__</a> |
2021-07-27 19:20:40 +02:00
<a href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener" id="sbDonate">$</a>
</footer>
2020-08-08 01:43:04 +02:00
2022-02-15 18:25:33 +01:00
<button id="showNoticeAgain" style="display: none">__MSG_showNotice__</button>
2022-02-13 11:28:15 +01:00
2020-08-08 01:43:04 +02:00
</div>
2021-07-27 19:20:40 +02:00
<!-- Scripts that need to load after the html -->
<script src="./js/vendor.js" async></script>
<script src="./js/popup.js" async></script>
</body>
2022-02-13 11:28:15 +01:00
</html>