自动添加QQ好友 结合a标签或者php js

代码:


    public function actionIndex()
    {
        ob_start();
//        ob_flush();
        echo "";

        $param = [
            "tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=6371669&website=www.oicqzone.com",
            "tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=375910038&website=www.oicqzone.com",
            "tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=2632200838&website=www.oicqzone.com",
            "tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=1308383878&website=www.oicqzone.com",

        ];

        foreach($param as $index=>$item){
            ob_flush();
            echo '' . $item . '';
            echo '
'; echo '' . '链接点击' . ''; // echo ""; // echo ""; echo '
'; flush(); } echo ""; // echo ''; // echo " // //"; return '12'; exit(); } 结合js 自动点击 var hrefArr = document.getElementsByTagName('a'); //获取这个页面的所有A标签 for( var i=0; i

参考
转载:QQ自动强制加好友代码html
https://blog.csdn.net/qq_34069180/article/details/61204265

这个有点麻烦 很多环境安装 没做:
一个一个添加好友太麻烦,教你全自动添加好友
https://blog.csdn.net/qq_39046854/article/details/81293511?comment_content=%E7%8E%B0%E5%9C%A8%E4%BB%A3%E7%A0%81%E8%BF%98%E6%9C%89%E6%95%88%E5%90%97+%E6%9C%89%E4%BA%BA%E4%BD%BF%E7%94%A8%E4%BA%86%E5%90%97&comment_replyId=&article_id=81293511&comment_userId=&commentId=

你可能感兴趣的:(技术记录)