search

Home  >  Q&A  >  body text

javascript - How to block the share button in the upper right corner of QQ?

In addition to adding the suffix ?_wv=2 after the URL, can I write a code in my website source code to block it? Please answer!

仅有的幸福仅有的幸福2728 days ago1131

reply all(4)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-07-05 10:48:07

    This cannot be controlled, it can only be set by default

    reply
    0
  • 習慣沉默

    習慣沉默2017-07-05 10:48:07

    In WeChat, the browser can ban it through API. I checked QQ's developer API, and there should be no such API.

    reply
    0
  • 迷茫

    迷茫2017-07-05 10:48:07

    http://192.168.0.240/?_wv=3
    or
    This is suitable for opening in WeChat
    <script>
    function onBridgeReady(){
    WeixinJSBridge.call('hideOptionMenu');
    }
    if (typeof WeixinJSBridge == "undefined"){

    if( document.addEventListener ){
        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
    }else if (document.attachEvent){
        document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
    }

    }else{

    onBridgeReady();

    }
    </script>

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-05 10:48:07

    Use QQ’s JS SDK to disable it,
    mqq.ui.setTitleButtons({

                            left: {
                                title: "返回"
                             },
                            right: {
                                hidden: true
                            }
                            });

    reply
    0
  • Cancelreply