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/15a8cf2a134c4777e189 to your computer and use it in GitHub Desktop.
Save VMatrix1900/15a8cf2a134c4777e189 to your computer and use it in GitHub Desktop.
var sids = document.getElementById("my-status-list").getElementsByTagName("li");
var url = "http://status.renren.com/doing/deleteDoing.do"
for(var i=1;i<sids.length;i++){
var sid = sids[i].getAttribute("status-id");
var formData = new FormData();
formData.append('id',""+sid);
formData.append('requestToken', ""+nx.user.requestToken);
formData.append('_rtk', ""+nx.user._rtk);
var xhr = new XMLHttpRequest();
xhr.open("POST",url, true);
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.send(formData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment