Skip to content

Whatsapp Web Tweaks by spider1996

Details

Authorspider1996

LicenseNo License

Categoryweb.whatsapp.com

Created

Updated

Size4.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Tweaks some Things from WhatsApp Web.

  • Fixed Contacts Width
  • Disable Profile Pictures
  • Hide Ads
  • Hide close Button

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Whatsapp Web Tweaks
@namespace      https://userstyles.world/user/spider1996
@author         Spider1996
@description    `Tweaks some Things from WhatsApp Web.`
@version        1.1.0
@license        CC0-1.0
@preprocessor   stylus
@var checkbox HideLeftMenu "Hide left Sidebar" 0
@var checkbox SmallerLeftMenu "Make the left Sidebar smaller" 0
@var checkbox FixedContactsWidthEnabled "Enable fixed Contacts Width"  0
@var number FixedContactsWidth "Fixed Contacts Width"  [500, 80, 1000, 1, "px"]
@var checkbox DisableProfilePicturesContacts "Disable Profile Pictures in Contacts"  0
@var checkbox HideAds "Hide WhatsApp for Windows Ads"  0
@var checkbox HideCloseButton "Hide Close Button on Second Screen Message"  0
==/UserStyle== */
@-moz-document domain("web.whatsapp.com") {

    /* Hide Left Menu */
    if HideLeftMenu {
        #app > div > div.two._aigs.x1n2onr6.x13vifvy.x17qophe.x78zum5.xh8yej3.x5yr21d.x6ikm8r.x10wlt62.x1iek97a.x1w3jsh0.xf8xn22.x168nmei.x13lgxp2.x5pf9jr.xo71vjh.x1g0ag68.xcgwb2z.x4afe7t.x1alahoq.x1j6awrg.x1m1drc7.x1n449xj.x162n7g1.xitxdhh.x134s4mn.x1s928wv.x1setqd9 > header, #app > div > div.two._aigs.x1n2onr6.x13vifvy.x17qophe.x78zum5.xh8yej3.x5yr21d.x6ikm8r.x10wlt62.x1iek97a.x1w3jsh0.xf8xn22.x168nmei.x13lgxp2.x5pf9jr.xo71vjh.x1g0ag68.xcgwb2z.x4afe7t.x1alahoq.x1j6awrg.x1m1drc7.x1n449xj.x162n7g1.xitxdhh.x134s4mn.x1s928wv.x1setqd9 > header > div > div > div > div > span > div > div.x1c4vz4f.xs83m0k.xdl72j9.x1g77sc7.xeuugli.x2lwn1j.xozqiw3.x1oa3qoh.x12fk4p8.xyorhqc > div:nth-child(2) > div > div > div > div > img
        {
            visibility: hidden;
            width: 0px;
            padding: 0px;
        }

        #app > div > div.two._aigs.x1n2onr6.x13vifvy.x17qophe.x78zum5.xh8yej3.x5yr21d.x6ikm8r.x10wlt62.x1iek97a.x1w3jsh0.xf8xn22.x168nmei.x13lgxp2.x5pf9jr.xo71vjh.x1g0ag68.xcgwb2z.x4afe7t.x1alahoq.x1j6awrg.x1m1drc7.x1n449xj.x162n7g1.xitxdhh.x134s4mn.x1s928wv.x1setqd9 > div.x10l6tqk.x13vifvy.x17qophe.x78zum5.xh8yej3.x5yr21d.x6ikm8r.x10wlt62.x47corl > div._aigw.false.xxpasqj.x1n2onr6.x5yr21d.x17dzmu4.x78zum5.xdt5ytf.x6ikm8r.x10wlt62.x1ks9yow {
            margin-left: 0px !important;
        }
    }


    /* Smaller Left Menu */
    if SmallerLeftMenu {
        #app > div > div.two._aigs.x1n2onr6.x13vifvy.x17qophe.x78zum5.xh8yej3.x5yr21d.x6ikm8r.x10wlt62.x1iek97a.x1w3jsh0.xf8xn22.x168nmei.x13lgxp2.x5pf9jr.xo71vjh.x1g0ag68.xcgwb2z.x4afe7t.x1alahoq.x1j6awrg.x1m1drc7.x1n449xj.x162n7g1.xitxdhh.x134s4mn.x1s928wv.x1setqd9 > header {
            padding: 0px;
            width: 25px;
        }
    }


    /* Fixed Contacts Width */
    if FixedContactsWidthEnabled {
        #app > div > div.two._aigs.x1n2onr6.x13vifvy.x17qophe.x78zum5.xh8yej3.x5yr21d.x6ikm8r.x10wlt62.x1iek97a.x1w3jsh0.xf8xn22.x168nmei.x13lgxp2.x5pf9jr.xo71vjh.x1g0ag68.xcgwb2z.x4afe7t.x1alahoq.x1j6awrg.x1m1drc7.x1n449xj.x162n7g1.xitxdhh.x134s4mn.x1s928wv.x1setqd9 > div._aigw.x1n2onr6.x5yr21d.x17dzmu4.x78zum5.xdt5ytf.xa1v5g2.x1plvlek.xryxfnj {
            width: FixedContactsWidth;
            flex: none;
        }
    }

    /* Hide Profile Pictures in Contacts */
    if DisableProfilePicturesContacts {
        #pane-side > div:nth-child(1) > div > div > * > div > div > div > div._ak8n {

            display: none !important;
        }
        #side {
            margin-left: 10px;
        }
    }

    /* Hide WhatsApp for Windows Ad */
    if HideAds {
        /* Ad in Start Screen*/
        #app > div > div.two._aigs > div._aigv._aigz > div > div > div._al_i {

            visibility: hidden;
        }
        #app > div > div.two._aigs > div._aigv._aigz > div > div > div._al_n > img {
            content: url("https://static.whatsapp.net/rsrc.php/v3/y7/r/DSxOAUB0raA.png")
        }
        /* Ad in Contacts List */
        #side > div:nth-child(5) > div > div > div {
            visibility: hidden;
        }
        /* Ad in Login Screen */
        #app > div > div.landing-wrapper > div.landing-window > div.landing-main > aside {
            visibility: hidden;
            height: 0px
        }
    }

    /* Hide Close Button on Second Screen Message */
    if HideCloseButton {
        #app > div > div:nth-child(2) > div > div > div > div > div.x78zum5.x8hhl5t.x13a6bvl.x13crsa5.x1mpkggp.x18d9i69.x1t2a60a.xp4054r.xuxw1ft > div > button.x889kno.x1a8lsjc.xbbxn1n.xxbr6pl.x1n2onr6.x1rg5ohu.xk50ysn.x1f6kntn.xyesn5m.x1z11no5.xjy5m1g.x1mnwbp6.x4pb5v6.x178xt8z.xm81vs4.xso031l.xy80clv.x13fuv20.xu3j5b3.x1q0q8m5.x26u7qi.x1hl8ikr.xfagghw.x9dyr19.x9lcvmn.x1jrnqrx.xiuubft.xa2vszz.xx5tys9.x5iuykv.xlwc9sh.x12bbwn8.xcjl5na.xnk0c1z.x4b7akx.x1ao7u56.xhsoqjx.x1kwr8ib.xuxw1ft.xv52azi {
            visibility: hidden;
        }
    }
}

Reviews

No reviews yet.