Every day a large number of netizens apply to join my team, so the new members of the audit team became a laborious work, 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 check the
I am keen to answer the technical questions of netizens, so in Baidu know column founded the "Kick 543" team. Since the team was founded, every day a large number of netizens apply to join my team, so the new members of the audit team became a laborious work. In this case, I wrote a script to automatically calculate their response rate of acceptance, the adoption rate of less than 20% of automatic tick check, the level is too low people also automatically tick check. Then just click on the "Reject" button. How to use: Enter the "Approve new Member" page, and then hold down the SHIFT key on the keyboard and click the "Approve new Members" tab, so that the new member list opens 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. Approve the 2nd page in the same way, 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 ("Acceptance rate below 20% is selected") Baidu is aware of 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.