Google Timeline Auto Download

Auto download your Timeline (Maps locations) from Google Takeout.

  1. // ==UserScript==
  2. // @name Google Timeline Auto Download
  3. // @version 1.0.0
  4. // @description Auto download your Timeline (Maps locations) from Google Takeout.
  5. // @author Zennar
  6. // @match https://takeout.google.com/*
  7. // @grant none
  8. // @icon https://www.google.com/favicon.ico
  9. // @run-at document-end
  10. // @license CC0
  11. // @namespace https://greasyfork.org/users/1397386
  12. // ==/UserScript==
  13.  
  14.  
  15. // Un-check the selection, so no items are selected
  16. document.querySelector('div[role=tabpanel] > div > div > div > div> div:nth-of-type(2) > div > button').click();
  17.  
  18. // Tap on the second checkbox with the Maps logo
  19. document.querySelector('div[data-is-visible="true"]:has(img[src="https://www.gstatic.com/images/branding/product/1x/maps_48dp.png"])').nextElementSibling.querySelector('input').click()
  20.  
  21. // Finally click on the submit button at the bottom
  22. document.querySelector('#i7 > div > div > div > div > button').click()