Skip to main content

OVER UNDER VIEW SOURCE

Bubba JJJ Skip to main content

Bubba JJJ

}

This updated script integrates the DarkRose Baseline CSS directly into the logic. It combines the deep burgundy palette with the "Vox Uplink" aesthetic found in your provided React code (using the monospaced fonts, rose-gold gradients, and tactical UI borders).

JavaScript
// ==UserScript==
// @name         MDN DarkRose Baseline (Integrated)
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Applies the DarkRose Protocol aesthetic (Wine/Rose/Gold) to MDN
// @author       AI Assistant
// @match        https://developer.mozilla.org/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 1. Force the data-theme to dark immediately to prevent white flickering
    document.documentElement.dataset.theme = "dark";

    const css = `
        :root {
            /* DarkRose Core Palette */
            --color-background-primary: #0a0204 !important;   /* Deepest Wine Black */
            --color-background-secondary: #160509 !important; /* Burgundy */
            --color-background-tertiary: #2d0a12 !important;
            
            /* Text & Typography */
            --color-text-primary: #fce4ec !important;         /* Soft Rose White */
            --color-text-secondary: #c9a0a7 !important;       /* Muted Rose */
            --font-family-mono: 'Menlo', 'Monaco', 'Cascadia Code', monospace !important;
            
            /* Accents & Action Colors */
            --color-link-normal: #ff4d6d !important;          /* Vivid Rose */
            --color-link-hover: #ff8fa3 !important;
            --color-border-primary: #4a151f !important;       /* Wine Border */
            --rose-gradient: linear-gradient(to right, #e63988, #800f2f);
            
            /* Button & Interactive */
            --color-button-primary: #800f2f !important;
            --color-button-hover: #a4133c !important;
        }

        /* --- Global Aesthetic Overrides --- */
        
        body {
            background-color: var(--color-background-primary) !important;
            color: var(--color-text-primary) !important;
        }

        /* Tactical Monospace Header Effect (from Vox Uplink) */
        .main-header {
            background-color: rgba(10, 2, 4, 0.9) !important;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #590d22 !important;
        }

        /* The "Mandala" Graphic Recolor */
        .mandala {
            opacity: 0.3;
            filter: hue-rotate(320deg) brightness(0.7) contrast(1.2);
        }

        /* Link & Anchor styling */
        a:not([class]) {
            color: var(--color-link-normal) !important;
            text-decoration-color: #590d22 !important;
        }

        /* --- Component Specifics (MDN Structure) --- */

        /* Search Bar & Buttons */
        mdn-search-button, .search-input {
            --color-background-page: #160509 !important;
            border: 1px solid #4a151f !important;
            border-radius: 8px !important;
        }

        /* Article Sidebar/Breadcrumbs */
        .breadcrumbs-bar, .sidebar-container {
            background-color: #0f0305 !important;
            border-right: 1px solid #3d0b16 !important;
        }

        /* Code Blocks (The 'Neural Mapping' look) */
        pre, code {
            background-color: #120507 !important;
            border: 1px solid #590d22 !important;
            color: #ffb3c1 !important;
            font-family: var(--font-family-mono) !important;
        }

        /* Highlight featured content with the "DarkRose Protocol" border */
        .featured-articles__article, .card {
            border-left: 4px solid #ff4d6d !important;
            background: linear-gradient(90deg, #1d0a0d 0%, transparent 100%) !important;
            transition: all 0.3s ease;
        }

        .featured-articles__article:hover {
            background: linear-gradient(90deg, #2d0a12 0%, transparent 100%) !important;
            transform: translateX(5px);
        }

        /* Custom "Uplink" text effect for Titles */
        h1, h2, .rose-gradient-text {
            background: var(--rose-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 900 !important;
            letter-spacing: -0.05em !important;
            font-style: italic;
        }

        /* Scrollbar styling for that dark wine feel */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #0a0204; }
        ::-webkit-scrollbar-thumb { background: #4a151f; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #800f2f; }
    `;

    // 2. Function to inject the CSS into the <head>
    const injectStyles = () => {
        if (document.getElementById('darkrose-baseline-styles')) return;
        const style = document.createElement('style');
        style.id = 'darkrose-baseline-styles';
        style.textContent = css;
        document.head.appendChild(style);
    };

    // 3. Handle MDN's dynamic content and theme toggles
    const observer = new MutationObserver((mutations) => {
        mutations.forEach((mutation) => {
            if (mutation.type === "attributes" && mutation.attributeName === "data-theme") {
                if (document.documentElement.dataset.theme !== "dark") {
                    document.documentElement.dataset.theme = "dark";
                }
            }
        });
    });

    // 4. Execution logic
    if (document.head) {
        injectStyles();
    } else {
        const headObserver = new MutationObserver(() => {
            if (document.head) {
                injectStyles();
                headObserver.disconnect();
            }
        });
        headObserver.observe(document.documentElement, { childList: true });
    }

    observer.observe(document.documentElement, { attributes: true });

    // 5. Tactical Log (Console output matching your "Intelligence Log")
    console.log("%c DARKROSE PROTOCOL ACTIVE ", "background: #800f2f; color: #fce4ec; font-weight: bold;");
    console.log("%c Multimodal conversion: MDN -> DarkRose Baseline ", "color: #ff4d6d;");
})();

