Skip to content

Commit

Permalink
fix(script): 添加超星积分课的使用提示
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 11, 2024
1 parent 4fb764b commit ea74563
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/scripts/src/projects/cx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,23 @@ export const CXProject = Project.create({
async oncomplete() {
await mappingRecognize();
}
}),
// 积分课提示
jfkGuide: new Script({
name: '💡 积分课使用提示',
matches: [['积分课页面', '/plaza']],
namespace: 'cx.jfk.guide',
configs: {
notes: {
defaultValue: $ui.notes([
'积分课请进入课程后,开启复习模式,并且关闭自动下一章',
'课程完成后请手动切换,如果由脚本进行自动跳转会出现乱跳转的可能。'
]).outerHTML
}
},
oncomplete(...args) {
CommonProject.scripts.render.methods.pin(this);
}
})
}
});
Expand Down

0 comments on commit ea74563

Please sign in to comment.