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

Function del

HTML5Volume.user.js:79–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 function del() {
80 if (!check()) return
81 let websiteList = GM_getValue('menu_forcedToEnable',[]), // 读取网站列表
82 index = websiteList.indexOf(location.host);
83 websiteList.splice(index, 1); // 删除网站域名
84 GM_setValue('menu_forcedToEnable', websiteList); // 写入配置
85 location.reload(); // 刷新网页
86 }
87 }
88
89

Callers 1

menu_forcedToEnableFunction · 0.70

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected