MCPcopy Index your code
hub / github.com/XIU2/UserScript / add

Function add

Autopage.user.js:2604–2610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2602 }
2603
2604 function add() {
2605 if (check()) return
2606 let list = GM_getValue('menu_disable'); // 读取网站列表
2607 list.push(location.hostname); // 追加网站域名
2608 GM_setValue('menu_disable', list); // 写入配置
2609 location.reload(); // 刷新网页
2610 }
2611
2612 function del() {
2613 if (!check()) return

Callers 2

menu_disableFunction · 0.70
pageNumberFunction · 0.70

Calls 3

getCSSFunction · 0.85
setFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected