PDA

View Full Version : PocketIE USER_AGENT switcher (via Mortscript)


naruzopsycho
7th September 2007, 09:00 AM
*What: A mortscript to automate switching your USER_AGENT setting for PIE
*Why : Some (all?) Yahoo! Japan pages redirect PIE to the main (image/advertisement/text cluttered) page from their mobile site. This is annoying, and while I -should- just shell out for PIEPlus, I thought I'd try to do it meself :rolleyes:
*How : Install Mortscript (http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view), unzip UserAgent.mscr somewhere and execute it. A menu will appear (see screencap.) Select desired phone profile and click 'OK'. restart PIE (if it's already running) and voila! The (primary) regkeys this script modifies are HKLM\Security\Internet Explorer\User Agent\Custom and CustomBase.
*Platform: Works on my Softbank X01HT (Hermes) running a more-or-less stock HTC WM6 ROM. Registry keys should be the same for any WM6 device (and possibly WM5) but ymmv.
*Todo : It would probably be enough to simply stick the whole user agent string into the 'CustomBase' key, so the script is probably doing too much work. But hey, it works :)

I wrote this specifically for viewing Japanese pages, so the only existing profiles in the script are for Japanese phones. It's a very simple script, though, so please modify at your leisure (and your pleasure!)

If you have a funky phone (or phunky, as the case may be), go ahead and post the values for your phone! You can view your current user agent settings at this site: http://www.webprodevelopment.com/Web_Toys/What_Is_My_User_Agent/ (Note: http://whatsmyuseragent.com/ did not work from my phone...)

If there is another (free) solution that you would recommend, please let me know! Some notes/history relevant to this little project, along with some links to a bunch of known phone profiles can be found in this post (http://forum.xda-developers.com/showthread.php?t=323909)

Also, if you haven't already, please shoot a quick donation to mort (http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view). Mortscript rocks!

Enjoy~

-nate