Agregue el siguiente código en su sitio, dentro de la etiqueta head:
<script>
function SocialShare(url) {
window.open('https://holax.net/share?url=' + url, '', 'height=600,width=800');
}
</script>
Luego coloque el botón de compartir después de cambiar la URL que desea compartir con el HTML de su página::
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
Also you can use this code to share the current page:
<button onclick="SocialShare(window.location.href)">Share</button>
Ejemplo: