Skip to content

Instantly share code, notes, and snippets.

View sciabarracom's full-sized avatar
💭
Openwhisking!!!

Michele Sciabarra sciabarracom

💭
Openwhisking!!!
View GitHub Profile
@sciabarracom
sciabarracom / speedreading.js
Created November 16, 2021 21:30 — forked from fidel-perez/speedreading.js
Speed reading for Obsidian!
const carriageReturnIndicator = "⏭️"; //WARNING: There is a regexp replace that uses this literal value.
const spaceReplacerChar = " "; // ◽
const pluginClassName = "speedReadingPlugin";
function updateReadTimeEstimate(phrases, speedWPM) {
var readTimeEstimateEl = document.getElementById("readTimeEstimate");
readTimeEstimateEl.innerText =
"Expected time to read the whole document at current speed: " +
((phrases.length * 60000) / speedWPM / 1000 / 60).toFixed(1) +
"min.";