dotfiles

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

pseudo-tran.js (685B)


      1 // ==UserScript==
      2 // @name        Pseudo transparency
      3 // @description Allows you to set a background image 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 	background-image: url("https://stellar-nexus.ru/wall.png") !important;
     21 	background-repeat: no-repeat !important;
     22 	background-attachment: fixed !important;
     23 }
     24 			`;
     25 		}
     26 	});
     27 })();