This Chrome extension has now been open-sourced, you can checkout the whole source code at http://code.google.com/p/chrome-useragentselector/ 🙂
Feel free to add new useful features 🙂
If you need to report a bug, you can now use http://code.google.com/p/chrome-useragentselector/issues/list