Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/public/wp-includes/functions-formatting.php on line 76
I just tried out this click-to-call feature on Google today. It’s really neat, you click the “call” link next to a phone number, type in your phone number and the next thing you know, your phone rings and Google connects you to the number. Try it out for yourself by calling a local business from Google Maps.
So I was thinking, if someone could build this feature into a bookmarklet it would solve the following problems:
- No more reading a number off of a screen and manually typing it into your tiny keypad.
- No more unlocking your phone to make a call.
- Impress your friends!
- If your “2″ and “7″ keys are broken, you can still dial out. (This problem affects me personally )
The way I envision the bookmarklet working is that you see a phone number on a webpage, highlight the number with your mouse, click the bookmarklet and you’re instantly connected!
I took a stab at making such a bookmarklet just now. However I’m not sure how to fill out the “ticket” and “hmac” parameters. If anyone is an excellent Google hacker you should do it. Here’s that code:
Here is the actual bookmarklet although it doesn’t work as is, and you’d need to put your own phone number into the code:
Call Number Bookmarklet
Were this an actual useful bookmarklet you’d drag it onto your toolbar OR right click and add bookmark to get it.
By the way, I found this bookmarklet builder website to be useful in this process.
Also keep in mind that it’s probably against Google’s terms of service (and various international treaties ) to create/use a bookmarklet like this. But it would be cool nonetheless.