WCAG-Brute-Force

WCAG-Brute-Force :wheelchair:

GitHub package.json dynamic GitHub package.json dynamic jQuery Gulp Cheerio Cheerio

Hotfix WCAG/AA patching to comply/pass, wave tool and Lighthouse tests. *Updated: September 9 2026* more updates as I recognize opportunities. **All this stuff HELPS SEO!!!**

#### Table of Contents

Overview Instructions WCAG Considerations AAA Notes Live Demos CSS JavaScript TODO License

Overview

This is a repo I (tim hunold) am making in CSS, jQuery 3.7.1 :poop: and VanillaJS (option) to help patch a site quickly for the purpose of 508 WCAG AA 2, 2.1, 2.2 compliance triage. It is unlikely to fix everything, but it can help a ton.

Please let me know if you’d like to contribute to this repo, this is based mainly on what I currently deal with, your experience may vary.

Remember this key phrase: “if we ship to design spec then who owns the _legal_ liability because engineering have raised compliance concerns” Your greatest enemy to compliance are design and marketing/product. They tend to choose “pretty” instead of the law and it has gotten my clients sued. Touch target sizes need to be WCAG 2.2 Standard (Legal Baseline): Interactive elements must be at least 24px × 24px, this is the most common design flaw.

Warning :bricks: :boom: :bug:

Sometimes users have JavaScript or ebven CSS disabled, this is going to be a problem for everything I made here but might be fine if your HTML is in order. I will try to make a better CSS file that needs no JavaScript, but nobody can guarantee what the user has on their side.

Instructions

Directly link the JavaScript files to your pages with <script> tags, it’ll do a lot, but make sure you review them to make sure you are not adding things you don’t need. Same for the CSS reset of sorts. Copy-paste as needed is the best way. If you have a static site you want to update en-masse, try using the Gulp task. It’ll scour your HTML files, and using jQuery, it will rewrite things in the DOM directly and then spit them out.

WCAG Considerations :children_crossing:

AAA notes :bug:

As I find more people seeking AAA compliance, I will probably create new directories to specifically tackle this because it will break designs and if you use a CMS, *you are probably going to fail* as they all add in bloat that makes it hard to predict.

Indemnification

I make no warranty that this will fix everything, but there is a lot it can help with.

My Live Demos :tada:

WCAG CSS reset Brute-force JS/jQ patcher TOC Creator from Headings Style Switcher

CSS

In CSS I am adding a lot of generic, obvious things, there are comments to what a line is and does, and I use plenty of advanced selectors and pseudo classes. I don’t always provide the actual use samples, but you should be able to understand from the comments.

What it does

We define and leverage root and simple variables. Also, there are font-handling methods that are often overlooked. It also calls out that links need to have underlines unless they get a visually dominant treatment like a CTA (call to action). We avoid animation/transiotions as they ar lost on screen readers and for those with flashing sensativity, they can cause seizures.

JavaScript

The JS directory has its own README file and the names tell you what they do.

Vanilla JavaScript has been added as well as jQuery, it is ubiquitous so it is easy to use. Most of what I do here are DOM attribute manipulations and those generally work from early versions on to the modern releases.

Gulp with NPM was added as well. You can point it to files and folders to rapidly fix compoinents or static files. Gulp.js comments explain it all. I know it’s ancient, but as a task runner, it works fast locally, better than GREP statements.

What it does

TODO: :construction:

License

FREEEEEEEEEE

More of me
Weaponized UX Dev.to Medium LinkedIn StackOverflow Insta I actually race