Replying to Avatar NotBiebs and 69 others

I figured out a hack to be able to zap with any lightning wallet you want in the primal web app. Open up the dev console and paste this code:

window.webln.sendPayment = (invoice) => Promise.resolve(console.log(invoice))

Then whenever you click the zap button it prints the lightning invoice for the zap in the dev console instead of opening Alby. Copy and paste the invoice into whatever lightning wallet you want.

You can even save it as a JavaScript bookmarklet. Use this as the URL:

javascript:(function(){window.webln.sendPayment=(invoice)=>Promise.resolve(console.log(invoice))})();

Avatar
shinohai 1y ago

Worx if you save it as tampermonkey script too.

Reply to this note

Please Login to reply.

Discussion

Avatar
NotBiebs and 69 others 1y ago

Try the updated version

nostr:note19dtgkapuqa37mkrnc0r9alsertjzs2jg8nxm7gvv9l4q6h0fv6rq0sr5f2

Avatar
shinohai 1y ago

Dope.

Thread collapsed
Thread collapsed