dotfiles

My collection of dotfiles
git clone git://git.stellar-nexus.ru/dotfiles
Log | Files | Refs

white-text.js.disabled (538B)


      1 // ==UserScript==
      2 // @name        White text
      3 // @description Allows you to set white text to all pages
      4 // @include     *
      5 // @run-at      document-start
      6 // @version     2
      7 // @author      Plat
      8 // ==/UserScript==
      9 
     10 (function IIFE() {
     11 	'use strict';
     12 
     13 	document.addEventListener('readystatechange', function onReadyStateChange() {
     14 		if (document.readyState == 'interactive') {
     15 			const style = document.createElement('style');
     16 			document.head.appendChild(style);
     17 			style.innerHTML = `
     18 
     19 body {
     20 	color: white !important;
     21 }
     22 			`;
     23 		}
     24 	});
     25 })();