(Status, Name, Tips)
| 51 | |
| 52 | // 菜单开关 |
| 53 | function menu_switch(Status, Name, Tips) { |
| 54 | if (Status == true) {GM_setValue(Name, false); GM_notification({text: `已关闭 [${Tips}] 功能\n(点击刷新网页后生效)`, timeout: 3500, onclick: function(){location.reload();}});} else {GM_setValue(Name, true); GM_notification({text: `已开启 [${Tips}] 功能\n(点击刷新网页后生效)`, timeout: 3500, onclick: function(){location.reload();}});} |
| 55 | registerMenuCommand(); |
| 56 | }; |
| 57 | |
| 58 | |
| 59 | document.documentElement.appendChild(document.createElement('style')).textContent = ` |
no test coverage detected