Greasy Fork

学术洛谷

洛谷学术模式

目前为 2022-02-01 提交的版本。查看 最新版本

/* ==UserStyle==
@name           学术洛谷
@namespace      USO Archive
@author         Hello8693
@description    洛谷学术模式
@version        1.0.0
@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 /* 隐藏首页的 "本站公告" */
  {
    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;
  }
}

@-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: "cnm你这个sb是不是又想水帖 劳资鄙视你 快点给劳资滚回去做题";
  }
}

@-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: "cnm看你娘的咕值面板 你自己又进不去 你看看别人 一个个红名金钩 再看看你 一天到晚不学无术 吊儿郎当 我日你妈了个B"; /*字可以自行更改*/
  }
}

@-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: "你 TM 已经沦落到看陶片的地步了吗 看什么看 你想进去吗 真的是脑子有坑吧连陶片都要水那么久 题都做完了吗真的是"; /*字可以自行更改*/
  }
}

@-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: "看 NM 的题解"; /*字可以自行更改*/
  }
}