In Baidu know the team quickly approve new members of the JS script _javascript skills

Source: Internet
Author: User
I am keen to answer the technical questions of netizens, so in Baidu know column founded the "Kick 543" team.
Since the inception of the team, every day a large number of netizens to apply to join my team, so the new members of the audit team became a laborious job.

In this case, I wrote a script to automatically calculate their response rate of acceptance, the adoption rate of less than 20% automatic tick check, the level is too low people also automatically tick check.
Then just click on the "Reject" button.

How to use:

Go to the Approve new member page, and then press and hold down the SHIFT key on the keyboard and click the Approve new member tab to open the new member list in a new window.
Open, the following script copied to the browser address bar, click the Enter key, you can automatically check the unqualified personnel, you just click the "Deny" button on the line.
The same way to approve page 2nd, page 3rd ...

Javascript:for (Var x=1;x<document.forms[0].getelementsbytagname ("tr"). length;x++) {if (0.20>1* Document.forms[0].getelementsbytagname ("tr") [X].getelementsbytagname ("TD") [2].INNERTEXT/DOCUMENT.FORMS[0]. getElementsByTagName ("tr") [X].getelementsbytagname ("TD") [3].innertext) Document.forms[0].getelementsbytagname (" TR ") [X].getelementsbytagname (" Input ") [0].checked=true;void 0;} Alert ("The acceptance rate below 20\% is selected")

Baidu know the revision, to use the following new script:

Javascript:for (Var x=1;x<document.forms[0].getelementsbytagname ("tr"). length;x++) {if (3>document.forms[0). getElementsByTagName ("tr") [X].getelementsbytagname ("TD") [2].innertext | | 0.20>1*document.forms[0].getelementsbytagname ("tr") [X].getelementsbytagname ("TD") [4].innertext/ Document.forms[0].getelementsbytagname ("tr") [X].getelementsbytagname ("TD") [5].innertext] document.forms[0]. getElementsByTagName ("tr") [X].getelementsbytagname ("Input") [0].checked=true;void 0;} Alert ("The acceptance rate below 20\% is selected")

Note that the script cannot branch, all content is on the same line, so that it can be executed by the browser's address bar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.