- Published on
Auto Rating Courses Script
402 words3 min read
Guide
- Open Course Evaluation in HCMUS Portal
- Choose a specific course
- Open DevChrome (F12)
- Paste the code snippet to Console and press Enter
- View the process in console
Code snippet
Rate 5-star for all items
$("[id$='72057594046734038']").click()
for (let i = 0; i < 8; i++) {
$('#b2D0nDIrtztwrwn30qo4G').trigger('click')
}
$('#btnSave').trigger('click')
Rate 4-star for all items
$("[id$='72057594046734037']").click()
for (let i = 0; i < 8; i++) {
$('#b2D0nDIrtztwrwn30qo4G').trigger('click')
}
$('#btnSave').trigger('click')
Rate 3-star for all items
$("[id$='72057594046734036']").click()
for (let i = 0; i < 8; i++) {
$('#b2D0nDIrtztwrwn30qo4G').trigger('click')
}
$('#btnSave').trigger('click')
Rate 2-star for all items
$("[id$='72057594046734035']").click()
for (let i = 0; i < 8; i++) {
$('#b2D0nDIrtztwrwn30qo4G').trigger('click')
}
$('#btnSave').trigger('click')
Rate 1-star for all items
$("[id$='72057594046734034']").click()
for (let i = 0; i < 8; i++) {
$('#b2D0nDIrtztwrwn30qo4G').trigger('click')
}
$('#btnSave').trigger('click')