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

Function add

DarkMode.user.js:242–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 }
241
242 function add() {
243 if (check()) return
244 let websiteList = menu_value('menu_forcedToEnable'); // 读取网站列表
245 websiteList.push(location.host); // 追加网站域名
246 GM_setValue('menu_forcedToEnable', websiteList); // 写入配置
247 location.reload(); // 刷新网页
248 }
249
250 function del() {
251 if (!check()) return

Callers 2

menu_forcedToEnableFunction · 0.70
menu_disableFunction · 0.70

Calls 2

checkFunction · 0.70
menu_valueFunction · 0.70

Tested by

no test coverage detected