xitter pink

CSS plugin for twitter that turns it pink

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         xitter pink
// @namespace    https://twitter.com
// @version      1.0
// @description  CSS plugin for twitter that turns it pink
// @author       nora >.<
// @license MIT
// @match        https://twitter.com/*
// @match        https://x.com/*
// @match        https://mobile.twitter.com/*
// @icon         https://www.google.com/s2/favicons?domain=x.com
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement('style');
    style.textContent = `
        :root {
            color-scheme: light !important;
        }

        div.css-175oi2r.r-1h8ys4a,
        .css-175oi2r.r-14lw9ot.r-jumn1c.r-xd6kpl.r-gtdqiz.r-ipm5af.r-184en5c,
        .css-175oi2r.r-1awozwy.r-14lw9ot.r-18u37iz.r-1wtj0ep.r-13qz1uu.r-184en5c,
        .css-175oi2r.r-1awozwy.r-aqfbo4.r-14lw9ot.r-18u37iz.r-1h3ijdo.r-6gpygo.r-15ysp7h.r-1xcajam.r-ipm5af.r-136ojw6.r-1hycxz {
            background-color: #ffb6c1 !important;
        }

        [aria-label="Subscribe to Premium"] {
            display: none !important;
        }

        html, body, #react-root {
            background-color: #ff69b4 !important;
            color: #000000 !important;
        }

        [role="main"],
        [data-testid="primaryColumn"],
        article,
        [data-testid="tweet"],
        [data-testid="cellInnerDiv"] > div {
            background-color: #ffb6c1 !important;
            border-color: #ff69b4 !important;
            color: #000000 !important;
        }

        [data-testid="tweetButtonInline"],
        [data-testid="tweetButton"] {
            background-color: #ff69b4 !important;
            opacity: 1 !important;
        }

        svg, svg path {
            fill: #ff1493 !important;
        }
    `;

    
    if (document.head) {
        document.head.appendChild(style);
    } else {
        document.addEventListener('DOMContentLoaded', () => {
            document.head.appendChild(style);
        });
    }

})();