From 913ad63f003521796808629532a601165bc37133 Mon Sep 17 00:00:00 2001 From: Jordan Burgess Date: Wed, 14 May 2014 14:26:06 +0100 Subject: [PATCH 1/3] Rewind goes back 10s and slows down speed by 10 points instead of 20 --- inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject.js b/inject.js index 44bbf12..c30f12e 100644 --- a/inject.js +++ b/inject.js @@ -85,7 +85,7 @@ chrome.extension.sendMessage({}, function(response) { videoTags.forEach(function(v) { if (!v.paused && !v.classList.contains("vc-cancelled")) { if (action === 'rewind') { - v.playbackRate -= 0.20; + v.playbackRate -= 0.10; v.currentTime -= 10; } else if (action === 'faster') { v.playbackRate += 0.10 } else if (action === 'slower') { v.playbackRate -= 0.10 } From aeb9dcef11070e4c91d81fadf3273bcaee7b63ac Mon Sep 17 00:00:00 2001 From: Jordan Burgess Date: Wed, 14 May 2014 14:26:43 +0100 Subject: [PATCH 2/3] readme rewind update to say 10 points --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c040dc7..2fdb026 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ HTML5 video provides a native API to accelerate playback of any video. The probl Once the extension is installed simply navigate to any page that offers HTML5 video ([example](http://www.youtube.com/watch?v=E9FxNzv1Tr8)), and you'll see a speed indicator in top left corner. Hover over the indicator to reveal the controls to accelerate, slowdown, or rewind the video (10 seconds + lowers playback speed). Or, even better, simply use your keyboard: -* **a** - will rewind video 10s and lower playback speed. +* **a** - will rewind video 10s and lower playback speed **by 10 points**. * **s** - will lower playback speed. * **d** - will accelerate playback speed. From aa9327b5c10d442789f8143e9010f86bf95b3913 Mon Sep 17 00:00:00 2001 From: Jordan Burgess Date: Fri, 30 May 2014 11:25:53 +0100 Subject: [PATCH 3/3] Limit min speed to 0.00 --- inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject.js b/inject.js index c30f12e..2ceceb7 100644 --- a/inject.js +++ b/inject.js @@ -88,7 +88,7 @@ chrome.extension.sendMessage({}, function(response) { v.playbackRate -= 0.10; v.currentTime -= 10; } else if (action === 'faster') { v.playbackRate += 0.10 } - else if (action === 'slower') { v.playbackRate -= 0.10 } + else if (action === 'slower') { v.playbackRate = Math.max(v.playbackRate - 0.10, 0.00) } } }); }