diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 52c07049..70dc8350 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -1049,6 +1049,12 @@ "hideSegment": { "message": "Hide segment" }, + "skipSegment": { + "message": "Skip segment" + }, + "playChapter": { + "message": "Play chapter" + }, "SponsorTimeEditScrollNewFeature": { "message": "Use your mousewheel while hovering over the edit box to quickly adjust the time. Combinations of the ctrl or shift key can be used to fine tune the changes." }, 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 { 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));