diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 00d65946..391c8d5e 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -123,5 +123,8 @@ }, "leftTimes": { "message": "You seem to have left some sponsor times unsubmitted. Go back to that page to submit them (they are not deleted)." + }, + "submitCheck": { + "message": "Are you sure you want to submit this?" } } diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index d40cb95a..e15255f7 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -31,10 +31,10 @@ "message": "Cette channel est sur la liste blanche!" }, "Sponsor": { - "message": "Endossement" + "message": "endossement" }, "Sponsors": { - "message": "Endossements" + "message": "endossements" }, "Segment": { "message": "section d'endossement" @@ -122,5 +122,8 @@ }, "leftTimes": { "message": "Vous avez laissé les endossements qui n'étaient pas soumis. Retournez à la page pour les soumettre (Ils ne sont pas enlevés)." + }, + "submitCheck": { + "message": "Êtes-vous certaines vous voulez soumettre?" } } diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index 1de3a885..b5ec5bd8 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -31,10 +31,10 @@ "message": "Canal adicionado a lista branca!" }, "Sponsor": { - "message": "Patrocinador" + "message": "patrocinador" }, "Sponsors": { - "message": "Patrocinadores" + "message": "patrocinadores" }, "Segment": { "message": "segmento de patrocinador" diff --git a/content.css b/content.css index d6fd89aa..525fedc3 100644 --- a/content.css +++ b/content.css @@ -71,7 +71,7 @@ } .sponsorSkipNotice { - min-width: 280px; + min-width: 300px; background-color: rgba(28, 28, 28, 0.9); position: absolute; right: 5px; diff --git a/content.js b/content.js index 36754917..367e2bc6 100644 --- a/content.js +++ b/content.js @@ -931,8 +931,8 @@ function submitSponsorTimes() { let sponsorTimes = result[sponsorTimeKey]; if (sponsorTimes != undefined && sponsorTimes.length > 0) { - let confirmMessage = "Are you sure you want to submit this?\n\n" + getSponsorTimesMessage(sponsorTimes); - confirmMessage += "\n\nTo edit or delete values, click the info button or open the extension popup by clicking the extension icon in the top right corner." + let confirmMessage = chrome.i18n.getMessage("submitCheck") + "\n\n" + getSponsorTimesMessage(sponsorTimes); + confirmMessage += "\n\n" + chrome.i18n.getMessage("confirmMSG"); if(!confirm(confirmMessage)) return; sendSubmitMessage(); diff --git a/utils.js b/utils.js index 178d4e81..3e7fc7b5 100644 --- a/utils.js +++ b/utils.js @@ -5,7 +5,7 @@ function getYouTubeVideoID(url) { urlObject = new URL(url); } catch (e) { console.error("[SB] Unable to parse URL: " + url); - return false + return false; } //Check if valid hostname