const isValidUrl=(url)=>{try{new URL(url);return!0}catch{return!1}};const observer=new MutationObserver(()=>{document.querySelectorAll('[data-button-link]').forEach((el)=>{el.addEventListener('click',(e)=>{e.stopPropagation();e.preventDefault();const link=el.dataset.buttonLink;if(isValidUrl(link)){window.open(link,'_blank')}})})});observer.observe(document.body,{childList:!0,subtree:!0,});