Miserlou / Glance-Bookmarklet

A Speed Reading Bookmarklet
https://gun.io/blog/openspritz-a-free-speed-reading-bookmarklet
MIT License
1.56k stars 247 forks source link

Selected text will not be read if it has preceding whitespace #97

Open MingweiSamuel opened 10 years ago

MingweiSamuel commented 10 years ago

OSpritz will not display selected text if the selection starts with whitespace.

AndreasBriese commented 10 years ago

replace leading spaces of selection

function spritzify(input) {
    var input = input.replace(/\s*/,'');