aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-04-01 02:22:54 -0400
committerAjay <[email protected]>2022-04-01 02:22:54 -0400
commit3f81006526b2c3ab5d05fddd0aada9f11a37c305 (patch)
treede54738cfc7639427622f352c70c3a5ce7526467
parentf50110636db03c779683164de846f46390a28111 (diff)
downloadSponsorBlock-3f81006526b2c3ab5d05fddd0aada9f11a37c305.tar.gz
SponsorBlock-3f81006526b2c3ab5d05fddd0aada9f11a37c305.zip
-rw-r--r--public/popup.html8
-rw-r--r--src/content.ts11
-rw-r--r--src/popup.ts6
3 files changed, 7 insertions, 18 deletions
diff --git a/public/popup.html b/public/popup.html
index ca056eb8..2ea6236f 100644
--- a/public/popup.html
+++ b/public/popup.html
@@ -30,7 +30,7 @@
</div>
<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">
<svg viewBox="0 0 24 24" width="23" height="23" class="SBWhitelistIcon sbControlsMenu-itemIcon">
<path d="M24 10H14V0h-4v10H0v4h10v10h4V14h10z" />
@@ -74,8 +74,8 @@
</div>
</div>
- <h1 class="recordingSubtitle sbHeader">__MSG_yourWork__</h1>
- <div class="sbYourWorkCols">
+ <h1 class="recordingSubtitle sbHeader" style="display: none">__MSG_yourWork__</h1>
+ <div class="sbYourWorkCols" style="display: none">
<div id="usernameElement">
<div>
<p class="u-mZ">__MSG_Username__:</p>
@@ -132,7 +132,7 @@
<span id="sponsorTimeSavedEndWord">__MSG_minsLower__</span></b>).
</p>
- <footer id="sbFooter">
+ <footer id="sbFooter" style="display: none">
<div id="sponsorTimesDonateContainer" style="display: none; align-items: center; justify-content: center;">
<img class="sbHeart" src="/icons/heart.svg" alt="Heart icon" />
<a id="sbConsiderDonateLink" href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">
diff --git a/src/content.ts b/src/content.ts
index 1cfd8669..4da2a2b7 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -776,17 +776,6 @@ async function sponsorsLookup(id: string, keepOldSubmissions = 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;
if (sponsorTimes) {
diff --git a/src/popup.ts b/src/popup.ts
index 33dbeb54..7165ba40 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -206,7 +206,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
}
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.
@@ -510,8 +510,8 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
voteStatusContainer.appendChild(thanksForVotingText);
votingButtons.append(segmentSummary);
- votingButtons.append(voteButtonsContainer);
- votingButtons.append(voteStatusContainer);
+ // votingButtons.append(voteButtonsContainer);
+ // votingButtons.append(voteStatusContainer);
container.appendChild(votingButtons);
}