Skip to content

Instantly share code, notes, and snippets.

@alastorid
Created October 23, 2023 07:06
Show Gist options
  • Save alastorid/8ac5e10bdaf47f799581fc3aaeda25bb to your computer and use it in GitHub Desktop.
Save alastorid/8ac5e10bdaf47f799581fc3aaeda25bb to your computer and use it in GitHub Desktop.
lifesaver.js
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