mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-12 18:04:20 +01:00
hide stuff
This commit is contained in:
parent
f50110636d
commit
3f81006526
3 changed files with 7 additions and 18 deletions
|
@ -30,7 +30,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sbControlsMenu">
|
<div class="sbControlsMenu">
|
||||||
<label id="whitelistButton" for="whitelistToggle" class="hidden sbControlsMenu-item" title="__MSG_forceChannelCheckPopup__">
|
<label style="display: none" id="whitelistButton" for="whitelistToggle" class="hidden sbControlsMenu-item" title="__MSG_forceChannelCheckPopup__">
|
||||||
<input type="checkbox" style="display:none;" id="whitelistToggle">
|
<input type="checkbox" style="display:none;" id="whitelistToggle">
|
||||||
<svg viewBox="0 0 24 24" width="23" height="23" class="SBWhitelistIcon sbControlsMenu-itemIcon">
|
<svg viewBox="0 0 24 24" width="23" height="23" class="SBWhitelistIcon sbControlsMenu-itemIcon">
|
||||||
<path d="M24 10H14V0h-4v10H0v4h10v10h4V14h10z" />
|
<path d="M24 10H14V0h-4v10H0v4h10v10h4V14h10z" />
|
||||||
|
@ -74,8 +74,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1 class="recordingSubtitle sbHeader">__MSG_yourWork__</h1>
|
<h1 class="recordingSubtitle sbHeader" style="display: none">__MSG_yourWork__</h1>
|
||||||
<div class="sbYourWorkCols">
|
<div class="sbYourWorkCols" style="display: none">
|
||||||
<div id="usernameElement">
|
<div id="usernameElement">
|
||||||
<div>
|
<div>
|
||||||
<p class="u-mZ">__MSG_Username__:</p>
|
<p class="u-mZ">__MSG_Username__:</p>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
<span id="sponsorTimeSavedEndWord">__MSG_minsLower__</span></b>).
|
<span id="sponsorTimeSavedEndWord">__MSG_minsLower__</span></b>).
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<footer id="sbFooter">
|
<footer id="sbFooter" style="display: none">
|
||||||
<div id="sponsorTimesDonateContainer" style="display: none; align-items: center; justify-content: center;">
|
<div id="sponsorTimesDonateContainer" style="display: none; align-items: center; justify-content: center;">
|
||||||
<img class="sbHeart" src="/icons/heart.svg" alt="Heart icon" />
|
<img class="sbHeart" src="/icons/heart.svg" alt="Heart icon" />
|
||||||
<a id="sbConsiderDonateLink" href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">
|
<a id="sbConsiderDonateLink" href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">
|
||||||
|
|
|
@ -776,17 +776,6 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
|
||||||
|
|
||||||
sponsorDataFound = true;
|
sponsorDataFound = true;
|
||||||
|
|
||||||
// Check if any old submissions should be kept
|
|
||||||
if (sponsorTimes !== null && keepOldSubmissions) {
|
|
||||||
for (let i = 0; i < sponsorTimes.length; i++) {
|
|
||||||
if (sponsorTimes[i].source === SponsorSourceType.Local) {
|
|
||||||
// This is a user submission, keep it
|
|
||||||
recievedSegments.push(sponsorTimes[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const oldSegments = sponsorTimes || [];
|
|
||||||
sponsorTimes = recievedSegments;
|
sponsorTimes = recievedSegments;
|
||||||
|
|
||||||
if (sponsorTimes) {
|
if (sponsorTimes) {
|
||||||
|
|
|
@ -206,7 +206,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
PageElements.sponsorTimesSkipsDoneDisplay.innerText = Config.config.skipCount.toLocaleString();
|
PageElements.sponsorTimesSkipsDoneDisplay.innerText = Config.config.skipCount.toLocaleString();
|
||||||
PageElements.sponsorTimesSkipsDoneContainer.style.display = "block";
|
// PageElements.sponsorTimesSkipsDoneContainer.style.display = "block";
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the amount of time this user has saved.
|
//get the amount of time this user has saved.
|
||||||
|
@ -510,8 +510,8 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
|
||||||
voteStatusContainer.appendChild(thanksForVotingText);
|
voteStatusContainer.appendChild(thanksForVotingText);
|
||||||
|
|
||||||
votingButtons.append(segmentSummary);
|
votingButtons.append(segmentSummary);
|
||||||
votingButtons.append(voteButtonsContainer);
|
// votingButtons.append(voteButtonsContainer);
|
||||||
votingButtons.append(voteStatusContainer);
|
// votingButtons.append(voteStatusContainer);
|
||||||
|
|
||||||
container.appendChild(votingButtons);
|
container.appendChild(votingButtons);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue