Anand CV Mallaya

A bookmarklet for Truecaller

In Uncategorized on January 21, 2016 at 11:24 pm
  • Right click on your bookmark bar and select ‘Add Page’
  • In Name box type + Truecaller
  • In URL box copy and paste the following

 javascript: (function () {function getSelectionText() {var selectedText = "";if (window.getSelection) { selectedText = window.getSelection().toString(); } return selectedText};function OpenInNewTab(url) { var win =, '_blank'); win.focus();};var doc = document;var text = getSelectionText();if(text){var href = '' + encodeURIComponent(text);OpenInNewTab(href);}})()

  • Select phone number text in any page
  • Click on the bookmark just created and see the magic 🙂
  • The above code works for indian numbers. If you want to use any other country number, you may need to change the to something similar. Its left as homework.

Let me know if you liked it 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: