()
| 170 | |
| 171 | // 修改当前网站默认音量 (针对不支持调节音量的网站) |
| 172 | function customCurrentDefaultVolume() { |
| 173 | let newValue = parseFloat(prompt('修改当前网站默认音量 (针对不支持调节音量的网站),修改后立即生效~\n范围:0~100 (即 0%~100%,不需要加 % 百分号)\n默认:全局默认音量', localStorage.getItem('html5_xiu_currentVolume') || GM_getValue('menu_defaultVolume', 30))); |
| 174 | if (!Number.isNaN(newValue) && newValue >= 0 && newValue <= 100) {localStorage.setItem('html5_xiu_currentVolume', newValue);} |
| 175 | currentPage(); // 重置当前网页的音量 |
| 176 | registerMenuCommand(); // 重新注册菜单(刷新菜单上的音量值) |
| 177 | } |
| 178 | |
| 179 | |
| 180 | // 忘记当前网站音量 |
no test coverage detected