Skip to content

虎扑优化 by fuyuu

Screenshot of 虎扑优化

Details

Authorfuyuu

LicenseNo License

Categorybbs.hupu.com -> userstyles

Created

Updated

Size7.0 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           虎扑优化
@namespace      虎扑优化
@author         云浮鱼
@description    隐藏我不需要的部分,添加media query
@version        2023.02.11
@license        NO-REDISTRIBUTION
==/UserStyle== */
@-moz-document domain("bbs.hupu.com"),
domain("my.hupu.com") {

    /*==================================================================
                     帖子内部 - display:none 部分
====================================================================*/
    .test-img-list-model .list-font-item .font-item-Topic,
    .hp-pc-rc-SuperMenu-sub-menu,
    .post-user_post-user-comp-info-bottom__CqR2O,
    .post-user_post-user-comp-avatar-wrapper__Dg3nG .post-user_avatar-main__Qa5cS {
        display: none;
    }

    img.avatar {
        display: none;
    }

    .bbs-sl-web-topic-wrap {
        margin-top: 2px;
        margin-right: 16px;
        margin-bottom: 5px;
    }
    /*置顶,最热帖和右侧广告和标题*/
    .index_backToTop__rx3__,
    .post-operate_post-operate-comp-wrapper___odBI .post-operate-comp .todo-list.post-operate-comp-main-share,
    .hp-pc-rc-SuperMenu-sub-menu .rc-menu,
    .index_bbs-post-web-body-right-wrapper__WvQ4Q {
        display: none;
    }

    /*隐藏回帖点亮和浏览*/
    .index_bbs-post-web-main-title__MJTN5 .index_reply__GP3PX,
    .index_bbs-post-web-main-title__MJTN5 .index_light__M2WPs,
    .index_bbs-post-web-main-title__MJTN5 .index_read__7h1Dm {
        display: none;
    }

    /*隐藏这些回帖亮了*/
    .post-wrapper_bbs-post-wrapper__UdhwQ.post-wrapper_light__fi4Jz {
        display: none;
    }

    .index_bbs-post-web__2_mmZ .index_br__hJajv,
    .post-wrapper_bbs-post-wrapper__UdhwQ.post-wrapper_gray__HNv4A .post-wrapper_bbs-post-wrapper-title__TLQdd {
        border: none;
    }



    .thread-content-detail > p {
        margin-top: 0
    }

    .post-reply_post-reply__D1M4P .post-reply-list-content .m-c {
        width: unset;
    }

    .hp-pc-rc-TopMenu-banner,
    .bbs-sl-web-post-layout div:nth-child(3),
    .bbs-sl-web-post-layout div:nth-child(2) {
        display: none;
    }


    .hp-pc-rc-TopMenu-top {
        justify-content: start;
        padding-top: 2vh;
    }
    /*==================================================================
                     帖子内部 - css调整 部分
====================================================================*/
    .index_bbs-post-web-main__D_K6v .index_post-wrapper__IXkg_ {
        padding: 0 20px 20px 20px;
    }


    p[class*="image-wrapper"] {
        max-width: 8% !important;
    }

    .post-reply-list_post-reply-list-wrapper__o4_81 .post-reply-list .post-reply-list-container {
        display: unset;
    }


    .post-user_post-user-comp__3azJ2 {
        min-height: 0;
        display: block;
    }
    .post-content_bbs-post-content__cy7vN .post-content_main-post-info__qCbZu {
        margin: 0;
    }
    /*==================================================================
                     帖子外部 - display:none 部分
====================================================================*/
    /*顶部导航栏*/
    /*
    .hp-pc-rc-TopMenu {
        display: none;
    }
    */
    .hp-pc-rc-TopMenu {
        height: 20px;
        position: relative;
    }


    /*    .hp-pc-rc-TopMenu-top .hp-topLogin-info .hasLogin .hp-topNotificat {
        display: none;
    }*/
    .hp-pc-rc-TopMenu-top .mobileclientDown:nth-child(5),
    .hp-quickNav > .mobileclientDown:nth-child(3) > a,
    .hp-pc-rc-TopMenu-top .mobileWeb,
    .hp-pc-rc-TopMenu-top > .hp-quickNav > .line:nth-child(4),
    .hp-pc-rc-TopMenu-top > .hp-quickNav > .line:nth-child(2) {
        display: none;
    }

    /*私信*/
    /*
    html > :nth-child(2) > :nth-child(1) > :nth-child(1) > :nth-child(1) > :nth-child(1) > :nth-child(1) > :nth-child(1) > :nth-child(2) > :nth-child(1) > :nth-child(9) {
        display: none;
    }
    */
    /*前往发帖、传送至顶部和投诉的div隐藏*/
    .backToTop_2mZa6 {
        display: none;
    }

    .hu-pc-navigation-type,
    .hu-pc-navigation-my-focus-item {
        border-bottom: none;
    }

    .index_bbs-post-web-main-title__MJTN5 {
        background: transparent;
    }

    .tagselect-wrapper .tagselect-box > div {
        border-top: none;
    }
    /*==================================================================
           美观设置 - 添加media query - 屏幕宽度小于940px时
====================================================================*/
    @media only screen and (max-width: 940px) {


        .hp-pc-rc-SuperMenu-sub-menu,
        .index_bbs-post-web-container___cRHg {
            padding: 2vw 2vw 2vw 2vw;
        }

        /*帖子宽度缩小*/
        .cardInfoContainer,
        .bbs-index-web-middle,
        .personalWarp .prersonbody .prersonbodymiddle,
        .bbs-message-web-container .my-message,
        .bbs-sendPost-wrapper .tagselect-box,
        .bbs-sendPost-wrapper .editor-container,
        .bbs-sl-web-topic-wrap,
        .index_bbs-post-web-body-left-wrapper__O14II {
            width: 94vw;
            flex: none;
        }

        .hu-pc-navigation-wrap {
            display: none;
        }

        .post-content_main-post-info__qCbZu .thread-content-detail > p {
            margin-right: 0;
            text-align: justify;
        }

        /*标题部分*/
        .post-fix-title_post-fix-title-wrapper__7VZgk .post-fix-title-content-wrapper .main-c {
            width: 2px;
        }
        .post-fix-title_post-fix-title-wrapper__7VZgk .post-fix-title-title {
            flex: 0 0 64vw;
        }

        .bbs-sl-web-post-layout div:last-child {
            text-align: end;
        }


        .bbs-sendPost-wrapper .editor-container {
            margin: 0;
            margin-left: 3vw;
            margin-top: 3vh;
        }

        .postFooter .footerBox .footerLeft .autosaveTip {
            margin-left: 5vw;
        }

        .tagselect-wrapper .tagselect-box > div {
            margin-left: 2vw;
        }

        .bbs-sendPost-wrapper #hupu-editor-plus-toolbar {
            padding-left: 0;
        }

        .hupu-editor-plus-toolbar {
            justify-content: flex-start;
        }

        .hupu-editor-plus-toolbar > .group > div {
            margin: 0;
        }

        .bbs-post-web .newpost-rc-tab .rc-tabs-nav-wrap .rc-tabs-nav-list {
            margin-left: 5vw;
        }

        .postFooter .footerBox {
            width: unset;
        }

        .postFooter .footerBox .footerRight .submitVideo {
            margin-right: 5vw;
        }
        .bbs-sendPost-wrapper .tagselect-box {
            margin-left: 3vw;
        }

        .hupu-editor-plus-wrapper .editor-container {
            padding: 30px 100px 12px;
        }
    }
}
@-moz-document url-prefix("https://bbs.hupu.com/newpost") {
    .hp-pc-rc-TopMenu-top {
        display: none;
    }
}

Reviews

No reviews yet.