Skip to content

Minimal X.com by airenelias

Details

Authorairenelias

LicenseNo License

Categoryuserstyles

Created

Updated

Size3.6 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes the sidebar on the right, makes the content slightly larger, makes images show uncropped, and tries to hide some ads.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Minimal X.com
@version      20231119.09.52
@namespace    userstyles.world/user/amkitakk
@description  Removes the sidebar on the right, makes the content slightly larger, makes images show uncropped, and tries to hide some ads.
@author       amkitakk, airenelias
@license      No License
==/UserStyle== */
@-moz-document domain("x.com") {
    /*hide right sidebar*/
    div[data-testid="sidebarColumn"] {
        display: none;
    }

    /* bigger content on feed */
    .r-1ye8kvj {
        max-width: 1200px !important;
    }

    /* center feed */
    .r-1niwhzg {
        justify-content: center !important;
    }

    /*hide recommended tweets & likes*/
    div[data-component-context="suggest_activity_tweet"],
    div[data-component-context="suggest_sc_tweet"],
    div[data-component-context="suggest_pyle_tweet"] {
        display: none;
    }

    /*uncropped single images*/
    [data-testid="tweetPhoto"] {
        margin: 0!important;
    }
    div[data-testid="primaryColumn"] article div[data-testid="tweet"] a[href$="/photo/1"]:only-child img {
        position: relative;
    }

    div[data-testid="primaryColumn"] article div[data-testid="tweet"] a[href$="/photo/1"]:only-child > div:first-child > div.r-u8s1d:nth-child(2) {
        position: relative;
    }
    div[data-testid="primaryColumn"] article div[data-testid="tweet"] a[href$="/photo/1"]:only-child > div:first-child > div[style]:first-child {
        display: none;
    }

    div[data-testid="primaryColumn"] article div[data-testid="tweet"] a[href$="/photo/1"]:only-child > div:first-child > div:nth-child(2) > div.r-u8s1d:first-child {
        position: relative;
    }

    /* hide cookie notice */
    .css-1dbjc4n.r-1awozwy.r-1m3jxhj.r-9hvr93.r-18u37iz.r-1d7fvdj.r-ymttw5.r-1f1sjgu.r-13qz1uu {
        display: none;
    }

    /* hide "see new tweets" */
    .css-18t94o4.css-1dbjc4n.r-s224ru.r-sdzlij.r-y3da5r.r-1777fci.r-1ny4l3l.r-ymttw5.r-oyd9sg.r-o7ynqc.r-6416eg {
        display: none;
    }

    /* hide views under tweet */
    .r-lrvibr.r-bztko3.r-1ny4l3l.r-bt1l66.r-1777fci.r-1loqt21.css-1dbjc4n.css-18t94o4.css-4rbku5 {
        display: none;
    }

    /* ------ the following code only applies to professional accounts ------ */
    /* hide tweet preview on analytics stats, I originally wanted to remove the big "promote" banner that hid some of the stats, but couldn't find a way to remove it without breaking necessary modals (like the delete tweet one) */
    .r-6gpygo.r-1fdo3w0.css-1dbjc4n {
        display: none;
    }

    /* hide sponsor button under tweets */
    .r-1ny4l3l.r-1adg3ll.r-qklmqi.r-j5o65s.css-1dbjc4n > .css-1dbjc4n > .r-6416eg.r-o7ynqc.r-i023vh.r-1qhn6m8.r-1udh08x.r-1ny4l3l.r-18u37iz.r-1loqt21.css-1dbjc4n > .r-1wbh5a2.r-16y2uox.r-eqz5dr.css-1dbjc4n > .r-1ny4l3l.r-1wbh5a2.r-16y2uox.css-1dbjc4n > .css-1dbjc4n > .r-18u37iz.css-1dbjc4n > .r-kzbkwu.r-1777fci.r-16y2uox.r-1iusvr4.css-1dbjc4n > div.css-1dbjc4n > .r-lrvibr.r-6416eg.r-o7ynqc.r-ymttw5.r-1ny4l3l.r-1qi8awa.r-2yi16.r-1s2bzr4.r-1loqt21.r-rs99b7.r-1phboty.r-sdzlij.r-1ets6dv.r-1niwhzg.css-1dbjc4n.css-18t94o4.css-4rbku5,
    .r-lrvibr.r-6416eg.r-o7ynqc.r-ymttw5.r-1ny4l3l.r-1qi8awa.r-2yi16.r-1s2bzr4.r-1loqt21.r-rs99b7.r-1phboty.r-sdzlij.r-1ets6dv.r-1niwhzg.css-1dbjc4n.css-18t94o4.css-4rbku5 {
        display: none;
    }
}

@-moz-document url-prefix("https://x.com/messages"),
url-prefix("http://x.com/messages"),
url-prefix("https://x.com/settings"),
url-prefix("http://x.com/settings") {
    /* wrong sized DMs & settings fix */
    .r-1ye8kvj {
        max-width: 600px !important;
    }
}

Reviews

No reviews yet.