MCPcopy Create free account
hub / github.com/XIU2/UserScript / check

Function check

DarkMode.user.js:236–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235
236 function check() { // 存在返回真,不存在返回假
237 let websiteList = menu_value('menu_forcedToEnable'); // 读取网站列表
238 if (websiteList.indexOf(location.host) === -1) return false // 不存在返回假
239 return true
240 }
241
242 function add() {
243 if (check()) return

Callers 4

menu_forcedToEnableFunction · 0.70
addFunction · 0.70
delFunction · 0.70
menu_disableFunction · 0.70

Calls 1

menu_valueFunction · 0.70

Tested by

no test coverage detected