()
| 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 |
no test coverage detected