I'm currently working on developing a Tampermonkey script to alter the theme of a website: which seems to be built on vBulletin.
This is the script I have been experimenting with:
// ==UserScript==
// @name vBulletin Forum Dark Mode
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Activate dark mode for vBulletin forum posts
// @author Me
// @match https://www.cfd-online.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
// Add custom CSS styles for dark mode
GM_addStyle(`
/* Dark mode styles */
.alt1, .alt2, .aalt1, .aalt2, table, tbody, tr, .thead, .tborder, #posts, .smallfont td {
background-color: #1e1e1e !important;
color: #dcdcdc !important;
}
a, .smallfont {
color: #81a2be !important;
}
a {
color: #81a2be !important;
}
/* Modify the background color of the post title section in each reply */
.tborder tbody tr, #posts{
background-color: #1e1e1e !important;
}
/* Include more styles here as necessary */
`);
})();
Despite my efforts, I have not been able to change the background color of the titles as illustrated with the red rectangles above. I am unable to locate the corresponding element to adjust its properties:
https://i.sstatic.net/JcS8D.jpg
In essence: How can I modify the background color of the highlighted elements in the screenshot to black?
Your assistance would be greatly valued.