About Me

Just some thoughts on what inspires and interests me.

Blogroll

Search


Home

Youtube Javascript Popout Bookmarklet

By John | June 27, 2008

I’ve been looking around the web for something like this for a while, and i found a userscript using greasemonkey, but it turned out to suck.
I looked into it and found out that the same thing could be achieved using three lines of javascript as a bookmarklet.

The Code:

javascript:var a = document.getElementById("embed_code").value;
newWindow= window.open("", "myWindow", "status = 1, height = 354, width = 435, resizable = 0" );
newWindow.document.write(a);

Just create new bookmark in your browsers bookmark toolbar and copy and paste the code into the location field.
Then the next time you are at a youtube video page, hit the bookmark, and the video will be displayed by itself in a small sub window. Enjoy.

Topics: Uncategorized |

2 Responses to “Youtube Javascript Popout Bookmarklet”

  1. Bookmarks about Bookmarklet Says:
    August 2nd, 2008 at 3:30 pm

    […] - bookmarked by 1 members originally found by zanessafan45 on July 17, 2008 Youtube Javascript Popout Bookmarklet http://blogamatician.com/?p=8 - bookmarked by 1 members originally found by mightguy1 on July 16, […]

  2. mobilephone2003 Says:
    August 21st, 2008 at 5:59 am

    A big thankyou from me for this.

    I have featured this code on my latest YouTube video:

    http://www.youtube.com/watch?v=Ugu8JOHH2nM

    again thanks :-)

Comments