Skip to content

Instantly share code, notes, and snippets.

View z-aki's full-sized avatar

z-aki

View GitHub Profile
@z-aki
z-aki / tummoc_bhim.js
Last active January 16, 2025 19:08
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.…
// ==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