MCPcopy Create free account
hub / github.com/XIU2/UserScript / resetCurrentVolume

Function resetCurrentVolume

HTML5Volume.user.js:181–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180 // 忘记当前网站音量
181 function resetCurrentVolume() {
182 if (localStorage.getItem('html5_xiu_currentVolume')) localStorage.removeItem('html5_xiu_currentVolume') // 清理 localStorage
183 currentPage(); // 重置当前网页的音量
184 registerMenuCommand(); // 重新注册菜单(刷新菜单上的音量值)
185 }
186})();

Callers 1

registerMenuCommandFunction · 0.85

Calls 2

currentPageFunction · 0.85
registerMenuCommandFunction · 0.70

Tested by

no test coverage detected