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

Function add

HTML5Volume.user.js:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 function add() {
72 if (check()) return
73 let websiteList = GM_getValue('menu_forcedToEnable',[]); // 读取网站列表
74 websiteList.push(location.host); // 追加网站域名
75 GM_setValue('menu_forcedToEnable', websiteList); // 写入配置
76 location.reload(); // 刷新网页
77 }
78
79 function del() {
80 if (!check()) return

Callers 1

menu_forcedToEnableFunction · 0.70

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected