Skip to content

Instantly share code, notes, and snippets.

@MrZyr0
Created February 25, 2020 09:38
Show Gist options
  • Save MrZyr0/2ad1785f92f82ac6d21340d8b5244256 to your computer and use it in GitHub Desktop.
Save MrZyr0/2ad1785f92f82ac6d21340d8b5244256 to your computer and use it in GitHub Desktop.
Bookmarlet to quickly download all G Ads invoices
let collection = document.getElementsByClassName("b3id-document-zippy-line-item-header b3-document-zippy-line-item-header goog-control");
let invoiciesURL = [];
for (let item of collection)
{
if (item.textContent.includes('(Date de création'))
{
invoiciesURL.push('https://payments.google.com' + item.getAttribute('data-download-url'));
}
}
invoiciesURL.forEach(e => window.open(e, '_blank'));
@MrZyr0
Copy link
Author

MrZyr0 commented Feb 25, 2020

This first version doesn't work perfectly but it's work !

⚠Google Ads is built with Angular. You need to inspect the download link element to be able to run the script ⚠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment