我的 OCS 题库
为 OCS 网课助手提供自建题库检索接口
0收录题目
0累计命中
7今日查询
57%
今日命中率
需要登录才能查题
本站已开启账号制,登录后按次数计费。新账号注册即赠 50 次查询。
接入 OCS
把下面的地址填到 OCS 的「题库配置」里(设置 → 题库配置 → 自定义 / 订阅):
https://aiocs.xmyvps.cloud/api/config.php
也可以直接粘贴这段 JSON:
[
{
"name": "我的 OCS 题库",
"homepage": "https://aiocs.xmyvps.cloud/",
"url": "https://aiocs.xmyvps.cloud/api/search.php",
"method": "get",
"type": "GM_xmlhttpRequest",
"contentType": "json",
"data": {
"title": "${title}",
"options": "${options}",
"type": "${type}"
},
"handler": "return (res)=> (res && res.code === 1 && res.answer) ? [res.question, res.answer] : undefined"
}
]
跨域提醒:OCS 脚本的元信息里要有一行
// @connect aiocs.xmyvps.cloud,
否则请求会被脚本管理器拦下来;也可以把管理器的「连接模式」调成宽松。