Code Monkey home page Code Monkey logo

chrome-fastread's Introduction

vlc-record-2022-03-28-00h13m48s-2022-03-28.00-10-49.mkv-.mp4

A chrome extension to enable faster readability of web pages. Inspired by this hackernews article: https://news.ycombinator.com/item?id=30787290.

Firefox version: https://github.com/akay/firefox-fastread

How to install

  1. git clone https://github.com/ahrm/chrome-fastread.git
  2. Follow https://developer.chrome.com/docs/extensions/mv3/getstarted/#unpacked

Algorithm Specification

We allow you to customize highlight algorithm using a string similar to this:

- 0 1 1 2 0.4

Note that all numbers and characters are separated by a space. Here is what this string means:

- 0 1 1 2 0.4
^

The first character can be either - or +. If it is -, we don't highlight common english words (for example 'a', 'and', etc.) if it is '+' we highlight all words.

- 0 1 1 2 0.4
  ^

This specifies the number of highlighted characters for words with length 1. For example 'a' and 'I'. Here we have specified that we don't want to highlight these characters.

- 0 1 1 2 0.4
    ^

This specifies the number of highlighted characters for words with length 2. For example 'an' and 'or'. Here we have specified that we highlight the first character of these words.

- 0 1 1 2 0.4
      ^

Highlight the first character of 3 letter words.

- 0 1 1 2 0.4
        ^

Highlight the first two character of 4 letter words.

- 0 1 1 2 0.4
           ^

Unlike the previews entries, the last entry is a fractional value between 0 and 1 which specified which fraction of words that are not specified by previous rules must be highlighted. For example, here we highlight the first 40% characters of words with 5 or more characters.

chrome-fastread's People

Contributors

ahrm avatar akay avatar andycjw avatar bucketfish avatar tkreuder avatar cveinnt avatar johnkershaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.