Why Nostr? What is Njump?
2024-08-17 01:46:17

NotBiebs on Nostr: I figured out a hack to be able to zap with any lightning wallet you want in the ...

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))})();

Author Public Key
npub1vp8fdcyejd4pqjyrjk9sgz68vuhq7pyvnzk8j0ehlljvwgp8n6eqsrnpsw