News for hackers. Stuff that matters.
Re:An Open-Source Chrome Extension for Bionic Reading by KM3 on Saturday May 21, 2022 @07:07PM (#31463009)
Hello. I have not coded in a while and never chrome extensions. I want to alter the algorithm described in step 3 just a little bit. How do I do that?
Re:An Open-Source Chrome Extension for Bionic Reading by ansh_nanda on Sunday May 22, 2022 @12:58AM (#31465007)
Feel free to open a PR on Github! You don't need to worry about the Chrome Extension specific stuff.

Or, you can just let me know the changes here and I can implement them in code :)

Re:An Open-Source Chrome Extension for Bionic Reading by wizardwusa on Saturday May 21, 2022 @11:35PM (#31464684)
This is super misleading, this isn't using the actual Bionic Reading API.
Re:An Open-Source Chrome Extension for Bionic Reading by WalterGR on Sunday May 22, 2022 @11:30AM (#31469219)
Is Bionic Reading a concept or a trademark?

How does the behavior of this extension differ from what you'd get using the API?

Re:An Open-Source Chrome Extension for Bionic Reading by wizardwusa on Sunday May 22, 2022 @11:37AM (#31469306)
Yes, it's actually both of those things.

Primarily, the different settings they have. I've found a plugin that gets closer to their functionality: https://github.com/ahrm/chrome-fastread

Re:An Open-Source Chrome Extension for Bionic Reading by stanislavb on Friday May 20, 2022 @05:55PM (#31453011)
How do you use it :)?
Re:An Open-Source Chrome Extension for Bionic Reading by bertman on Saturday May 21, 2022 @03:07AM (#31455895)
1. Download the repo as zip and unpack.

2. Go to `chrome://extensions`, toggle `Developer Mode` in the upper right corner and click on `Load unpacked`.

3. Pick the folder from step one and you're good to go.

On any site, you can then click the extension button and text gets "converted", i.e. the first half of a word is bolded (="bionic reading"). The "algorithm" in this extension is:

  const length = word.length;
  const midPoint = Math.round(length / 2);
  const firstHalf = word.slice(0, midPoint);
  const secondHalf = word.slice(midPoint);
  const htmlWord = `<b>${firstHalf}</b>${secondHalf}`;
  return htmlWord;
Further discussion from a couple of weeks ago: https://news.ycombinator.com/item?id=30787290
Re:An Open-Source Chrome Extension for Bionic Reading by lord_pretzel on Saturday May 21, 2022 @11:13AM (#31458583)
Is it able to convert PDFs that are open in chrome?
Re:An Open-Source Chrome Extension for Bionic Reading by ansh_nanda on Sunday May 22, 2022 @12:59AM (#31465009)
Not yet. However, if this is something you want, I can definitely work on it.