printslat.blogg.se

Firefox add on youtube html5
Firefox add on youtube html5










firefox add on youtube html5

Now, as this is extending the normal user offerings in the browser we need to make it obvious that there is a right-click menu available. Notice that in a real product we should of course add the other browser prefixes and go prefix-less but as the functionality now only works in Firefox, this is enough for this demo. moz-transform: scale(0.7) rotate(90deg) As the image has an ID of menudemo here is what is needed in CSS to rotate and resize: The real effect is in CSS transforms and transitions. The functionality is simple, all the rotate() and resize() functions do is add class names to the image using querySelector and classList:ĭocument.querySelector('#menudemo').classList.toggle('rotate') ĭocument.querySelector('#menudemo').classList.toggle('resize') The resulting context menu looks like this: Please don't use this form to report bugs or request add-on features this report will be sent to Mozilla and not to the add-on developer. Add or your favorite video site in the IE tab exception list. If you think this add-on violates Mozilla's add-on policies or has security or privacy issues, please report these issues to Mozilla using this form. When you are done installing both the extensions, restart Firefox for the changes to take effect. I think Youtube generates this HTML dynamically (at least currently) so in testing if I copy in Firefox this works in Firefox, but not Chrome, for. After some Googling, I found out that HTML5 doesnt support YouTube video URLs as a source.

Firefox add on youtube html5 install#

Here, we add inline onclick handlers to point to different JavaScript functions to call when the menu item gets activated. Install the IE tab extension for Firefox and the Google Chrome Frame for Internet Explorer. Im trying to put a YouTube video source into the HTML5