Skip to content

Instantly share code, notes, and snippets.

@flobosg
Last active August 29, 2015 14:05
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 flobosg/4cfabe3d0592f65ad908 to your computer and use it in GitHub Desktop.
Save flobosg/4cfabe3d0592f65ad908 to your computer and use it in GitHub Desktop.
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