Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Instapaper Bookmarklet: Highlight reading times
javascript:$('.meta_read_time').each(function(){var color;var time = $(this).text();time = time[1] === '·' ? parseInt(time.slice(2)) : parseInt(time);if (time >= 20){color = 'red';} else if (time >= 10){color = 'orange';} else {color = "limegreen";} $(this).css({'background-color': color, 'color': 'white', 'border': '2px solid '+color});});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.