Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.81 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.81 KB

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