User:Sudhiksha v/Highcontxt.js

// ==UserScript== // @name        Wikipedia Accessibility Enhancer for Visually Impaired // @namespace   http://tampermonkey.net/ // @version     1.0 // @description Enhance Wikipedia's accessibility for visually impaired users by increasing text size and applying high contrast mode. // @author      YourName // @match       *://*.wikipedia.org/* // @grant       none // @run-at      document-start // ==/UserScript==

(function {   'use strict';

// Function to enhance accessibility function enhanceAccessibility { // Increase font size document.body.style.fontSize = '18px';

// Apply high contrast 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 element 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); });