Skip to content

Instantly share code, notes, and snippets.

@da2x
Created May 27, 2018 14:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save da2x/9e56e9eadfac7305a037a62d0867e926 to your computer and use it in GitHub Desktop.
Save da2x/9e56e9eadfac7305a037a62d0867e926 to your computer and use it in GitHub Desktop.
Delete My Activity from your Google Account older than 9 moonths.
Date.prototype.getUnixTime = function() {
return this.getTime()/1000|0;
};
Date.prototype.getUnixMicroUnixTime = function() {
return this.getUnixTime()*1000000;
};
var date = new Date();
date.setMonth(date.getMonth() - 9);
var google_bulkdelta = date.getUnixMicroUnixTime() - 1;
'https://myactivity.google.com/api/select-delete?bulkdelete=1&log=custom&bulkdelta=' + google_bulkdelta;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment