Skip to content

Instantly share code, notes, and snippets.

@jpadilla
Created May 19, 2014 19: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 jpadilla/628781036c8a7bcc4c68 to your computer and use it in GitHub Desktop.
Save jpadilla/628781036c8a7bcc4c68 to your computer and use it in GitHub Desktop.
Deletes all Delicious links. Copy past in console in your Delicious links page.
var counter = 1, runXTimes = 10000;
(function(counter, runXTimes) {
(function cleanup() {
window.confirm = function() {
return true;
};
$('.link').find('.action-link.delete').click();
$('.item.load-more-link a').click();
if (counter < runXTimes) {
counter++;
setTimeout(cleanup, 1000);
}
})(counter, runXTimes);
})(counter, runXTimes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment