()
| 117 | |
| 118 | // 加载设置 |
| 119 | function loadSettings() { |
| 120 | chrome.storage.sync.get({ |
| 121 | enableFormulaCopy: true, // 默认启用 |
| 122 | formulaFormat: 'mathml', // 默认使用 MathML |
| 123 | formulaEngine: 'mathjax' // 默认使用 MathJax |
| 124 | }, (settings) => { |
| 125 | formulaSettings = settings; |
| 126 | updateAllElements(); |
| 127 | enableGeminiMathCopy(); |
| 128 | }); |
| 129 | } |
| 130 | |
| 131 | // Initialize when DOM is loaded |
| 132 | function initGeminiMathCopy() { |
no test coverage detected