(() => { /* @author Aetherinox @script Discord Theme: Mars (Dark) @about Applies the discord theme "Mars" to your interface. adds a new snippet to chrome dev-tools - launch discord - open dev-tools with CTRL + SHIFT + I - Click `sources` tab - On left side `Pages`, click arrow, select `Snippets` - Right-click in empty box, select `Create new Snippet` - Add code below */ const style = document.createElement( 'style' ); style.textContent = ` .custom-theme-background { --custom-theme-background: linear-gradient( 170.82deg, var( --bg-gradient-mars-1 ) 14.61%, var( --bg-gradient-mars-2 ) 74.62% ); --custom-theme-primary-color: #895240; --custom-theme-secondary-color: #8f4343; --custom-theme-base-color-amount: 50%; --custom-theme-text-color-amount: 38%; --custom-theme-base-color-light-hsl: 15.294117647058806 100% 90%; --custom-theme-base-color-light: rgb(255, 217, 204); --custom-theme-text-color-light: rgb(77, 19, 0); --custom-theme-base-color-dark-hsl: 13.846153846153847 100% 5.098039215686274%; --custom-theme-base-color-dark: rgb(26, 6, 0); --custom-theme-text-color-dark: rgb(255, 236, 229); } `; document.head.appendChild( style ); /* Add class to HTML tag */ const html = document.documentElement; html.classList.add( 'custom-theme-background' ); /* Make theme persistent using MutationObserver */ new MutationObserver(() => { if ( !html.classList.contains( 'custom-theme-background' ) ) { html.classList.add( 'custom-theme-background' ); } } ).observe( html, { attributes: true, attributeFilter: [ 'class' ] } ); return '✅ Applied Discord Theme: Mars (Dark)'; } )();