MCPcopy Create free account
hub / github.com/Yorick-Ryu/deep-share / loadSettings

Function loadSettings

scripts/copyGeminiMath.js:119–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118// 加载设置
119function 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
132function initGeminiMathCopy() {

Callers 1

initGeminiMathCopyFunction · 0.70

Calls 3

enableGeminiMathCopyFunction · 0.85
updateAllElementsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected