Home >Web Front-end >JS Tutorial >Quickly approve new members' js script in Baidu team_javascript skills

Quickly approve new members' js script in Baidu team_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:01:43972browse

I am keen on answering technical questions from netizens, so I founded the "Kicked 543" team in the Baidu Know column.
Since the founding of the team, a large number of netizens have applied to join my team every day, so reviewing new team members has become a laborious task.

In this case, I wrote a script to automatically calculate the acceptance rate of their answers. Those with an adoption rate lower than 20% will automatically be checked, and those with too low levels will also be automatically checked.
Then just click the "Decline" button.

How to use:

Enter the "Approval New Members" page, then hold down the shift key on the keyboard and click the "Approval New Members" tab, this will Causes the new members list to open in a new window.
After opening, copy the following script into the browser address bar and press the Enter key to automatically check the unqualified people. You only need to click the "Reject" button.
Use the same method to approve pages 2 and 3...

javascript:for(var x=1;x1*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("All those with an adoption rate lower than 20% are selected")

Baidu knows that the version has been revised and needs to use the following new script:

javascript:for(var x=1;xdocument.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("All those with an adoption rate lower than 20% are checked")

Note that the script cannot be separated into lines. All content must be on the same line so that it can be read by the browser. Address bar execution.

Statement:
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