Friday, April 10, 2009

Flash Resizer

I have often noticed that Flash content on many sites can be better if they could be resized to larger dimensions. Sites like youtube and vimeo do allow full screen videos but it does not really work on multiple monitors where you would want to work on another application. Games also would look at lot better on sites like onemorelevel and miniclip if I could simply maximize the flash and hide other annoying advertisements.
I wrote a simple bookmarklet in the past couple of days that does just that. You can select any flash content, move it and re-size it by dragging the corners. The code is available is here. All you would have to do is add this FLASH RESIZER link to your bookmarks or drag and drop it to the bookmarks toolbar.
Here is how it works. A post about how the code works would follow.

5 comments:

  1. Hmm, couldn't get it to work on Firefox 3.1 Beta 3 on Windows :-/
    ReplyDelete
  2. @swaroop
    Can you please describe the error better ? What does Firebug show as the error ?
    ReplyDelete
  3. I can't get it to work in FF 3.5.3 on Windows 7 U x86.
    Firebug shows this if that's any help :?

    missing ) after argument list
    javascript:document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).setAttribute('src',http://gist.github.com/raw/89202/c4e3995dcbace0f40385cd4dbe00b909c362d664/FlashResize.js');
    Line 1
    ReplyDelete
  4. Looks like there was a missing quote. Try this link

    javascript:document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).setAttribute('src','http://gist.github.com/raw/89202/2d52dd7c967bfe403b07b753e389d4f7208d6f73/FlashResize.js');
    ReplyDelete
  5. (i'm anonymous btw;)
    That did the trick :)
    This is a really useful tip, never seen it before either. Thanks for sharing :)
    ReplyDelete