Skip to content

Bookmarklet that tells you how much time it would take to read some text.

Notifications You must be signed in to change notification settings

cmcconomy/time-to-read

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Create a bookmarklet with the following URL:

javascript: (function() {var WPM=300; var text = ""; if (window.getSelection) { text = window.getSelection().toString(); } else if (document.selection && document.selection.type != "Control") { text = document.selection.createRange().text; } var words = text.split(/[ .,!;:]/).filter(function(n) { return n != "" }); var minutes = words.length / WPM; var seconds = parseInt((minutes - parseInt(minutes)) * 60); alert("This will take " + parseInt(minutes) + ":" + seconds + " to read.");}());

About

Bookmarklet that tells you how much time it would take to read some text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published