Coder Social home page Coder Social logo

klemens / ff-youtube-all-html5 Goto Github PK

View Code? Open in Web Editor NEW
35.0 6.0 9.0 199 KB

Play all videos on YouTube with your preferred settings (size, quality, playback rate, …) without cookies using only HTML5

Home Page: https://addons.mozilla.org/de/firefox/addon/youtube-all-html5/

CSS 0.32% JavaScript 99.68%

ff-youtube-all-html5's Introduction

YouTube ALL HTML5

Play all videos on YouTube with your preferred settings (size, quality, playback rate, …) without cookies using only HTML5.

  • Automatically change the size of the player and the resolution of the video
  • Force HTML5 in cases when YouTube still defaults to Flash
  • Start videos paused (always, when not in a playlist, when in a background tab)
  • Open video links without the attached playlist (context menu entry)
  • Features for users that don't keep cookies:
    • Automatically set volume and playback rate
    • Disable autoplay of recommended videos
    • Hide video annotations

All features of the add-on can be individually configured in the settings (about:addons). These are also directly accessible through a button on every YouTube video page.

Build

The add-on can be built using jpm:

jpm xpi

This creates an unsigned add-on. To build a signed version, you have to change the add-on id and submit the add-on to Mozilla Add-ons for signing.

Develop

You can run the add-on directly in Firefox with a fresh profile and get log messages on your terminal:

jpm -b firefox-dev run

Currently firefox-dev has to be an aurora (dev) or nightly build of Firefox, because of a bug in jpm.

Use

You need a current version of Firefox with support for MSE and VP9 or H264. You may have to install ffmpeg on Linux. Without MSE, only 360p and 720p videos are available.

YouTube provides a test site that checks support for the various pieces necessary. If some element is missing, check the following Firefox settings:

  • media.mediasource.enabled
  • media.mediasource.webm.enabled
  • media.mediasource.mp4.enabled

Attribution

Thanks to Raylan Givens for the hint at emulating IE, Alexander Schlarb for his patch which makes the add-on work with Firefox's click_to_play, Alex Szczuczko for implementing the "pause on start" function and timendum for his work on embedded videos.

Also thanks to Jeppe Rune Mortensen and Yonezpt for their work on YouTubeCenter.

Licence

This add-on by Klemens Schölhorn is licenced under GPLv3.
The modified HTML5 Logo by W3C is licenced under CC-BY 3.0.

ff-youtube-all-html5's People

Contributors

aszc avatar justoff avatar klemens avatar mpopp75 avatar timendum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ff-youtube-all-html5's Issues

Disable flash on youtube not working

So I check to disable flash on youtube, which enables all youtube videos to use html5. This only works on a per session basis, where I think the setting should stay selected similar to every other option.

New size option: "Fit to content"

As suggested in a review, a fit to content size option would be nice to have.

However, it is unclear, which video size to load then. (the smaller or larger version?)

Autoplay preferences

Not sure, when it started to happen, but most recently. Every video I play with this extension now has autoplay and there is no way to turn it off

No audio

Youtube has no audio when this plugin in enabled. This just started happening today.

https with rc4 disabled

It seems that youtube's video servers only support the RSA_RC4_128_SHA cipher suite when they are contacted via https. The website itself on the other hand supports modern ciphers without RC4.

So if you disable this cipher by setting security.ssl3.rsa_rc4_128_sha to false in about:config, then the video will not load and an error like This video is currently unavailable. is displayed.

Edit: The video servers now also support TLS_RSA_WITH_AES_128_GCM_SHA256, but firefox does not (yet? see comment by tomato42 below).

If you keep this cipher enabled or load the site via http, the video loads as expected.

Also see this topics:
https://productforums.google.com/forum/#!searchin/youtube/rc4/youtube/VuVshylMDO0/EMuBNFmgQLwJ
https://productforums.google.com/forum/#!searchin/youtube/rc4/youtube/hf7SDRTmwdg/0GBBa3eeaX0J

Youtbe only shows 360P version

First time using github so sorry if I massed something up
Fantastic add on kudos for creating it, how ever I have a small problem with it.
On every video I tried I get only 360P version of the video even though I know that those videos had been encoded to vp8
here is an example
http://i.imgur.com/7Z1j9gQ.png

Don't disable autostart in case of playlists

If playing a playlist on YouTube, I think it might be better not the disable the autostart, or make that a separate setting. Usually, when I use a playlist, my intention is to see everything there in a row. Would be really cool to have that option again.

Fullscreen icon missing on YouTube videos

With Firefox 33.0 (using Linux64) and versions 2.1.3 and 2.2.0-beta2 of your add-on, the fullscreen icon is missing on YouTube videos.

With your addon disabled, the fullscreen icon is displayed in the right bottom corner:

disabled

When enabled, this icon is gone:

enabled

Addon should work without fully disabling Flash

According to the usage instructions, Flash most be disabled. Not everyone can live with Flash disabled at the moment, because of some sites that require Flash to work properly, and there is no workarounds for them at the moment.

Please make it work well by replacing the plugin activation request message, and also by disabling Flash only on youtube.com domain.

