Large

YouTube Enhancer

By GIJoe Last update Dec 13, 2011 — Installed 1,194,537 times.

automaticly fmt ?

in
Subscribe to automaticly fmt ? 5 posts, 2 voices



GottZ Scriptwright

if(location.href.indexOf("/watch?v=") != -1 && location.href.indexOf("&fmt=") == -1)
	location.replace(location.href + "&fmt=18");

srsly i think thats usefull. whats about a settings menu to choose to use something like this?

 
GIJoe Script's Author

Click on "View in High Quality (mp4)"...
And all links from "YouTube Enhancer" included pages to a YouTube Watch Page will have a "&fmt=18".

 
GottZ Scriptwright

:D
srsly i know about that but it isnt working if i get a youtube link in icq or another messenger. then it opens up the youtube vid with the standart quality.

srsly also if i click in a done youtube video to a showing up video in the flash applet, then it changes to the standart quality.

also if i go direct to youtube.com and click there to a vid, then it is just the standart quality

i dont took a deep look to this userscript here cause its huge and srsly full with done work i dont want to mess with but this tiny little issue made me writing this 2 lines of script.

i think it is possible to use GM_setValue to save the momentan setting and GM_getValue to restore it if something from the outside changed it.

btw. your new button "View in Very Low Quality (flv)" means in german:
case "de": return "Ansicht in niedrigster Qualität (flv)";

Updater Is Now Disabled means: case "de": return "Updater ist jetzt deaktiviert";
Updater Is Now Enabled means: case "de": return "Updater ist jetzt aktiviert";
New Update Found means: case "de": return "neues Update gefunden";
Visit Install Page means: case "de": return "Besuche die Installationsseite";
(omg.. userscripts.org rips & nbsp;)
Later means: case "de": return "Später";
Problem during checking update means: case "de": return "Fehler bei der Überprüfung auf Updates";

:3

 
GIJoe Script's Author
Thanks for the translation.
it isnt working if i get a youtube link in icq or another messenger.
That's right. because i can only change the link in the browser.
srsly also if i click in a done youtube video to a showing up video in the flash applet, then it changes to the standart quality.
Clicked on that, returned to same quality... no problem.
if i go direct to youtube.com and click there to a vid, then it is just the standart quality
When i do that, I got the same quality as the last video i watched.
i think it is possible to use GM_setValue to save the momentan setting and GM_getValue to restore it if something from the outside changed it.
The script do that to for links... But for outside YouTube pages, you need to add "*" in the GM -> Manage User Scripts... -> "YouTube Enhancer" Included Pages.

ok... try the last script and set:
const FORCE_DEFAULT_FMT =18;
 
GottZ Scriptwright

That's right. because i can only change the link in the browser.

lul. you can :D
thats what i was talking about

location.replace is usefull for that. it is replacing also the place in the browser history. (location.href is not doing that)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel