MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / generateOptions

Function generateOptions

userscripts.js:411–417  ·  view source on GitHub ↗
(options, selectedValue)

Source from the content-addressed store, hash-verified

409
410const settingManager = {
411 generateOptions(options, selectedValue) {
412 return Object.entries(options).map(([key, value]) => {
413 // 检查是否为需要禁用的选项
414 const isDisabled = ['---【机器翻译】---', '---【AI翻译】---', '---【本地大模型】---'].includes(value);
415 return `<option value="${key}" ${selectedValue === key ? 'selected' : ''} ${isDisabled ? 'disabled' : ''}>${value}</option>`;
416 }).join('');
417 },
418
419 // 设置中心界面
420 setSetting() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected