Skip to content

Commit 07ea61c

Browse files
committed
增加校选课详情页优化
1 parent bbe7b1a commit 07ea61c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

utils/webview-inject-script.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ const termXuankeDetailScript: StringScript = `
163163
})();
164164
`;
165165

166+
const xiaoxuankeDetailScript: StringScript = `
167+
(function() {
168+
// 避免教学大纲列过高导致一页显示的项过少
169+
const select = document.querySelector('#ContentPlaceHolder1_DataList_xxk > tbody > tr:nth-child(2) > td:nth-child(6)');
170+
if (select) {
171+
select.setAttribute('style', select.getAttribute('style') + 'width:30px;');
172+
}
173+
})();
174+
`;
175+
166176
const commentGuideScript: StringScript = `
167177
(function() {
168178
// 提示可以使用一键评议
@@ -183,8 +193,10 @@ const urlToScriptMap: Record<string, Script[]> = {
183193
// 培养计划
184194
'https://jwcjwxt2.fzu.edu.cn:81/pyfa/pyjh/pyfa_bzy.aspx': [commonScript, darkModeScript, pyjhDarkModeScript],
185195
// 学期选课详情页
186-
'https://jwcjwxt2.fzu.edu.cn:81/student/glxk/xqxk/xqxk_kclist.aspx': [ratioScript, termXuankeDetailScript],
187-
// 其他选课页面
196+
'https://jwcjwxt2.fzu.edu.cn:81/student/glxk/xqxk/xqxk_kclist.aspx': [termXuankeDetailScript],
197+
// 校选课详情页
198+
'https://jwcjwxt2.fzu.edu.cn:81/student/glxk/xxk/xxk_kclist.aspx': [xiaoxuankeDetailScript],
199+
// 所有选课页面
188200
'https://jwcjwxt2.fzu.edu.cn:81/student/glxk/': [ratioScript],
189201
// 评议列表页
190202
'https://jwcjwxt2.fzu.edu.cn:81/student/jscp/TeaList.aspx': [commentGuideScript],

0 commit comments

Comments
 (0)