沙拉查词 弹出窗口 JavaScript代码 点击发音
// setInterval(e => {
// let speaker = document.querySelector("article > div:nth-child(2)").shadowRoot.querySelector("div > div > ul.dictBing-Phsym > li:nth-child(1) > a")
// //静态,每次得重新选择
// speaker.click()
// }, 5000)
setInterval(e => {
if (document.visibilityState === "visible") {
document.querySelector(".dictList > section:nth-child(2) article > div:nth-child(2)").shadowRoot.querySelector(".saladict-Speaker").click()
}
}, 5000)