This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Tummoc(TM) QR to UPI QR Code BMTC buses Bengaluru | |
// @version 1.0 | |
// @match *://play.google.com/* | |
// @description Convert a Tummoc(TM) QR present in every BMTC BUS to an UPI QR code. iOS Safari supports long press on a QR to select the UPI app of choice to open it. Since directly opening upi:// link will open WhatsApp, this "QR code long press" intermediate step is needed. The url is in the format https://play.google.com/store/apps/details?id=org.transhelp.bykerr&tummoc_qr=BMTC+BUS+KA51AJ7614Bangalore. The script extracts the bus number from the url KA51AJ7614, and creates a upi://pay?pa=KA51AJ7614@cnrb&pn=&cu=INR QR code. | |
// ==/UserScript== | |
/* | |
Convert a Tummoc(TM) QR present in every BMTC BUS to an UPI QR code. | |
iOS Safari supports long press on a QR to select the UPI app of |