Thumbs up/down buttons in full screen

This is not a bug per se, but given the feature exists in the flash player, it does seem to be missing functionality. Would there be any way to code in thumbs up/down buttons in html5 player when in full screen via ff-youtube-all-html5? I've given up trying to get a response from the youtube team about this so found myself here. In the flash player I used these buttons all the time to give kudos to great youtube vids but when watching a queue of vids in html5 it is just too much hassle to exit full screen (before the next vid starts!) just to hit that thumbs up button. Does the html5 player API that JS and plug-ins can use allow these buttons?

Clear history clears "disable flash on youtube" setting

When clearing the history with the option "Site Preferences" enabled, the site specific setting for disabling flash on youtube gets reset.

At least we have to listen for the clear history event to reset the checkbox in the settings. This has already been done since the beginning… (f2d8fd2) We additionally could remember its state internally and restore it after the clear history event, but I am not yet sure if this is appropriate.

Support for Youtube SPF

Please use this code to support for Youtube SPF

    var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
    var observer = new MutationObserver(function(mutations) {
        if (mutations[0].attributeName === 'class' && mutations[0].target.classList.contains("page-loaded")) {
            // your code
        }
    });

    observer.observe(document.querySelector('body'), {attributes: true} );

black screen on youtube videos

I love not having to use flash on youtube, but after the most up-to-date version of the add-on, black screens would suddenly show up during playback on youtube. Very sporadic.

Linux mint 17 64 bit
ff 36 and 37.

theater mode as new option for player sizing

The option to change the player size is not very satisfying at the moment, because annotations and the progress bar aren't sized properly. This is also not easy to fix without modifying the YT player code.
But for many people theater mode may be enought, which works well for monitors up to full hd.
So an option to force the theater mode would be nice.

Playback without JavaScript

Would it be anyhow possible to play YouTube videos without the need to enable JavaScript in NoScript? Direct media playback, for example in case of WebM files can be done without it. I guess it will be more complex than this.

support embedded youtube videos

youtube videos that are embedded on other sites mostly (always?) use the flash based player.

It would be awesome if those could also be changed the same way it works for youtube, but I don't know if that is feasible.

Apparently[1] they kind of support embedding videos using html5. I'm not sure if it just doesn't work or if noone is using it, but I have yet to see a single embedded youtube video that works with flash disabled.

[1] http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html

360p vidoes are the only ones available

Firefox Nightly 27.0a2 (2013-11-15)
Debian Sid 64bit
YouTube All HTML5 2.1.0

All videos through YouTube are only provided through their 360p version, I'm not given any options beyond that in the little settings drop down that's part of the video.

Disable autostart on channel front pages

Currently, the feature only works for videos directly accessed on their own pages. Would be great if it would also disable autostart for "introduction" videos and YouTube channel front pages.

Progress indicator issue

Great add-on, I've been using it for months!

Recently, I have noticed that the progress bar and its white circle are off by different ratios.

Playing a 720p clip with the following settings:
"Large player" + "resize to 720p" = the circle is at ~70% when the red bar is at 100%.
"Small player" + "resize to 720p" = the circle is at ~50% when the red bar is at 100%.
"Large player" + "resize to 480p" = the circle is at 100% when the red bar is at 100%.
"Small player" + "resize to 480p" = the circle is at ~75% when the red bar is at 100%.

The add-on is in emulate IE mode and this does not seem to be an issue when pressing the HTML5 button (entering API mode?)

Option to disable autoplay

Some users requested an option to disable autoplay on videos.
This should not be difficult to implement, because we already pause the video in most loading methods. (and embed has a parameter for this)

video auto-switch-to-720p almost always fails the first time

Hi.
Each time I try to load a video, it almost starts at 360p then gets paused while it tries to switch to 720p (I even see the red HD icon) but in like 2 seconds the white noise screen appears instead with the error in the middle: "An error occurred, please try again later. Learn more."

The workaround which always works(apparently) is to just click the refresh near the address bar at the end and then the video just loads fine on 720p.
When I click another video, the same error happens. But when I come back to the same video(s) that I've tried before it works. Almost as if it's a matter of seen it before: works; didn't see it before: must press reload. Also, if I've tried to load a video and it errored, then I go to other videos(without hitting reload on this failed video to make it work) and come back to this failed video: it now works; so it's not the reload that does it, it seems, it's the fact that the video was tried at least once. First time videos fail, second+ times always work. Looks like they also fail when 360p is set in configuration, but this one is more instant because it doesn't have to do the 720p switch. Pressing Back and the Forward also works like a page Reload, having the same effect.

