ybFindPhNums = ['13145016287', '13145016287']; ybReplacePhNums = ['18007615751', '18006179546']; document.addEventListener("YextPhoneChangeEvent", yextPhoneChangeEventHandler, false); function yextPhoneChangeEventHandler(e) { e.preventDefault(); ybFun_ReplaceText(); } if (typeof dmAPI != 'undefined') { dmAPI.runOnReady('dpni', function() { setTimeout(ybFun_ReplaceText, 500); }); dmAPI.subscribeEvent(dmAPI.EVENTS.SHOW_POPUP, function(data) { setTimeout(ybFun_ReplaceText, 500); console.log('dmAPI.EVENTS.SHOW_POPUP' + data); }); } else { window.onload = function() { setTimeout(ybFun_ReplaceText, 500); } } Scroll to Top