javascript - How to block the share button in the upper right corner of QQ?
仅有的幸福
仅有的幸福 2017-07-05 10:46:07
0
4
1077

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!

仅有的幸福
仅有的幸福

reply all(4)
曾经蜡笔没有小新

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

習慣沉默

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

迷茫

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>

phpcn_u1582

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

                        left: {
                            title: "返回"
                         },
                        right: {
                            hidden: true
                        }
                        });
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!