Greasy Fork is available in English.

YouTube Links

Download YouTube videos. Video formats are listed at the top of the watch page. Video links are tagged so that they can be downloaded easily.

< Commentaires sur YouTube Links

Avis: Bon - le script fonctionne correctement

§
Posté le: 24/06/2015

good job, but plz....

defaul file name is "videoplayback", can be youtube video name?

nhyoneAuteur
§
Posté le: 30/06/2015

If you use Firefox, you are out of luck.

But if you are using Chrome, based on your post, the correct filename will be used if you right-click and save-as.

I don't know why a direct click uses the default filename.

§
Posté le: 05/09/2015
Édité le: 05/09/2015

For me , it only happens when i download m4a audio files.
If this can help you fix this out

nhyoneAuteur
§
Posté le: 25/09/2015

Use Chrome, right-click and save-as. :-)

Firefox does not honor the filename if the file is from another website. For YouTube, the videos are served from "some other" website.

§
Posté le: 16/04/2016
Édité le: 16/04/2016

3rd part:

After some more research i found this: https://developer.mozilla.org/en/docs/Web/HTML/Element/a Since i have 'official' proof now i guess nhyone was right all along :(


2nd part:

hmm - after taking a look in the sourcecode of a modified youtube page is see you'r already using the download="filename" tag. Maybe the order throws firefox off...


1st part:

i think it sould be possible to do sth. like this: < a href="https://r6---sn-0oputhxqp5-q0nl.googlevideo.com/videoplayback?dur=..&signature=...." download="yt-video-name.m4a" > ..... < / a > (from http://www.w3schools.com/tags/attadownload.asp )

Unfortunately i don't understand enough JavaScript to modify your script myself.

§
Posté le: 06/05/2016

I'm lazy and do not want to mark the title below a YouTube video manually by mouse to copy it into the clipboard (ctrl+c). At least it should be possible to mark the whole title with a double click. Unfortunately YT places a leading and a trailing newline around the title. So when i paste it into do save-to-dialog i get an empty string :(

That's why i added this small modification to your script: s.push(dom.emitHtml("div", { "class": CSS_PREFIX + "Limers_mod" }, cnvSafeFname(map.title))); At the end of the Links.prototype.emitLinks = function(map) - it's probably not the right location and the CSS class is definitely wrong ;) but it works for me...

I think other Firefox users might benefit from this as well.

§
Posté le: 06/05/2016
Édité le: 06/05/2016

not rely related to the script but very helpful for FiFo users: re-enabling alt+click functionality for "save link as" No need to navigate through the right-mouse-click-menu

Poster une réponse

Connectez-vous pour poster une réponse.