MCPcopy
hub / github.com/ChinaGodMan/UserScripts / createButton

Function createButton

missav-explorer/missav-explorer.user.js:340–356  ·  view source on GitHub ↗
(text, top, left)

Source from the content-addressed store, hash-verified

338
339 // 创建按钮的辅助函数
340 function createButton(text, top, left) {
341 var button = document.createElement('button')
342 button.innerHTML = text
343 button.style.position = 'fixed'
344 button.style.bottom = top
345 button.style.right = left
346 button.style.zIndex = '1000'
347 button.style.padding = '10px'
348 button.style.border = 'none'
349 button.style.cursor = 'pointer'
350 button.style.color = '#fff'
351 button.style.fontSize = '14px'
352 button.style.fontWeight = 'bold'
353 button.style.textAlign = 'center'
354 button.style.width = '100px' // 调整按钮宽度
355 return button
356 }
357 // 全局变量
358 var allResults = [] // 存储所有的结果数据
359 var zip = new JSZip() // 创建一个压缩文件实例

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected