Skip to content

hide x other for miyabi by miyabi381

Details

Authormiyabi381

Licensenone

Categoryhide x other for miyabi

Created

Updated

Size5.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

いろいろ

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         hide gay elon shit
@version      20240719.03.47
@namespace    https://userstyles.world/user/Machinebride
@description  got tired of seeing all of the blue stuff, hides grok, premium sigh up, highlights, and articles. D1 hater
@author       Machinebride
@license      none
==/UserStyle== */
/* ==UserStyle==
@name           twitter.com - 2023/10/17 7:19:20
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */
@-moz-document regexp("https://x\\.com.*"),
regexp("https://mobile\\.x\\.com.*") {
    /* おすすめユーザー絶対消すマン2:https://note.com/nozi/n/nbfd819c150be 
    ※使えない場合は:has()が対応していない場合なので、ブラウザを最新にしてください※


/* ■■■右カラム■■■ */
    /* おすすめユーザーとトレンドを消す */
    div[class^="css-175oi2r r-1867qdf r-1phboty r-rs99b7 r-1ifxtd0 r-1udh08x r-g6ijar r-74htps"]{
        display: none !important;
    }


    /* ホーム右下のDMを消す */
    div[data-testid="DMDrawer"] {
        display: none !important;
    }
    
/* ■■■TL■■■ */
    /* おすすめユーザーを消す */
   [aria-label^="タイムライン:"][aria-label$="さんのポスト"] [class="css-175oi2r r-1adg3ll r-1ny4l3l"]{
        display: none !important;
    }

    /* プッシュ通知をオンにするを消す */
    [data-testid="inlinePrompt"] {
        display: none !important;
    }

    /* TLのアナリティクス数表示を消す */
    [aria-label^="タイムライン:"]:not([aria-label$="会話"]) div[role="group"]:not([aria-roledescription="carousel"]) > div:has([d^="M8.75"][d$="-2z"]),
    div[role=group] > div:has(> a[href$=analytics]) {
        display: none !important;
    }

    /* 個ツイートのアナリティクス数表示を消す */
    [aria-label="タイムライン: 会話"] article [class="css-1dbjc4n r-1h1bdhe"] .r-s1qlax,
    [aria-label="タイムライン: 会話"] article span:has([data-testid="app-text-transition-container"]) {
        display: none !important;
    }


    /* その他のツイートを消す */
    [aria-label="タイムライン: 会話"] h2,
    [aria-label="タイムライン: 会話"] div:has(h2) ~ div {
        visibility: hidden !important;
        /* display: none だと「その他のツイート」が全部除去されるまでリプツリー上部のツイートが表示されないため*/
    }


    /* サークルツイートだと思われるツイートをわかりやすくする */
    /*noteに貼ると#○○○○○○の後ろに半角スペースが入ってしまうので面倒な書き方してます*/
    body:where([style^="background-color: "][style$="FFFFFF;"], [style="background-color: rgb(255, 255, 255);"]) [data-testid="cellInnerDiv"]:has(:where([data-testid="retweet"] .r-12c3ph5, [data-testid="retweet"].r-icoktb:not([aria-haspopup="menu"]))) {
        background-color: rgb(237, 255, 249) !important;
    }

    body:where([style^="background-color:"][style$="15202B;"], [style="background-color: rgb(21, 32, 43);"]) [data-testid="cellInnerDiv"]:has(:where([data-testid="retweet"] .r-12c3ph5, [data-testid="retweet"].r-icoktb:not([aria-haspopup="menu"]))) {
        background-color: rgb(39, 51, 64) !important;
    }

    body:where([style^="background-color: "][style$="000000;"], [style="background-color: rgb(0, 0, 0);"]) [data-testid="cellInnerDiv"]:has(:where([data-testid="retweet"] .r-12c3ph5, [data-testid="retweet"].r-icoktb:not([aria-haspopup="menu"]))) {
        background-color: rgb(21, 31, 43) !important;
    }


/* ■■■左カラム■■■ */
    /* 左カラム:話題を検索を消す */
    [role="banner"] a[aria-label="調べたいものを検索"] {
        display: none !important;
    }

    /* Twitter Premium を消す */
    [aria-label="プレミアム"],
    [role="link"][data-testid="editWithTwitterBlue"] {
        display: none !important;
    }
    /* コミュニティを消す */
    [aria-label="コミュニティ"],
    [role="menuitem"][data-testid="editWithTwitterBlue"] {
        display: none !important;
    }

    /* ツイート表示回数を消す */
    a[aria-label*="ポストアナリティクスを表示"] {
        display: none;
    }
    /*タイムラインの横幅*/
    .r-1ye8kvj {
        max-width: 800px !important;
        /*ここの数字で幅を調整*/
    }

    /*メッセージ(Dm)のセクション詳細横幅*/
    section[aria-label="セクションの詳細"] {
        max-width: 600px !important;
    }
}

@-moz-document regexp("https://x\\.com/search\\?q=.*&src=recent_search_clic."),
regexp("https://mobile\\.x\\.com/search\\?q=.*&src=recent_search_clic."),
regexp("https://x\\.com/search\\?q=.*&src=typed_query"),
regexp("https://mobile\\.x\\.com/search\\?q=.*\\&src=typed_query"),
regexp("https://x\\.com/i/display"),
regexp("https://mobile\\.x\\.com/i/display") {
    /* 検索結果の「話題のツイート」タブのおすすめユーザーを消す */
    /* コード1にまとめると検索結果のアカウントタブに影響が出るので分けてます */
    [aria-label="タイムライン: タイムラインを検索"] [data-testid="cellInnerDiv"]:has(h2):not(:has(svg[aria-hidden="true"])),
    [aria-label="タイムライン: タイムラインを検索"] [data-testid="cellInnerDiv"]:has([data-testid="UserCell"]),
    [aria-label="タイムライン: タイムラインを検索"] [data-testid="cellInnerDiv"]:has(a[href*="&f=user"]) {
        display: none !important;
    }
}

@-moz-document url-prefix("https://tweetdeck.twitter.com/") {
    /* ■■■おまけ■■■ */
    /* TweetDeckの新しいバージョンへの誘導を消す */
    [class="js-gryphon-beta-btn gryphon-beta-btn-container"] {
        display: none !important;
    }
}

Reviews

No reviews yet.