mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
100 lines
2.0 KiB
JavaScript
100 lines
2.0 KiB
JavaScript
// ==UserScript==
|
|
// @name 3DM论坛美化
|
|
// @version 1.0.1
|
|
// @author X.I.U
|
|
// @description 精简多余内容、样式优化
|
|
// @icon https://www.3dmgame.com/favicon.ico
|
|
// @match *://bbs.3dmgame.com/*
|
|
// @license GPL-3.0 License
|
|
// @run-at document-start
|
|
// @namespace https://greasyfork.org/scripts/413593
|
|
// ==/UserScript==
|
|
|
|
(function() {
|
|
let style_Add = document.createElement('style');
|
|
style_Add.innerHTML = `
|
|
[url=home.php?mod=space&uid=945662]@media[/url] (min-width:1366px) {
|
|
body {
|
|
background: none;
|
|
}
|
|
.wp {
|
|
width: 70%;
|
|
}
|
|
}
|
|
@media (max-width:650px) {
|
|
#postlist .favatar.pls .avatar img {
|
|
margin: 0 0 2px;
|
|
}
|
|
}
|
|
#toptb, .dnch_eo_pt,.dnch_eo_pr, .dnch_eo_f, .bml, dl.pil.cl, td.plc.plm .sign, .dnch_eo_pb,.dnch_eo_pt, .pls .side-star, .pls .side-group, div#h_nv, .res-footer-note, img[border="0"].zoom, .md_ctrl, .pls.favatar .xg1, .wp.a_h, .hd_table, .a_cn, .wp.a_f, .bm.lk, .a_pt {
|
|
display: none !important;
|
|
}
|
|
.pls .avatar img {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: none;
|
|
padding: 0;
|
|
border: 4px solid #ffffff
|
|
}
|
|
.avtm img {
|
|
width: 60px;
|
|
}
|
|
.pls .avatar {
|
|
text-align: center;
|
|
}
|
|
.t_fsz {
|
|
min-height: 60px;
|
|
}
|
|
.pls .pi {
|
|
text-align: center;
|
|
padding: 10px 0 0 0;
|
|
border: none;
|
|
overflow: visible;
|
|
}
|
|
.xw1 {
|
|
font-size: 15px;
|
|
}
|
|
textarea#fastpostmessage {
|
|
background: none !important;
|
|
}
|
|
.pcb img {
|
|
max-width: 60%;
|
|
margin: 4px;
|
|
}
|
|
.rate {
|
|
margin: 0;
|
|
}
|
|
.ratl td {
|
|
padding: 0px;
|
|
}
|
|
.xw1 {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
.xi2,.xi2 a,.xi3 a {
|
|
color: red;
|
|
}
|
|
.mtw {
|
|
margin-top: 0px !important;
|
|
}
|
|
#p_btn {
|
|
padding: 0px;
|
|
margin: 0 0 0 1px;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
}
|
|
#scbar {
|
|
border-top: 0;
|
|
border-bottom: 0;
|
|
}`;
|
|
if (document.head) {
|
|
document.head.appendChild(style_Add);
|
|
} else {
|
|
let timer = setInterval(function(){
|
|
if (document.head) {
|
|
document.head.appendChild(style_Add);
|
|
clearInterval(timer);
|
|
}
|
|
}, 1);
|
|
}
|
|
})(); |