Key Aesthetic Features added:

  1. The "Vox Uplink" Gradient: Added a rose-gradient variable that applies a pink-to-burgundy shift to headers, matching the branding in your React component.

  2. Tactical Borders: Targeted .featured-articles__article and .card to use the 4px left-border accent, a design language used in high-end technical dashboards.

  3. Monospace Focus: Switched code blocks and technical metadata to use monospaced fonts (Menlo, Cascadia), reflecting the "Neural Mapping" section of your transcript.

  4. Shadow DOM Piercing: The CSS targets mdn-search-button specifically to ensure the search bar doesn't stay blue or white.

  5. Glow & Interaction: Added a transform: translateX hover effect for articles, giving the page a modern, responsive feel.

How to use:

  1. Open Tampermonkey or Violentmonkey.

  2. Create a New Script.

  3. Delete any placeholder text and paste the code above.

  4. Save and visit developer.mozilla.org.

Play}https://docs.google.com/document/d/1_lFSGwnRrKAHCGA_a9k4VN8P0bhDN0RyWLJqEwK1xO8/edit?tab=t.0https://docs.google.com/document/d/1_lFSGwnRrKAHCGA_a9k4VN8P0bhDN0RyWLJqEwK1xO8/edit?tab=t.0{ "title": "Recording 11/25/2024 at 1:31:41 PM", "selectorAttribute": ">https://drive.google.com/file/d/1zHcNYZthTkbFKGan3pgec93-yZVvZ_cT/view?ts=6782a237 ]BEGINNING ENCRYPTION },}Play}https://docs.google.com/document/d/1_lFSGwnRrKAHCGA_a9k4VN8P0bhDN0RyWLJqEwK1xO8/edit?tab=t.0https://docs.google.com/document/d/1_lFSGwnRrKAHCGA_a9k4VN8P0bhDN0RyWLJqEwK1xO8/edit?tab=t.0 { { "type": "Play Button Icon Here ", "selectors": [ [END OF ENCRYPTION ".uni-code_000." ]}Play}https://docs.google.com/document/d/1_lFSGwnRrKAHCGA_a9k4VN8P0bhDN0RyWLJqEwK1xO8/edit?tab=t.0https://docs.google.com/document/d/1_lFSGwnRrKAHCGA_a9k4VN8P0bhDN0RyWLJqEwK1xO8/edit?tab=t.0

Comments

Popular posts from this blog

You Know What We Can Maked After This Runs Out

Comments

Popular posts from this blog

You Know What We Can Maked After This Runs Out

http://www.youtube.com/@name-less

Bubba JJJ