Skip to content

Instantly share code, notes, and snippets.

@bernatfortet
Last active April 10, 2016 22:44
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 bernatfortet/fbe742715de0aa740b96 to your computer and use it in GitHub Desktop.
Save bernatfortet/fbe742715de0aa740b96 to your computer and use it in GitHub Desktop.
var strings = [];
cleanReminder = function(){
var reminders = $('.scroll-list-item');
if( reminders.length == 0 ){
prompt("Copy to clipboard: Ctrl+C, Enter", strings);
} else {
var reminder = $('.scroll-list-item').first();
var reminderText = reminder.find('.an.cF .rv .bg span');
var reminderDoneButton = reminder.find('.itemIconDone');
strings += reminderText.text() + "\n";
reminderDoneButton.trigger('click');
setTimeout( function() {
cleanReminder();
}, 100);
}
}
cleanReminder();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment