Mirror YouTube HTML5 Video Bookmarklet

If you are in the HTML5 trial on YouTube, you can use this bookmarklet to instantly flip HTML5 videos horizontally, which can create "mirrored" versions of dance videos to learn from.

You can tell if a video is HTML5 by right-clicking on the video: If you just see "Save Video As..." and "About HTML5" then it's HTML5. Often videos viewed from a channel won't be HTML5, but if you open the video's page ("View comments, related videos, and more") it will be HTML5. To find videos that can be mirrored, you can select WebM under Features in YouTube's Advanced Search options.

Source (chat.carleton.ca)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%7Bif%28document.getElementsByTagName%28%22video%22%29.length%3D%3D1%29%7Bif%28document.getElementsByTagName%28%22video%22%29%5B0%5D.style.cssText%3D%3D%22%22%29%7Bwindow.mirrored%3Dtrue%3Bdocument.getElementsByTagName%28%22video%22%29%5B0%5D.style.cssText%3D%22-moz-transform%3A%20scale%28-1%2C%201%29%3B%20-webkit-transform%3A%20scale%28-1%2C%201%29%3B%20-o-transform%3A%20scale%28-1%2C%201%29%3B%20transform%3A%20scale%28-1%2C%201%29%3B%20filter%3A%20FlipH%3B%22%3Breturn%3B%7Dif%28window.mirrored%29%7Bdocument.getElementsByTagName%28%22video%22%29%5B0%5D.style.cssText%3D%22-moz-transform%3A%20scale%281%2C%201%29%3B%20-webkit-transform%3A%20scale%281%2C%201%29%3B%20-o-transform%3A%20scale%281%2C%201%29%3B%20transform%3A%20scale%281%2C%201%29%3B%22%3Bwindow.mirrored%3Dfalse%3B%7Delse%20if%28%21window.mirrored%29%7Bdocument.getElementsByTagName%28%22video%22%29%5B0%5D.style.cssText%3D%22-moz-transform%3A%20scale%28-1%2C%201%29%3B%20-webkit-transform%3A%20scale%28-1%2C%201%29%3B%20-o-transform%3A%20scale%28-1%2C%201%29%3B%20transform%3A%20scale%28-1%2C%201%29%3B%20filter%3A%20FlipH%3B%22%3Bwindow.mirrored%3Dtrue%3B%7D%7D%3B%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.

Hannah Jade

This is wonderful, really helpful for learning dances! Thank you so much.