Fix Light/Dark Mode Formatting

Removes Lightmode/Darkmode Background leftover from copy & pasting when on the other Mode

// ==UserScript==
// @name         Fix Light/Dark Mode Formatting
// @namespace    http://tampermonkey.net/
// @version      2025-02-28-0
// @description  Removes Lightmode/Darkmode Background leftover from copy & pasting when on the other Mode
// @author       gaylie
// @match        https://xcreativeclashx.net/*
// @exclude      https://xcreativeclashx.net/forums/topic/*/?do=edit*
// @exclude      https://xcreativeclashx.net/submissions/*/*/?do=form*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=xcreativeclashx.net
// @grant        none
// @run-at       document-start
// @license      GNU AGPLv3
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// ==/UserScript==

$(document).ready(function() {
    var colorcodes = {
        lightHex: "#c6dfe1",
        lightRGB: "rgb(198,223,225)",
        darkHex: "#2d3037",
        darkRGB: "rgb(45,48,55)",
        darkHexAU: "#30333b",
        darkRGBAU: "rgb(48,51,59)",
    }

    for (let key in colorcodes) {
        var style = '[style*="background-color:' + colorcodes[key] + '"]';
        $('p'+style+', span'+style+', ul'+style+', ol'+style).css({"background-color": "", "color": ""});
    }
});