Набидлокодив свій велосипед)
<p>
<a href="" id="fbs">
Share to facebook
</a>
<a href="" id="tws">
Share to twitter
</a>
<a href="" id="lds">
Share to linkedin
</a>
</p>
document.getElementById('fbs').addEventListener('click', (e) => {
e.preventDefault();
const url = 'https://facebook.com/sharer.php?display=popup&u=' + window.location.href;
const options = 'toolbar=0,status=0,resizable=1,width=626,height=436';
window.open(url, 'sharer', options);
});
document.getElementById('tws').addEventListener('click', (e) => {
e.preventDefault();
const url = 'https://twitter.com/intent/tweet?text=' + document.title + ' ' + window.location.href;
const options = 'toolbar=0,status=0,resizable=1,width=626,height=436';
window.open(url, 'twitter', options);
});
document.getElementById('lds').addEventListener('click', (e) => {
e.preventDefault();
const url = 'https://linkedin.com/shareArticle?mini=true&url=' + window.location.href + '&title=' + document.title;
const options = 'toolbar=0,status=0,resizable=1,width=626,height=436';
window.open(url, 'linkedin', options);
});