jorges / Smart QR

Published:

Version: 0.2+11d548f updated

Summary: Detects phone numbers and locations and displays their value as a QR code on mouseover. Needs doubleclick somewhere on the page to get triggered.

Copyright: 2017, Georg Jähnig

License: MIT

Smart QR

You want to

  • call the phone number on a web page with your mobile phone?
  • add the location of a Facebook event to your smartphone map app?
  • add the phone number someone sent you in Gmail to your smartphone contacts?

Then this userscript might be for you.

Prerequisites

Userscripts are added to your browser and then run on webpages you are visiting. Depending on your browser, you first need a plugin for userscripts, for instance:

To read the QR codes displayed by Smart QR, on your smartphone you need a QR reader app, for instance:

Usage

When visiting any web page:

Phone numbers and locations

  1. Double click somewhere on the page to get the script started. (This is important, otherwise nothing will happen.)
  2. Now you can either
    • Hover the mouse over:
      • a link to a phone number, like<a href="tel:+123456789">call us</a>
      • a link to Google Maps with coordinates
      • on Facebook event page: map of the location
      • on Wikipedia: link of the location (upper right corner)
    • select a text containing
      • geo coordinates, like 52.51627,13.37705
      • a sequence of numbers, like 123456789
  3. Smart QR will display a QR code in the lower left corner containing the phone number or the location. When scanning them with your phone, you will be directly offered to make a call or to open your favourite map app with this location.
  4. To hide the code, hover the mouse over the displayed code. It will disappear immediately.

URL of current page

  1. Triple click somewhere on the page.
  2. To hide the code, hover the mouse over the displayed code. It will disappear immediately.

Rating: 0