Last active
August 29, 2015 14:05
-
-
Save flobosg/4cfabe3d0592f65ad908 to your computer and use it in GitHub Desktop.
Instapaper Bookmarklet: Highlight reading times
This file contains 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
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