aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcaneleex <[email protected]>2022-10-10 21:21:57 +0200
committercaneleex <[email protected]>2022-10-10 21:21:57 +0200
commit2bd1271575c17a88564f927c38d918a65188e4a0 (patch)
tree462bfc7376d23885f9422dc57051f868e9759ce1
parent5d62b11a6d88f30a1340e4d82778b1c086ae4f46 (diff)
downloadSponsorBlock-2bd1271575c17a88564f927c38d918a65188e4a0.tar.gz
SponsorBlock-2bd1271575c17a88564f927c38d918a65188e4a0.zip
don't append skip button for full video labels
-rw-r--r--src/popup.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/popup.ts b/src/popup.ts
index 1fc1acc6..338ecfcd 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -708,8 +708,9 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
&& [SponsorHideType.Visible, SponsorHideType.Hidden].includes(downloadedTimes[i].hidden)) {
voteButtonsContainer.appendChild(hideButton);
}
- voteButtonsContainer.appendChild(skipButton);
-
+ if (downloadedTimes[i].actionType !== ActionType.Full) {
+ voteButtonsContainer.appendChild(skipButton);
+ }
// Will contain request status
const voteStatusContainer = document.createElement("div");