NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Redflagdeals-DarkMode
// @namespace Violentmonkey Scripts
// @match *://forums.redflagdeals.com/*
// @match *://www.redflagdeals.com/*
// @license MIT
// @grant none
// @version 1.0
// @author Amrit Sandhu
// @description Dark theme for RedFlagDeals
// ==/UserScript==
(function () {
function injectScript(fn) {
const script = document.createElement("script");
script.textContent = `(${fn})();`;
document.documentElement.appendChild(script);
}
injectScript(() => {
// Load DarkReader dynamically
const darkReaderScript = document.createElement("script");
darkReaderScript.src = "https://cdn.jsdelivr.net/npm/darkreader@4.9.58/darkreader.js";
darkReaderScript.onload = () => {
DarkReader.setFetchMethod(window.fetch);
DarkReader.enable();
setTimeout(() => {
DarkReader.enable({
brightness: 100,
contrast: 90,
sepia: 10
}, {
css: `ul.thread-meta-small {background-color: transparent;}`,
});
}, 100);
};
document.head.appendChild(darkReaderScript);
});
})();