Skip to content

Twitter stupid simple mental health keeper upper by Whey

Screenshot of Twitter stupid simple mental health keeper upper

Details

AuthorWhey

LicenseMIT

Categorytwitter

Created

Updated

Size3.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes the "For You" tab button (with mobile support) from Twitter

Notes

for twitter, removes the "For You" tab button while keeping the "Following" button if any case you need to click it again

it really is just a stupid simple mental health keeper upper for twitter

(with mobile support)

Source code

/* ==UserStyle==
@name           twitter stupid simple mental health keeper upper
@namespace      github.com/openstyles/stylus
@version        1.5.9
@description    its really just a stupid simple mental health keeper upper for twitter
@author         Whey!
==/UserStyle== */

@-moz-document url("https://twitter.com/home") {
    /* hides the "For You" button */
    div.r-cpa5s6.r-6b64d0.r-16y2uox.css-1dbjc4n:nth-child(1) > a{
        display: none;
    }
    
    /* the entire top bar gets shoved up by 50px */
    .r-1g40b8q.r-1gn8etr.r-gtdqiz.r-aqfbo4.css-1dbjc4n{
        top: -50px 
    }
    /* the entire top bar gets shoved up by 50px and also make the div clickthroughable (extra mobile support <3)*/
    .r-1gn8etr.r-zchlnj.r-1xcajam.r-1d2f490.css-1dbjc4n{
        top: -50px;
        pointer-events: none;
    }
    /* restore clicking-ability on the following tab*/
    div.r-cpa5s6.r-6b64d0.r-16y2uox.css-1dbjc4n:nth-child(2){
        pointer-events: auto;
    }
    
    /* these two are experimental stuff to make "Show N tweets" button clickable on mobile*/
    .r-1g40b8q.r-lrvibr.css-1dbjc4n{
        pointer-events: none;
    }
    .r-1g40b8q.r-lrvibr.css-1dbjc4n > *{
        pointer-events: auto;
    }
    
    /* lowers the "Home" text by 50px after the entire top bar gets shoved up by 50px */
    .r-1777fci.r-1pi2tsx.r-1wbh5a2.r-16y2uox.css-1dbjc4n > .r-1habvwh.css-1dbjc4n{
        top: 50px;
        max-width: 150px !important;
    }
    /* fixes mobile "Account Info" text after being manipulated for desktop's "Home" text*/
    /*.r-qvutc0.r-1vvnge1.r-bcqeeo.r-rjixqe.r-b88u0q.r-1inkyih.r-37j5jr.r-1nao33i.css-1hf3ou5.css-901oao.css-4rbku5*/.r-kemksi.r-1uusn97.r-6koalj.r-eqz5dr.r-16y2uox.r-1wbh5a2.r-zh076v.r-zmhzs6.r-ifefl9.r-14l27qf.r-cau0tz.r-7qv4eb.r-axxi2z.r-z2knda > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h2{
        margin-top: -50px;
        pointer-events: none;
    }
    /*messages ig*/
    .r-136ojw6.r-ipm5af.r-gtdqiz.css-1dbjc4n h2{
        margin-top: -64px
    }
    
    /* lowers the Your Profile Pic and The Twitter Logo by 50px after the entire top bar gets shoved up by 50px (extra mobile support  <3) */
     .r-lrvibr.r-1plcrui.r-bnwqim.r-dnmrzs.r-lwhw9o.r-16y2uox.r-yyyyoo.r-4qtqp9.r-kpws4y, .r-1gn8etr.r-zchlnj.r-1xcajam.r-1d2f490.css-1dbjc4n:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1)  > div:nth-of-type(1)  > div:nth-of-type(1)  > div:nth-of-type(1)  > div:nth-of-type(1)  > div:nth-of-type(1)  > div:nth-of-type(1)  > div:nth-of-type(1) {
        top: 50px;  
        pointer-events: auto;
    }
    /* moves the twitter logo to the side */
    .r-lrvibr.r-1plcrui.r-bnwqim.r-dnmrzs.r-lwhw9o.r-16y2uox.r-yyyyoo.r-4qtqp9.r-kpws4y{
        left: -60px;
    }
    
    /* fixes the feed being 50px above the new higher top bar */
    .r-417010.r-13qz1uu.css-1dbjc4n > .r-1wbh5a2.r-16y2uox.css-1dbjc4n{
        top: -50px
    }
}

Reviews

No reviews yet.