My first public Chrome extension – “Multiple Monitor Full Screen”

26 December, 2010 § 3 Comments

Yesterday I published “Multiple Monitor Full Screen“, my first public extension to Google Chrome.  I just wrapped up shooting a simple walkthrough video of the extension:

Try it out and let me know what you think of it. Within the first day of the extension being published, there were 7 downloads and over 100 views of the inaugural demo video.

The extension uses JavaScript to resize the Flash player of the video to be the dimensions of the browser window. It uses HTML5 LocalStorage to keep track of the previous dimensions of the player so the user can revert back cleanly.

Right now the extension only works on non-embedded videos hosted by YouTube and Vimeo. I looked in to adding support for Hulu but they appear to be doing some funny things to restrict this. In the near future I would like to add support for embedded YouTube/Vimeo videos.

A First Shot At Using Google Closure Tools

26 November, 2009 § 1 Comment

Just recently, Google made public their Google Closure Tools. The Google Closure Tools are a set of three tools that can be used to write fast loading and executing JavaScript, animated UI elements, templated DOM structures, and more. The three tools are: Closure Library, Closure Templates, and Closure Compiler.

I recently wrote a Pearson Correlation calculator in Python and decided to port it to JavaScript for use on a webpage. I thought this would be a good opportunity to try out some of the Closure Tools.

I used the Closure Library and the Closure Compiler for this little exercise.

After the development was completed, I used the Google Closure Compiler to reduce the size of the JavaScript. The pre-compiled JavaScript size was 634kb. The compiled JavaScript size is a mere 33.96kb.

I am very impressed with the tools. First, the documentation is superb, and I am amazed at the number of demos that are available for most of the UI components. Second, there is finally a way to evaluate JavaScript in a ‘compile-time’ fashion.

These two alone make these tools worth checking out. I hope to gain more experience with the Library soon, and should have more to post about it.

Where Am I?

You are currently browsing entries tagged with javascript at JAWS.


Get every new post delivered to your Inbox.

Join 1,015 other followers