diff --git a/_locales/am/messages.json b/_locales/am/messages.json index 8e51dce39..b41486093 100644 --- a/_locales/am/messages.json +++ b/_locales/am/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/ar/messages.json b/_locales/ar/messages.json index d9c32cb58..2c3b07923 100644 --- a/_locales/ar/messages.json +++ b/_locales/ar/messages.json @@ -320,6 +320,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "البريد الإلكتروني" }, diff --git a/_locales/bg/messages.json b/_locales/bg/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/bg/messages.json +++ b/_locales/bg/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/bn/messages.json b/_locales/bn/messages.json index 9fdb25f72..2225f0ac7 100644 --- a/_locales/bn/messages.json +++ b/_locales/bn/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "ছায়া ফেলে দিন" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "ইমেল" }, diff --git a/_locales/ca/messages.json b/_locales/ca/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/ca/messages.json +++ b/_locales/ca/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/cs/messages.json +++ b/_locales/cs/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/da/messages.json b/_locales/da/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/da/messages.json +++ b/_locales/da/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/de/messages.json b/_locales/de/messages.json index efe09016a..451667512 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Schlagschatten" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-Mail" }, diff --git a/_locales/el/messages.json b/_locales/el/messages.json index 5d1195f70..b544f6918 100644 --- a/_locales/el/messages.json +++ b/_locales/el/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ab99cbd1f..f6c20baf7 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/en_GB/messages.json b/_locales/en_GB/messages.json index 58a43b2cb..d5017dceb 100644 --- a/_locales/en_GB/messages.json +++ b/_locales/en_GB/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json index 58a43b2cb..d5017dceb 100644 --- a/_locales/en_US/messages.json +++ b/_locales/en_US/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/es/messages.json b/_locales/es/messages.json index d71194be9..e54a64526 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/es_419/messages.json b/_locales/es_419/messages.json index 58a43b2cb..d5017dceb 100644 --- a/_locales/es_419/messages.json +++ b/_locales/es_419/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/et/messages.json b/_locales/et/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/et/messages.json +++ b/_locales/et/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/fa/messages.json b/_locales/fa/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/fa/messages.json +++ b/_locales/fa/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/fi/messages.json +++ b/_locales/fi/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/fil/messages.json b/_locales/fil/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/fil/messages.json +++ b/_locales/fil/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 4a6ba6dbf..ebc211b90 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Courriel" }, diff --git a/_locales/gu/messages.json b/_locales/gu/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/gu/messages.json +++ b/_locales/gu/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/he/messages.json b/_locales/he/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/he/messages.json +++ b/_locales/he/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/hi/messages.json b/_locales/hi/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/hi/messages.json +++ b/_locales/hi/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/hin/messages.json b/_locales/hin/messages.json index d66ac2c9f..f4094b165 100644 --- a/_locales/hin/messages.json +++ b/_locales/hin/messages.json @@ -314,6 +314,9 @@ "dropShadow": { "message": "परछाई डालना" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "ईमेल" }, diff --git a/_locales/hr/messages.json b/_locales/hr/messages.json index 55eaf90b3..d78522b81 100644 --- a/_locales/hr/messages.json +++ b/_locales/hr/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-mail" }, diff --git a/_locales/hu/messages.json b/_locales/hu/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/hu/messages.json +++ b/_locales/hu/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/id/messages.json b/_locales/id/messages.json index c9fd46fe5..e59771558 100644 --- a/_locales/id/messages.json +++ b/_locales/id/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Surel" }, diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 71c2b6dec..8d2c5407b 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-mail" }, diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index 762da5db7..a644dcfe0 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/kn/messages.json b/_locales/kn/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/kn/messages.json +++ b/_locales/kn/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/ko/messages.json b/_locales/ko/messages.json index 516308d7c..ea57dd5d5 100644 --- a/_locales/ko/messages.json +++ b/_locales/ko/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "이메일" }, diff --git a/_locales/lt/messages.json b/_locales/lt/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/lt/messages.json +++ b/_locales/lt/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/lv/messages.json b/_locales/lv/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/lv/messages.json +++ b/_locales/lv/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/ml/messages.json b/_locales/ml/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/ml/messages.json +++ b/_locales/ml/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/mr/messages.json b/_locales/mr/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/mr/messages.json +++ b/_locales/mr/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/ms/messages.json b/_locales/ms/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/ms/messages.json +++ b/_locales/ms/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/nb_NO/messages.json b/_locales/nb_NO/messages.json index c64459edb..7fc85f82a 100644 --- a/_locales/nb_NO/messages.json +++ b/_locales/nb_NO/messages.json @@ -314,6 +314,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-post" }, diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index fed6bdd53..0d8fc9f3d 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Toon Schaduw" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-mailadres" }, diff --git a/_locales/no/messages.json b/_locales/no/messages.json index c2400549c..4fad1c7f9 100644 --- a/_locales/no/messages.json +++ b/_locales/no/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-post" }, diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json index 8fa8f9ea4..e5f554c3a 100644 --- a/_locales/pl/messages.json +++ b/_locales/pl/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Cień" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index 1a2090eb4..5f4ad7d40 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Sombra projetada" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json index 78867302d..8036afd83 100644 --- a/_locales/pt_PT/messages.json +++ b/_locales/pt_PT/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Correio electronico" }, diff --git a/_locales/ro/messages.json b/_locales/ro/messages.json index d19af76fb..d87929fa7 100644 --- a/_locales/ro/messages.json +++ b/_locales/ro/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 69946f030..1ffacd45d 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -320,6 +320,9 @@ "dropShadow": { "message": "Отбрасывемая тень" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "E-mail" }, diff --git a/_locales/si/messages.json b/_locales/si/messages.json index 915684537..a9f516086 100644 --- a/_locales/si/messages.json +++ b/_locales/si/messages.json @@ -314,6 +314,9 @@ "dropShadow": { "message": "හෙවනැල්ල" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email එක" }, diff --git a/_locales/sk/messages.json b/_locales/sk/messages.json index 885d4d7e1..c13a42f44 100644 --- a/_locales/sk/messages.json +++ b/_locales/sk/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/sl/messages.json b/_locales/sl/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/sl/messages.json +++ b/_locales/sl/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/sr/messages.json +++ b/_locales/sr/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/sw/messages.json b/_locales/sw/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/sw/messages.json +++ b/_locales/sw/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/ta/messages.json b/_locales/ta/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/ta/messages.json +++ b/_locales/ta/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/te/messages.json b/_locales/te/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/te/messages.json +++ b/_locales/te/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/th/messages.json b/_locales/th/messages.json index b6a4e0ed4..adb62223f 100644 --- a/_locales/th/messages.json +++ b/_locales/th/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json index a1ead340e..7363aa534 100644 --- a/_locales/tr/messages.json +++ b/_locales/tr/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Düşen gölge" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Eposta" }, diff --git a/_locales/uk/messages.json b/_locales/uk/messages.json index f808e0371..7fe6fc60c 100644 --- a/_locales/uk/messages.json +++ b/_locales/uk/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/vi/messages.json b/_locales/vi/messages.json index 0c5e5a065..d6cf7a37d 100644 --- a/_locales/vi/messages.json +++ b/_locales/vi/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Bóng đổ" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 9eaafd3e3..985dac32a 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "Drop shadow" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index 7e2b3047e..fffa8f557 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -317,6 +317,9 @@ "dropShadow": { "message": "投射陰影" }, + "durationWithSpeed": { + "message": "Show time remaining with reference to playback speed" + }, "email": { "message": "Email" }, diff --git a/ui/script.js b/ui/script.js index 005b48aee..76c431982 100644 --- a/ui/script.js +++ b/ui/script.js @@ -4329,6 +4329,11 @@ var skeleton = { text: 'showRemainingDuration', value: false }, + duration_with_speed: { + component: 'switch', + text: 'durationWithSpeed', + value: false + }, always_show_progress_bar: { component: 'switch', text: 'alwaysShowProgressBar' diff --git a/youtube-scripts.js b/youtube-scripts.js index accea7cee..e9c4faf39 100644 --- a/youtube-scripts.js +++ b/youtube-scripts.js @@ -1326,7 +1326,14 @@ ImprovedTube.alwaysShowProgressBar = function () { ImprovedTube.formatSecond = function (rTime) { var time = new Date(null); - time.setSeconds(rTime); + + if (this.storage.duration_with_speed === true) { + var playbackRate = this.elements.video.playbackRate; + time.setSeconds(rTime / playbackRate); + } else { + time.setSeconds(rTime); + } + if (rTime / 3600 < 1) { return time.toISOString().substr(14, 5); } else {