Street network batch add contact JS script

From , 3 Years ago, written in JavaScript, viewed 53 times.
URL https://pastebin.vip/view/5c151c2a
  1. //先找人http://www.dajie.com/profile/search/index,然后在搜索结果页面按F12,进入Console或者控制台面板,把以下代码复制进去运行
  2. //_CSRFToken需要根据自己的修改,下面我替换成?了。查找方法很简单,打开F12进入network或者网络面板,随便添加一个人作为好友,可以发现请求url里面就包含这个_CSRFToken
  3.  
  4.     function batchAdd(){
  5.         //遍历用户id
  6.         $(".icardm-mail a").each(function(k, v){
  7.             //console.log($(v).attr('userid'));
  8.             //添加好友
  9.             $.post(
  10.                 'http://www.dajie.com/card/exchange/api/invite2?count=0&callback=jQuery1510484689679229632_1440953345817&_CSRFToken=???????????????????????????&ajax=1',
  11.                 {
  12.                     "cardUid":$(v).attr('userid'),
  13.                     "introduce":false,
  14.                     "mayknow":"",
  15.                     "groupMsg":8,
  16.                     "ps":"",
  17.                     "":"",
  18.                     "from":undefined,
  19.                     "noticeId":0,
  20.                 },function(data){
  21.                     console.log(data);
  22.                 }
  23.             );
  24.        
  25.             //点击下一页
  26.             $(".next").click();            
  27.         });
  28.     }
  29.    
  30.     setInterval("batchAdd()",1000);

Reply to "Street network batch add contact JS script"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website