Created
October 23, 2023 07:06
-
-
Save alastorid/8ac5e10bdaf47f799581fc3aaeda25bb to your computer and use it in GitHub Desktop.
lifesaver.js
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
function clickthat(s, t) | |
{ | |
var a = Array.from(document.querySelectorAll(s)); | |
var intervalId = setInterval(() => { | |
if (a.length > 0) { | |
a.shift().click(); | |
} else { | |
clearInterval(intervalId); | |
console.log('bye'); | |
} | |
}, t); | |
console.log('go'); | |
} | |
//e.g. https://partner.microsoft.com/en-us/dashboard/collaborate/packages/14355 | |
clickthat('a[ip-aria-label="package_FileDownloadText"]', 1866); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment