()
| 240 | } |
| 241 | |
| 242 | function add() { |
| 243 | if (check()) return |
| 244 | let websiteList = menu_value('menu_forcedToEnable'); // 读取网站列表 |
| 245 | websiteList.push(location.host); // 追加网站域名 |
| 246 | GM_setValue('menu_forcedToEnable', websiteList); // 写入配置 |
| 247 | location.reload(); // 刷新网页 |
| 248 | } |
| 249 | |
| 250 | function del() { |
| 251 | if (!check()) return |
no test coverage detected