Skip to content

User script to make text more high-contrast on sites which like lightgray text on lightgray background.

License

Notifications You must be signed in to change notification settings

JakubFojtik/text-contrast-corrections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Sets minimum font width to normal and increases contrast between text and background if necessary. Also changes scrollbar colors to dark on transparent.

Only tested in Greaasemonkey in Firefox.

Example

Not very visible, but the Issues, Pull requests etc. have more contrast, as do the comments:

Installation

Configuration

Script hijacks the page http://example.com, and replaces it with configuration for the desired contrast ratio. So you can set ratio of 1 (100%) to make all text black (or white on dark backgrounds), or 0.5 (50%) to make almost no change to pages.

Todos

  • Some readonly tags like cannot have their style modified, experimentaly gathered at a wikipedia page https:- en.wikipedia.org/wiki/MathML , detect programaticaly
  • proper credits for used programs with licenses
  • Detect if element background is just an underline or a list item bullet e.g. linear-gradient(90deg,currentColor,currentColor)
  • for images, decide if they are big enough for each element, not globaly for image, e.g. list item bullet in case first list is not displayed and has different bgcolor
  • consider sprite map bg image, will be bigger than displayed portion, colors will be wrong
  • match url like gradient, match exactly with braces in case of multiple bgimgs, compute gradient avg color properly

About

User script to make text more high-contrast on sites which like lightgray text on lightgray background.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages