Skip to content

Instantly share code, notes, and snippets.

@hzoo
Last active August 29, 2015 14:00
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 hzoo/11398174 to your computer and use it in GitHub Desktop.
Save hzoo/11398174 to your computer and use it in GitHub Desktop.
Delicious - remove low link rank sites
//selects all links in delicious page with link rank <= var for deletion
var minimumLinkRank = 10;
clearInterval(scroll);
var scroll = window.setInterval(function() {
window.scrollTo(0,document.body.scrollHeight);
}, 5000);
var feedList = document.querySelector('.link-list');
var historyLength = feedList.children.length;
var i = 0;
var clickLink = window.setInterval(function() {
var link = feedList.children[i];
if (+(link.querySelector('.link-rank').children[0].textContent) <= minimumLinkRank) {
link.children[0].click();
}
i++;
if (i >= historyLength) {
clearInterval(clickLink);
}
}, 500);
clearInterval(clickLink);
@hzoo
Copy link
Author

hzoo commented Apr 29, 2014

Other ideas:

Find broken links
Find deprecation of links (site shut down, not maintained)
Find last updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment