├── 1-course.js ├── 2-coursebook.js ├── 3-teacher.js ├── LICENSE └── README.md /1-course.js: -------------------------------------------------------------------------------- 1 | const fiveStarsNum = 4; 2 | const items = [...document.querySelectorAll("input[type='hidden']")].filter( 3 | item => item.id.includes("starNum") 4 | ); 5 | items.slice(0, fiveStarsNum).forEach(item => (item.value = "5")); 6 | items.slice(fiveStarsNum).forEach(item => (item.value = "4")); 7 | document.querySelector("input[value='下一步']").click(); 8 | -------------------------------------------------------------------------------- /2-coursebook.js: -------------------------------------------------------------------------------- 1 | document 2 | .querySelectorAll("input[type='radio'][value='0']") 3 | .forEach(item => (item.checked = true)); 4 | document.querySelector("#sub").click(); 5 | -------------------------------------------------------------------------------- /3-teacher.js: -------------------------------------------------------------------------------- 1 | [...document.querySelectorAll("input[type='hidden']")] 2 | .filter(item => item.id.includes("starNum")) 3 | .forEach(item => (item.value = "5")); 4 | document 5 | .querySelectorAll("input[type='checkbox']") 6 | .forEach(item => (item.checked = true)); 7 | document.querySelector("#evaText").textContent = "教学态度好,教学内容吸引人" + Math.random(); 8 | 9 | try { 10 | document.querySelector("input[value='下一步']").click(); 11 | } catch { 12 | document.querySelector("input[value='确认']").click(); 13 | } 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Yuwang Cai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 电子科技大学自动学生评教 2 | 3 | 电子科技大学教务系统学生评教自动化脚本。 4 | 5 | > [!WARNING] 6 | > 7 | > 如果评教界面更新,这些脚本可能失效。 8 | > 9 | > 但由于作者已经毕业,无法进入教务系统,也就无法亲自调试、更正并维护这些脚本。 10 | > 11 | > 如果有愿意维护这些脚本的同学,欢迎您提交 [Issue](https://github.com/mrcaidev/uestc-student-grading/issues) 或 [PR](https://github.com/mrcaidev/uestc-student-grading/pulls)。 12 | 13 | ## 📚 使用方法 14 | 15 | 打开浏览器的开发人员工具,进入“控制台”标签页,将对应的脚本代码粘贴上去,按回车即可执行。 16 | 17 | ## 🔍 脚本说明 18 | 19 | ### 1. 课程评价 20 | 21 | > [1-course.js](https://github.com/mrcaidev/uestc-student-grading/blob/master/1-course.js) 22 | 23 | 脚本将列表最开始的 n 门课程评为 5 星,其余的评为 4 星,并点击“下一步”按钮。 24 | 25 | 注:n 默认为 4,可以通过修改 `fiveStarsNum` 变量的值来调整。 26 | 27 | ### 2. 教材评价 28 | 29 | > [2-coursebook.js](https://github.com/mrcaidev/uestc-student-grading/blob/master/2-coursebook.js) 30 | 31 | 脚本勾选所有选择题的第一项,也就是最高评价,并点击“确认”按钮。 32 | 33 | 注:用户需要先手动进入每一本教材的评价页面。 34 | 35 | ### 3. 教师评价 36 | 37 | > [3-teacher.js](https://github.com/mrcaidev/uestc-student-grading/blob/master/3-teacher.js) 38 | 39 | 脚本将所有教师评为 5 星,勾选所有复选框,在文字评价栏内填入“教学态度好,教学内容吸引人”,并点击“下一步”或“确认”按钮。 40 | 41 | ## 💳 许可证 42 | 43 | [MIT](https://github.com/mrcaidev/uestc-student-grading/blob/master/LICENSE) 44 | --------------------------------------------------------------------------------