var titre=document.title; var txt=''; if(window.getSelection){ txt=window.getSelection(); }else if(document.getSelection){ txt=document.getSelection(); }else if(document.selection){ txt=document.selection.createRange().text; } var logo=''; var ogImage=document.querySelector('meta[property=\'og:image\']'); if(ogImage){ logo=ogImage.getAttribute('content'); } var url=document.location+''; void(btw=window.open('#URL_SITE_SPIP/spip.php?page=share&titre='+ encodeURIComponent(titre)+ '&url_site='+ encodeURIComponent(url.replace('%2520','+'))+ '&logo='+ encodeURIComponent(logo.replace('%2520','+'))+ '&extrait='+ encodeURIComponent(txt) )) #FILTRE{filtre_bookmarklet}