Size
875 B
Version
1.0.1
Created
Jan 18, 2026
Updated
10 days ago
1// ==UserScript==
2// @name MyAbandonware Dark Mode
3// @description A new extension
4// @version 1.0.1
5// @match https://*.myabandonware.com/*
6// @icon https://www.myabandonware.com/favicon-32x32.png
7// ==/UserScript==
8(function() {
9 'use strict';
10
11 function init() {
12 console.log('Changing background to dark grey');
13
14 // Apply dark grey background to body
15 document.body.style.backgroundColor = '#2a2a2a';
16 document.body.style.backgroundImage = 'none';
17
18 // Also apply to html element to ensure full coverage
19 document.documentElement.style.backgroundColor = '#2a2a2a';
20 document.documentElement.style.backgroundImage = 'none';
21 }
22
23 // Run when body is ready
24 if (document.body) {
25 init();
26 } else {
27 document.addEventListener('DOMContentLoaded', init);
28 }
29})();