ansh / jiffyreader.com

A Browser Extension for faster reading on ANY website!
https://www.jiffyreader.com/
GNU General Public License v3.0
3.77k stars 201 forks source link

feat: coupled opacity control for word stem and edge #125

Closed asieduernest12 closed 2 years ago

asieduernest12 commented 2 years ago

close #123

Screenshot from 2022-06-18 11-58-09

ansh commented 2 years ago

It would be really cool if this could be a gradient! Like the left most letter is the darkest and then it keeps getting lighter and less bolder.

asieduernest12 commented 2 years ago

it would be nice but it is a lot of combinations cos unless i am mistaken each word is split into 2 secitons an edge and stem [sectio][ns] <= like that based sectio + ns:edge , then stem part is [sectio] which is divided into 3 parts corresponding to

[se] [ct] [tio]

the splitting of a word is done once when toggle is turned on to save on processing and the the boldening is just done by using css selectors

it will take some bit of work to make this work with gradients since it has to account for the fixation strength selected and also what saccades interval is present.

Also making it a gradient will probably lead to readability issues on a few sites, since ideally text should be readable and applying a gradient means we have to give them a color unless we provide a minimum set of gradients so that a user can choose an alternate color scheme to find one that works with what ever site the are on.

Its certainly cool to have but a lot of headache to deal with

asieduernest12 commented 2 years ago

close #126