My current options are:
Automatic Updates: Default
Youtube video size: Do not change
Youtube video quality: 720p
Disable Youtube SPF: checked
Disable Flash on youtube: checked
Fix volume bug: checked
Start videos paused: unchecked
Youtube loading method: Emulate IE(default)
(but I've tried other combinations with options...)

Some of the running addons: noscript, requestpolicy, https-everywhere ...

On linux manjaro with Firefox Aurora 32.0a2 (2014-06-15)
also tried Firefox 29.0.1 before, with exact same effect.(if I remember correctly, but I didn't try to find the workaround then; I'll have to retry this in a vm)

If you need more details, let me know, I'd be happy to.
Thanks in advance.

EDIT: I don't have any firefox plugins (which means no flash plugin also)

Auto hide annotations

Great add-on, thanks! What do you think about to add an option to auto hide annotations on youtube videos?

Chrome port

Would you be interested to port this to Google Chrome?
It is actually worse on it as embeds use flash even though html5 trial is enabled. Unlike on Firefox

I'm an extension developer myself so I would be willing to help if needed

Issue with Ads

I have ran into an issue with this ad on that affects a very large amount of of videos on the site. Any video that plays an ad in front of it fails to play correctly with YouTube All HTML5 active. It will say the flash video isn't working. I am assuming it is because of the ad itself. Now since you can't opt out of a lot of the ads this means I have to switch flash on to watch any video that has these ad spots in front of them. And because I then have flash active I can't get the HTML5 button to work to switch the video over to HTML5 once the ad is done playing. Examples are any Vevo video. I haven't gotten a single one to play without activating flash. I figured you'd like to know this since Ad's have become so prevalent on the YouTube site. I hope you can find a work around for this issue because it's so wonderful to be able to watch my really long videos again without so many annoying pauses and breaks.

Example video URL's I have noticed this issue with.
http://www.youtube.com/watch?v=5NV6Rdv1a3I
http://www.youtube.com/watch?v=b-TuYSP84FE
http://www.youtube.com/watch?v=KQ6zr6kCPj8

Force HTML5-test not set as default

Hey, love the extension!

But I've noticed on both the PC's I've installed it on that "Emulate IE" was set as the default loading method, not "Force HTML5-test", even though that's the one that says it's supposed to be default (and should be default to not give IE better statistics than it should. With fewer people using Firefox now than before, it's even more important to not emulate other browsers, but give the right info for the stats)

Thanks!

Conkeror support

Hi,

Any chance you could give me a hand with getting this to work with conkeror?

I've managed to install it (it shows up in the addons list) but I don't know how to write the "glue" code that will actually execute it on a page.

Thanks

Videos not autoplaying

Certain videos just don't autoplay, no idea why but when I disable the addon they play like usual so I know it's the addon and not anything else.
To get past this problem I have to pause the video and unpause it again or press the HTML 5 button, then it works fine but this is annoying for playlists. Its only just started happening, started about a week ago maybe.

Time in Video-URL is being ignored

When opening a link to a youtube-video with a specified time in the URL, the video still begins at 0:00.
Sample-URL:
https://www.youtube.com/watch?v=PDEce3mtkRg#t=1800.

This does not happen when youtube's own html5 setting is set in cookie, but, well, that would make the addon's main draw pointless.

A workaround I found is to change the number in the url to something else like 1801 and pressing enter. Also some inconsistent behaviour where it sometimes worked from the get go (maybe related to vid still being in cache) or the workaround works without changing the url yada yada.

Youtube not defaulting to HTML5 videos

I'm on Firefox 25, and I have just installed this great add on. Thanks for making it!

I have a problem though: Even when I choose in the options to have the videos automatically default to play HTML5, it starts off in HTML5 for a second, then immediately switches back to Flash. When I hit the HTML5 button on top, however, it then switches to HTML5 for that video.

Is there any way to have it automatically play in HTML5 so I don't have to hit the button every time? Thanks!

Add support for embedded youtube videos in G+

First of all, thanks for the nice plugin, it is really really good.

A nice feature would be, to enable html5 for youtube also in Google+, currently it always wants to enable flash player. But, if html5 player is enabled as default player, in G+ the html5 player is also used.
https://www.youtube.com/html5

Enable html5 default player at the site above, then open this link and play the embedded video.
https://plus.google.com/107447833844645630113/posts/Pe1E95B3py8

Best Regards
Siedlerchr

Extend autoplay options to allow foreground video

The current implementation #17 allows to pause or play all videos at start.
I would like to see an option to only pause videos that are loaded as background tabs and auto play foreground videos.

And thank you for creating this extension! :)

Rework the "Start videos paused" option

There are several issues in the current implementation:

  • #22 Distinguish foreground from background videos
  • ► is beeing displayed for paused videos in title (90241cc)
  • Wrong quality is preloaded
  • #46 Are playlists working? Option to disable pausing for playlists?
  • Intercept video.play() method Use DOM-events instead of the youtube api to be notified when the video starts (8b5c790)
  • Pausing vs. stopping? -> Pausing! (see #33 (comment))

Not working anymore on new youtube, sound play but no video

Just to report an issue here, your awesome plugin doesn't work correctly anymore, when the plugin is activated I only have sound and a black screen on any Youtube videos, when I disable it, it works fine. I need your awesome work to make sure stupid youtube doesn't play videos in 240-360p and doesn't start videos automatically (I hate that so much, I let them preload a little bit)

Disable youtube autoplay for consecutive videos

Some time ago youtube changed the default behavior to automatically play the next video from the recommended sidebar when the one you just watched is over, since there is already the option to disable autoplay completely with this extension, could you please consider to make an option to only disable the autoplay of consecutive videos?

thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.