Anand CV Mallaya

Archive for January, 2016|Monthly archive page

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 🙂