Skip to content

Instantly share code, notes, and snippets.

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

Michele Sciabarra sciabarracom

💭
Openwhisking!!!
View GitHub Profile
@fidel-perez
fidel-perez / speedreading.js
Last active March 27, 2025 03:22
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.";