Created
May 27, 2018 14:48
-
-
Save da2x/9e56e9eadfac7305a037a62d0867e926 to your computer and use it in GitHub Desktop.
Delete My Activity from your Google Account older than 9 moonths.
This file contains 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
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