学术洛谷

洛谷学术模式

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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"; /*字可以自行更改*/
  }
}