先准备好篡改猴


// ==UserScript==
// @name         OJ圆角
// @version      1.0
// @description  感谢UID为1032的HhF03提供代码支持,感谢!
// @author       HelloWorldForGao
// @match        *://oj.hetao101.com/*
// @match        *://match.hetao101.com/*
// @match        *://hydro.ac/*
// @match        *://laoda24.vip/*
// @icon         https://hydro.ac/favicon-32x32.png
// @grant        none
// @connect      *://oj.hetao101.com/*
// @connect      *://match.hetao101.com/*
// @connect      *://hydro.ac/*
// @connect      *://laoda24.vip/*
// ==/UserScript==
const a = document.createElement('style');
a.innerHTML = `
.section{
    border-radius: 10px;
}
.button, .dropdown .menu{
    border-radius: 10px;
}
body{
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco Display", "San Francisco", "Helvetica Neue", "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK", "Source Han Sans", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
}
.user-profile-badge{
    border-radius: 7px;
    box-shadow: 0px 1px 3px #656565;
}
data-tooltip, .data-tooltip, span.time.relative.tooltip{
    border-radius: 10px;
}
input.textbox, textarea.textbox, time relative tooltip drop-target drop-element-attached-bottom drop-element-attached-center drop-target-attached-top drop-target-attached-center{
    border-radius: 10px;
}
.search>input{
    border-radius: 10px 0px 0px 0px;
}
.search>button{
    border-radius: 0px  10px 0px 0px;
}
.bp4-tag.bp4-minimal:not([class*=bp4-intent-]){
    border-radius: 10px;
}
.problem__tag-link, .select-container.compact .select, .select.compact{
    border-radius: 10px;
}
pre[class*=language-], .autocomplete-wrapper{
    border-radius: 10px;
}
.section__table-header{
    border-radius: 10px 10px 0 0;
}
div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span{
    border-radius: 0 0 0 10px;
}
.contest-sidebar__bg {
    border-radius: 7px 7px 0 0;
}
blockquote {
    border-radius: 7px;
    box-shadow: 2px 3px 3px #aaa;
}
`;
document.head.append(a);

给代码原封不动地放篡改猴里

1 comments

  • @ 2024-11-2 20:06:56

    里面还有作者常用的几个oj,搬运出处是原插件站,原本由UID为1032的@编写

    • 1