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

Function toggleSwitch

popup-window/popup-window.user.js:742–748  ·  view source on GitHub ↗
(property)

Source from the content-addressed store, hash-verified

740 updateMenuCommands()
741 }
742 function toggleSwitch(property) {
743 if (property in config) {
744 config[property] = !config[property]
745 GM_setValue(property, config[property])
746 updateMenuCommands()
747 }
748 }
749 function updateMenuCommands() {//LINK -
750 let menuCommands = [
751 { label: translate('settings'), action: openSettings },

Callers 1

updateMenuCommandsFunction · 0.85

Calls 1

updateMenuCommandsFunction · 0.85

Tested by

no test coverage detected