honestbleeps/Reddit-Enhancement-Suite — pull request #707 by thybag (2014-01-09 22:12:46+00:00)
Title: Enable drag resizing for HTML5 video elements

Hello,

With the rise of things like gfycat, I've seen a number of people on reddit noting that RES's standard drag re-size feature doesn't work with HTML5 video. Given how much i tend to use the drag resize feature myself, i thought i may as well have a go at adding it to RES.

I've attempted to keep my additional code to a minimum, so have reused the standard `makeImageZoomable` method, just making a couple of tweaks in order to get it to behave correctly with the HTML5 video (primary just down to video elements not making heights/widths available in the standard ways). The one bit I'm not too happy with (as its a bit of a workaround) is my method of keeping the standard video controls working as expected, since i couldn't find a better way to achieve this (without having to add custom controls) other than simply making the drag script ignore events fired from the bottom 30px of the video element (enough to fit the controls in chrome and firefox ).

I'm hoping others beside myself will find this feature useful, and I'm open to any feedback / ideas on how to improve this functionality.

Thanks,
Carl