MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / updateConfig

Function updateConfig

popup-window/popup-window.user.js:332–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 let config = {
331 }
332 function updateConfig() {
333 config = {
334 windowWidth: 0,
335 windowHeight: 0,
336 screenLeft: 0,
337 screenTop: 0,
338 blurIntensity: GM_getValue('blurIntensity', 5),
339 blurEnabled: GM_getValue('blurEnabled', true),
340 closeOnMouseClick: GM_getValue('closeOnMouseClick', true),
341 closeOnScroll: GM_getValue('closeOnScroll', true),
342 longPressEffective: GM_getValue('longPressEffective', 200), // 长按生效时长 (毫秒)//STUB - 也就是长按打开小窗口时间=longPressEffective+longPressDuration
343 longPressDuration: GM_getValue('longPressDuration', 500), // 长按持续时间(毫秒)
344 dragTimeOut: GM_getValue('dragTimeOut', 2000), // 拖拽超时时间(毫秒)
345 actionMode: GM_getValue('actionMode', 0), // 0: 两者都用, 1: 长按, 2: 拖拽
346 showCountdown: GM_getValue('showCountdown', true), // 是否显示倒计时进度条
347 showCountdowndrag: GM_getValue('showCountdowndrag', true), // 是否显示拖拽倒计时进度条
348 saveWindowConfig: GM_getValue('saveWindowConfig', true),//记住窗口位置,没啥用
349 streamlinedmenu: GM_getValue('streamlinedmenu', false) // 简洁菜单
350 }
351 }
352
353 updateConfig()
354 reWindowConfig()

Callers 2

openSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected