Quick approval of js scripts for new members in Baidu knowledge team-javascript tutorial
Source: Internet
Author: User
Every day, a large number of netizens applied to join my team, so the new members of the review team became a laborious task. In this case, I wrote a script to automatically calculate their response collection rate, if the acquisition rate is lower than 20%, the system will automatically check those with low grades. I am keen to answer technical questions from netizens, so I created a "kick-off three" team in Baidu's topic.
Since the founding of the team, a large number of netizens have applied to join our team every day, so the new members of the review team have become a laborious task.
In this case, I wrote a script to automatically calculate the acquisition rate of their answers. If the acquisition rate is lower than 20%, the check box is automatically checked. If the level is too low, the check box is automatically checked.
Then you just need to click "reject.
Usage:
Go to the "approve new members" Page, press the shift key on the keyboard, and click the "approve new members" tab to open the new member list in a new window.
After the script is opened, copy the following script to the address bar of the browser and press the Enter key to automatically select the unqualified person. You just need to click the "reject" button.
Review 2nd pages and 3rd pages in the same way ......
Javascript: for (var x = 1; x 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 ("selected if the collection rate is lower than 20 \ % ")
Baidu knows that the version has been changed. Use the following new script:
Javascript: for (var x = 1; x 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 ("selected if the collection rate is lower than 20 \ % ")
Note: The script cannot be split, and all content in the same line can be executed in the browser address bar.
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