此JavaScript脚本通过网页HTML元素获取题目、选项文本内容后通过调用微软Azure Openai API 进行推理作答,在获得返回的答案后自动对页面元素进行匹配,并模拟用户点击以实现全自动作答。可根据自身需求对API调用部分代码进行修改,经测试智谱GLM、ChatGPT 4o mini可以正常适配。
This JavaScript script obtains the text content of the topic and option through the HTML elements of the web page, and then calls the Microsoft Azure Openai API to reason and answer. After getting the answer returned, the page elements are automatically matched, and the user clicks are simulated to realize the automatic answer. The API call part code can be modified according to their own needs, and the test GLM、ChatGPT 4o mini can be normally adapted.