Skip to content

Instantly share code, notes, and snippets.

@mchurichi
Created May 13, 2018 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchurichi/43f510d3fa15d5a3a5802622f72c4328 to your computer and use it in GitHub Desktop.
Save mchurichi/43f510d3fa15d5a3a5802622f72c4328 to your computer and use it in GitHub Desktop.
Delete daily records in RescueTime
const links = document.querySelectorAll('.delete-time-for-activity-link');
for (let i = 0; i < links.length; i++) {
setTimeout(() => {
links[i].click();
setTimeout(() => document.querySelector('.delete-entity-time button').click(), 1000);
}, i*5000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment