-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript
More file actions
33 lines (31 loc) · 1.34 KB
/
script
File metadata and controls
33 lines (31 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==UserScript==
// @name Fix Light/Dark Mode Formatting
// @namespace http://tampermonkey.net/
// @version 2025-08-17-0
// @description Removes Lightmode/Darkmode Background leftover from copy & pasting when on the other Mode
// @author gaylie
// @updateURL https://github.com/gaylie/CreativeClash-Fix-Dark-Formatting/raw/refs/heads/main/script
// @downloadURL https://github.com/gaylie/CreativeClash-Fix-Dark-Formatting/raw/refs/heads/main/script
// @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] + '"]';
$('.cPost_contentWrap '+style).css({"background-color": "", "color": ""});
}
});