2006-05-03

Web: Google mobile proxy

It's a miracle. I've logged in my gmail account through web interface from PDA and discovered an interesting google service. It seems, everybody already knows about it but I've found it just now — it's a proxy server optimizing pages for mobile devices. It is easy to use — just print http://www.google.com/gwt/n?u= and after the equals sign write the required site address.

Here, just now I've painted for my PDA a javascript page automatizing this thing. It's so good to be a programmer!


<html>
<head>
<script>
function go(form) {
var url = form.url.value;
if(url.substring(0,7) != "http://")
url="http://"+url;
window.location = "http://www.google.com/gwt/n?u="+url;
}
</script>
</head>
<body style="text-align:center">
<form>
<input name="url" type="text"/>
<input type="button" value="go" onclick="go(this.form)"/>
</form>
</body>
</html>

No comments:

Post a Comment