Copyright statement: Original work, reprinting is allowed. When reprinting, please be sure to indicate the original publication of the article, author information and this statement in the form of a hyperlink. Otherwise legal liability will be pursued. http://blog.csdn.net/mayongzhan - Mayongzhan, myz, mayongzhan
I suddenly thought of Firefox’s firebug. . .
So evil.
Immediately open firebug for hi.csdn.net
Then you should do the following:
var i = 0;
do{
$("input[value='Add as friend'] ")[i].click();
i ;
}while ($("input[value='Add as friend']")[i]);
Then you can see a Requests are sent out, and then 200 OK is issued one by one. The number of friend requests on the interface decreases one by one.
Finally, there is a number in console.log in csdn, which is the total number. . . It seems that some programmers forgot to remove the test code.
OK, done, turn off firebug.
What if you want to reject them in batches?
If you are interested, you can try it.
By the way, what makes me most gratified is that csdn actually supports jquery! csdn is still good.