User:Sudhiksha v/highcontrast.js

//High Contrast

(function {   'use strict';

// Function to enhance accessibility and readability

function enhanceAccessibility {

// Increase font size document.body.style.fontSize = '20px';

// Applying high contrast to the page

//Css with var var css = ` body, p, a, li, span, div { background-color: #4d4b4b !important; color: #fff !important; font-size: 18px !important; }           a { color: #FD6 !important; }           .mw-wiki-logo { filter: invert(90%); }       `;

// Create and append style elemenal relations var style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode(css)); document.head.appendChild(style);

// Remove background images to reduce visual clutter document.body.style.backgroundImage = 'none'; }

// Call the function when the page loads window.addEventListener('load', enhanceAccessibility); });