A simplistic tweak to make GitHub's website work (accessible) on older versions of WebKit / iOS.
GitHub website nowadays uses a modern theming system that is not supported by older versions of WebKit, mainly the ::backdrop
pseudo-element and @layer
at-rules. To mitigate this, this tweak dynamically inserts new stylesheets into the page needed to make the website more accessible, with the unsupported syntax removed, using JavaScript.
Reference: Safari Release Notes
- Improve how CSS files are declared
- Fix layout issues in the website?