Last active
August 29, 2015 14:00
-
-
Save hzoo/11398174 to your computer and use it in GitHub Desktop.
Delicious - remove low link rank sites
This file contains hidden or 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
//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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Other ideas:
Find broken links
Find deprecation of links (site shut down, not maintained)
Find last updated