如何在google+上删除图片共享时的url显示

how to remove url display while image share on google+?

本文关键字:共享 url 显示 google+ 删除      更新时间:2023-09-26

<html>
  <head>
    <title>Share Demo: Deferred execution with language code</title>
    <link rel="canonical" href="http://www.example.com" />
        <script src="https://apis.google.com/js/platform.js" async defer></script>
  </head>
  <body>
   
   
    <a href="https://plus.google.com/share?url={http://mkainfotech.com/modelstown/public//uploads/model/wall/1439355689990.jpg}" onClick="javascript:window.open(this.href,
  '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600',url=no);return false;">
  
  <img
  src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a>
  
  </body>
</html>

<html>
  <head>
<!-- begin snippet: js hide: false -->

    <title>Demo: Explicit render of a embedded post</title>
    <link rel="canonical" href="http://www.example.com" />
    <script src="https://apis.google.com/js/platform.js" async defer>
    </script>
    <script>
      function renderWidget() {
        gapi.post.render("widget-div", {'href' : 'https://plus.google.com/109813896768294978296/posts/hdbPtrsqMXQ'} );
      }
    </script>
  </head>
  <body>
    <a href="#" onClick="renderWidget();">Render the embedded post</a>
    <div id="widget-div"></div>
  </body>
</html>

如何删除图片共享时显示的url链接。。共享图片的新代码在图片共享时仍显示链接?如何删除图片共享时显示的url链接。。共享图片的新代码在图片共享时仍显示链接?共享图片的新代码在图片共享时仍显示链接?

您可以使用history.replaceState()history.pushState()更改当前URL,而无需更改当前页面。请查看此页以获取摘要。请记住,所有浏览器都只支持其中一些API。在犬科动物上签出此页面,查看支持哪些犬科动物。