Home > Web Front-end > JS Tutorial > csdn accept friend invitations in batches_javascript skills

csdn accept friend invitations in batches_javascript skills

WBOY
Release: 2016-05-16 18:55:48
Original
1042 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template