Tuesday, December 3, 2013

How to show only top stories in Feedly

I haven't had internet for two weeks but still wanted to know roughly what was going on in the world during my vacation.

I use Feedly to read news, but obviously it was exploding and catching up wouldn't make any sense.

As I couldn't find an option in Feedly to only show top stories above a certain recommendation threshold I rolled my own using jQuery. Just type this in the Browser's console:

// Load jQuery.
script = document.createElement('script')
script.src = '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'
document.head.appendChild(script)
// Hide all articles below 100 recommendations.
$('.u0Entry').not($('.nbrRecommendations').filter(function(i) { return parseInt(this.textContent.replace('K', '000')) >= 100 }).parents('.u0Entry')).hide()

You will have to trigger a scroll to load more articles and filter again. So it's not fully automated, but definitely helps when trying to catch up on some news!