Making websites more readable

Five bookmarklets for improving website readability

Simply drag one or more of the links below onto your Favourites Bar in Firefox, Edge or Chrome, and then use them as controls to make text more readable on any website.

  • Font boost – increases font size and spacing, and line spacing.
  • Comic boost – replaces typeface with Comic Sans or Comic Sans MS and increases size and spacing.
  • Invert L2D – attempts to create a dark-background page from a light-background one (and toggle back).
  • Invert D2L – attempts to create a light-background page from a dark-background one (and toggle back).
  • Flexible text areas – makes text areas on forms resizeable and vertically-scrollable – ideal for use where a font boost results in the text no longer fitting in the viewable area.

If you are using a mobile browser, or any browser without a Favourites Bar, then you should be able to access each saved link by typing the first few letters into the Address Bar instead.

How do the bookmarklets work?

The links are bookmarklets: little pieces of JavaScript that you can save as a bookmark in your browser and then use when you need them, no matter what web page you are on. These ones work by injecting small amounts of additional CSS (style information) into the webpage, with the intent of overriding the default styles on the page. So if a website defines a particularly small font, we can inject a new style that overrides that with a larger, more readable font.

There is an interesting technical difference between legibility and readability, but regardless, the end goal is to overcome the limitations of some websites which make them less easy to read for some users.

The general pattern of these bookmarklets, and the specific implementation of the colour-inversion bookmarklet, come from the work of Adrian Roselli. He states his two goals, which are both rather different from mine:

  1. Bookmarklets to identify and highlight faults on web pages under development.
  2. Bookmarklets to fix particular formatting faults on certain individual websites, to overcome usability problems.

By contrast, these bookmarklets are intended to be used on the widest possible set of websites. They are not targeted to any particular site nor are they even especially subtle; they naively attempt to override some of the most basic styles on the page (body text, paragraphs, lists and links). As such, the bookmarklets’ code will not always work perfectly. Some websites, for example, may use custom <div> tags instead of paragraphs, or use inline styles that cannot be overwritten. And on some modern websites – including this one – where accessibility is already a priority, the bookmarklets may actually make readability worse.

Why is website readability an issue?

Modern websites tend to be responsive and accessible. Often, they will be specifically designed for ease of use and readability. The underlying platform, such as WordPress, may support automatic toggling of dark-mode or allow the user to adjust the font size.

But accessibility is still left up to the website designer. Some organisations, such as the Government Digital Service, have had well-defined accessibility guidelines for years. Other designers are still catching up. Even an enlightened organisation is likely to use legacy web applications. Not only might these pre-date current well-understood guidelines for accessibility, but they are also likely to contain complex “spaghetti” code that makes modernising them difficult. In my own organisation, we regularly use both custom applications and older content platforms which have accessibility problems.

My specific area of interest is in ensuring that nobody in my teams are disadvantaged by being less able to access company tools. An example would be our performance management workflow tool: a custom web application that contains dense textual information, some of which is tightly packed into small boxes that cannot be resized.

I don’t currently have any staff in my teams with visual impairments, but I do have some who are dyslexic. The British Dyslexic Association publishes an accessibility style guide that includes advice such as:

  • increase the text size;
  • use a non-serif typeface;
  • increase the spacing between letters and between lines of text.

I’m still learning from my teams about what works for them as individuals, but I’ve quickly discovered that their needs differ greatly. Some fonts work well for one person, but not another. Some colour combinations aid reading for one, but make it considerably worse for another. So these bookmarklets are by no means universal. They can, and should, be copied, adapted, tested and improved for each individual.

By David A

Imagination of a poet - communication skills of an engineer. In no particular order, I like old cinemas, Japanese gardens, playing music, giraffes, technology, films, ducks, narrow Italian streets, and trying to write stuff that's interesting to people. I've been blogging irregularly since 2005 and have had some form of website since 1998.