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