学术洛谷

洛谷学术模式

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name           学术洛谷
@namespace      USO Archive
@author         Hello8693
@description    洛谷学术模式
@version        1.2.1
@license        NO-REDISTRIBUTION
@preprocessor   uso
==/UserStyle== */
@-moz-document url-prefix("https://www.luogu.com.cn") {
.lg-index-content.am-center>div:first-child>div:first-child>div:first-child /* 隐藏首页的 "本站公告" */
  {
    display: none;
  }



  .lg-index-content.am-center>div:first-child+div+div>div:first-child>div:first-child+div+div /* 隐藏首页的"友情链接" */
  {
    display: none!important;
  }

  .lg-index-content.am-center>div:first-child+div+div>div:first-child+div>div:first-child+div /* 隐藏首页的讨论 */
  {
    display: none!important;
  }

  .lg-index-benben>div+div+div /* 隐藏首页的发送犇犇 */
  {
    display: none!important;
  }

  .lg-index-benben>div+div+div+ul /* 隐藏首页的犇犇内容 */
  {
    display: none!important;
  }

  .lg-punch /* 隐藏今日运势(包括签到) */
  {
    display: none!important;
  }

  div.feed /* 隐藏个人主页的犇犇 */
  {
    display: none!important;
  }

  div.feed+.spinner /* 隐藏犇犇加载中的 spinner */
  {
    display: none;
  }

  div.feed+.load-more,#feed-more /* 隐藏犇犇的"查看更多"按钮 */
  {
    display: none!important;
  }

  a[href="/discuss/lists"] /* 隐藏侧边栏的讨论按钮 */
  {
    display: none;
  }

  a[href$="/chat"] /* 隐藏右上角头像左边的私信按钮 */
  {
    display: none;
  }

  a[href$="/user/notification"] /* 隐藏右上角头像左边的通知按钮 */
  {
    display: none;
  }

  div[currentTemplate="UserNotification"] /* 隐藏通知页面 */
  {
    display: none!important;
  }

  div[currentTemplate="Chat"] /* 隐藏私信页面 */
  {
    display: none!important;
  }

    div[currentTemplate="ProblemShow"]>.side>div:first-child+div+div /* 隐藏题目界面的讨论 */
    {
        display: none!important;
    }
    #app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu > ul > li:nth-child(2),
    #app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu > ul > li:nth-child(6){
        display: none!important;
    }
    #app > div.main-container > div:nth-child(3) > div.footer > div.info:after {
        content: "增强学术模式 By Hello8693";
    }
    #app > div.main-container > div:nth-child(3) > div.footer > div.info > p > a:nth-child(7):after {
        content: "(不可用)";
    }
    #app > div.main-container > div.wrapper.wrapped.lfe-body.header-layout.tiny > div.container > div.link-container:after,
    #app > div.main-container > div.wrapper.wrapped.lfe-body.header-layout.normal > div.header > nav > span:nth-child(3):after{
        color: red;
        content: "[学术模式已开启]";
    }
    div[data-v-0a593618]{
        display:none;
    }
    #app > nav > div.popup-button > div > div > div > a:nth-child(5):after {
        content: "(不可用)";
    }
}

@-moz-document regexp("https://www.luogu.com.cn/user/.*#main"), regexp("https://www.luogu.com.cn/user/.*"), regexp("https://www.luogu.com.cn/user/.*#activity") {
    #app > div.main-container > main > div > section.side > div:nth-child(1) > a:nth-child(3) {
        display: none!important;
    }
    #app > div.main-container > main > div > div.full-container > section.main > div {
        display: none!important;
    }
    #app > div.main-container > main > div > div.full-container > section.side {
        width: 100%;
    }
}


@-moz-document url-prefix("https://www.luogu.com.cn/discuss/") {
#app /* 隐藏讨论页面 */
  {
    display: none!important;
  }

  body:before
  {
    margin-top: 100px;
    margin-left: 200px;
    font-size: xx-large;
    content: "503 Service Temporarily Unavailable";
  }
}

@-moz-document url-prefix("https://www.luogu.com.cn/ranking") {
#app /* 隐藏ranklist页面 */
  {
    display: none!important;
  }

  body:before
  {
    margin-top: 100px;
    margin-left: 200px;
    font-size: xx-large;
    content: "503 Service Temporarily Unavailable"; /*字可以自行更改*/
  }
}

@-moz-document url-prefix("https://www.luogu.com.cn/judgement") {
#app /* 隐藏陶片页面 */
  {
    display: none!important;
  }

  body:before
  {
    margin-top: 100px;
    margin-left: 200px;
    font-size: xx-large;
    content: "503 Service Temporarily Unavailable"; /*字可以自行更改*/
  }
}


@-moz-document url-prefix("https://www.luogu.com.cn/problem/solution") {
  #app /* 隐藏题解页面 */
  {
    display: none!important;
  }

  body:before
  {
    margin-top: 100px;
    margin-left: 200px;
    font-size: xx-large;
    content: "503 Service Temporarily Unavailable"; /*字可以自行更改*/
  }
}