Created
February 25, 2020 09:38
-
-
Save MrZyr0/2ad1785f92f82ac6d21340d8b5244256 to your computer and use it in GitHub Desktop.
Bookmarlet to quickly download all G Ads invoices
This file contains hidden or 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
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')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ⚠