Skip to content

Instantly share code, notes, and snippets.

@VMatrix1900
Forked from anonymous/gist:4604549
Last active August 29, 2015 14:05
Show Gist options
  • Save VMatrix1900/d541a47dc3e2241ceb25 to your computer and use it in GitHub Desktop.
Save VMatrix1900/d541a47dc3e2241ceb25 to your computer and use it in GitHub Desktop.
function xnrequest(retext,begin,end,url,pids){
for(var i=0;i<pids.length;i++){
var pid = pids[i].getAttribute("id").replace(retext,"");
var data=begin+pid+end;
new XN.NET.xmlhttp({url:url + "?" + pid,data:data,onSuccess:function(){},
onError:function(){
alert("删除错误");
}});}}
var pids = document.getElementsByClassName("user");
var url = "http://page.renren.com/exitfans"
var begin = "pid=";
var end = "&requestToken=-"+XN.get_check+"&_rtk="+XN.get_check_x;
var retext = "mypage_";
xnrequest(retext,begin,end,url,pids);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment