// ==UserScript== // @name Dark Mode for dealabs.com // @namespace http://tampermonkey.net/ // @version 1.0 // @description Adds 'dark' class to the HTML tag on dealabs.com and replaces --textTranslucentPrimary variable // @author bNj // @match https://www.dealabs.com/* // @grant none // @run-at document-start // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Set background color and replace CSS variable, then add 'dark' class immediately document.documentElement.style.backgroundColor = '#000'; document.documentElement.style.setProperty('--textTranslucentPrimary', '#ddd'); document.documentElement.classList.add('dark'); })();