So what you can do is add this piece of script below to your bookmarks:
Code: Select all
javascript:function fixYouTubeEmbedding(){for(var d=document.getElementsByTagName("textarea"),f=null,e=0;e<d.length;e++)"message"==d[e].name&&(f=d[e]);if(null==f)alert("Textarea not found. Are you on the right page?");else{for(var d=f.value,i=d.split("\n"),g=0;g<i.length;g++)for(var j=i[g].split(" "),e=0;e<j.length;e++){var a=j[e];if(0<=a.indexOf("youtube.com/watch?")){var c=a.indexOf("v="),b=a.indexOf("&",c);-1==b&&(b=a.indexOf(" ",c));-1==b&&(b=a.length);var c=a.substring(c+2,b),b=a.indexOf("youtube.com/watch"),
h=a.indexOf(" ",b);-1==h&&(h=a.length);b=a.substring(b,h);c=a.replace(b,"youtube.com/v/"+c);c="[flash=480,360]"+c+"[/flash]";d=d.replace(a,c)}}f.value=d}}fixYouTubeEmbedding();
Internet Explorer
Click the little star at the top right of the screen. In the popup, click the downward arrow next to "add to favorites" and select "add to favorites bar". A bookmark to the current page will be added to the favorites bar. Right click that bookmark and select "properties". Now replace the text in the "shortcut" input field with the code posted above. You can also right-click it and select "rename" to give it a proper name.
Firefox
Right click the bookmark toolbar and click "new bookmark". Give it a name and in the "location" input field, paste the code posted above.
Chrome
Hit the little star in the location bar and then click the "edit" button in the popup that appears. Give the bookmark a different name and paste the code posted above in the URL input field.
Now whenever you want to post an embedded YouTube video, simply type your post and paste the full YouTube URL in your post in the location where you want it to be embedded. Then hit the bookmark you just added and the script will format the URL so that it's embedded. Then hit the submit button to post your message.