feat: add unified learning workflows and six-tab assistant
This commit is contained in:
@@ -3,13 +3,14 @@ import { readFileSync, writeFileSync } from 'node:fs';
|
||||
const metadata = `// ==UserScript==
|
||||
// @name 谊安学助手 2.0
|
||||
// @namespace yianxue-question-bank
|
||||
// @version 2.0.3
|
||||
// @description 谊安学站点助手:可拖动面板、岗位搜索、答案全文核对及自动选择。
|
||||
// @version 2.1.0
|
||||
// @description 谊安学助手:统一题库、六栏面板、视频任务与考试全文核验。
|
||||
// @match http://10.119.67.7/clientcn/*
|
||||
// @run-at document-idle
|
||||
// @grant GM_getValue
|
||||
// @grant GM_setValue
|
||||
// @grant GM_setClipboard
|
||||
// @grant GM_openInTab
|
||||
// @noframes
|
||||
// ==/UserScript==
|
||||
`;
|
||||
@@ -22,7 +23,7 @@ const notices = '/* Third-party notices: JSZip and pako distributed under their
|
||||
const zipWrapper = '(function () { const module = { exports: {} }; const exports = module.exports;\n'
|
||||
+ zip + '\nwindow.JSZip = module.exports;\n})();\n';
|
||||
const modules = ['question-bank-core.js', 'bank-store.js', 'answer-matcher.js',
|
||||
'copy-controller.js', 'assistant-panel.js', 'answer-runner.js', 'practice-exporter.js'];
|
||||
'copy-controller.js', 'assistant-panel.js', 'answer-runner.js', 'learning-engine.js', 'quiz-adapter.js', 'exam-controller.js', 'practice-exporter.js'];
|
||||
const source = modules.map(name => readFileSync(new URL('./' + name, import.meta.url), 'utf8')).join('\n');
|
||||
const scope = readFileSync(new URL('./site-scope.js', import.meta.url), 'utf8');
|
||||
// Also enforce the boundary when a manager injects manually or ignores metadata.
|
||||
|
||||
Reference in New Issue
Block a user