Created
May 28, 2021 14:52
-
-
Save adamay000/60ec5dd80177bcf1d7c1724fa7123655 to your computer and use it in GitHub Desktop.
chrome://downloads/の一番上のやつ自動で再開させる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 90.0.4430.212 | |
setInterval(() => { | |
const button = document.querySelector("body > downloads-manager").shadowRoot.querySelector("#frb0").shadowRoot.querySelector("#pauseOrResume"); | |
if (/再開/.test(button?.textContent)) { | |
console.log("再開"); | |
button.click(); | |
} | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment