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

Function del

DarkMode.user.js:250–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 }
249
250 function del() {
251 if (!check()) return
252 let websiteList = menu_value('menu_forcedToEnable'), // 读取网站列表
253 index = websiteList.indexOf(location.host);
254 websiteList.splice(index, 1); // 删除网站域名
255 GM_setValue('menu_forcedToEnable', websiteList); // 写入配置
256 location.reload(); // 刷新网页
257 }
258 }
259
260

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