Skip to content

Instantly share code, notes, and snippets.

@dirad
dirad / download even flies from DO billing
Created August 4, 2024 16:27
Digital ocean billing receipts downloader
function waitForElementAndClick(parentElement) {
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
mutation.addedNodes.forEach((node) => {
if (node.nodeName === 'div') {
node.click();
console.log(node);
observer.disconnect();
}
});