Dark Mode for GBT via *Monkey-Script
Implementation of Dark Mode for GBT via *Monkey Script:
// ==UserScript==
// @name Dark Mode for GBT
// @description Makes GBT dark...
// @namespace _pc
// @version 1
// @author me
// @icon https://www.gayboystube.com/favicon.ico
// @match *://www.gayboystube.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
if (self == top) {
let CSS = document.createElement('style')
CSS.innerText = `* {background:#202124!important; border-color:#3c4043!important; color-scheme:dark!important; color:#bdc1c6!important; transition: unset!important}`
CSS.classList.add('CSS')
document.head?.appendChild(CSS)
}
window.addEventListener('load', _ => {
(async _ => {
let DarkMode = document.createElement('style')
DarkMode.innerText = `
html {color-scheme: dark!important; color: #000; background: #fff;}
html * {color-scheme: light!important; text-shadow: 0 0 .1px}
html body {background: none!important}
html, html :is(img, image, embed, video, canvas, option, object, :fullscreen:not(iframe), iframe:not(:fullscreen)),
html body>* [style*="url("]:not([style*="cursor:"]):not([type="text"]) {filter: invert(1)hue-rotate(180deg)!important}`
DarkMode.classList.add('DarkMode')
})()
});