diff options
author | Ajay <[email protected]> | 2022-09-24 22:33:12 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-09-24 22:33:12 -0400 |
commit | 280127c9afa660edfd210a8d1c1708af4383c3e3 (patch) | |
tree | 172af8cb39dfc4b47f7031e43d76eed43c579b51 /src/popup.ts | |
parent | da35e889f2d4d14395f0d4e2e857bd66f7e1a98a (diff) | |
download | SponsorBlock-280127c9afa660edfd210a8d1c1708af4383c3e3.tar.gz SponsorBlock-280127c9afa660edfd210a8d1c1708af4383c3e3.zip |
Add tooltip to skip segment button
Diffstat (limited to 'src/popup.ts')
-rw-r--r-- | src/popup.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/popup.ts b/src/popup.ts index c903c7a0..ece79a66 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -674,6 +674,8 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> { skipButton.id = "sponsorTimesSkipButtonContainer" + UUID; skipButton.className = "voteButton"; skipButton.src = chrome.runtime.getURL("icons/skip.svg"); + skipButton.title = actionType === ActionType.Chapter ? chrome.i18n.getMessage("playChapter") + : chrome.i18n.getMessage("skipSegment"); skipButton.addEventListener("click", () => skipSegment(actionType, UUID, skipButton)); votingButtons.addEventListener("dblclick", () => skipSegment(actionType, UUID)); |