Skip to content

Commit e1ba022

Browse files
committed
新增 3DM美化
1 parent 6137610 commit e1ba022

2 files changed

Lines changed: 92 additions & 0 deletions

File tree

3dm-Beautification.user.js

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// ==UserScript==
2+
// @name 3DM论坛美化
3+
// @version 1.0.0
4+
// @author X.I.U
5+
// @description 精简多余内容
6+
// @icon https://bbs.3dmgame.com/favicon.ico
7+
// @match *://bbs.3dmgame.com/*
8+
// @license GPL-3.0 License
9+
// @run-at document-start
10+
// @namespace https://greasyfork.org/scripts/413593
11+
// ==/UserScript==
12+
13+
(function() {
14+
var style_Add = document.createElement('style');
15+
style_Add.innerHTML = `
16+
[url=home.php?mod=space&uid=945662]@media[/url] (min-width:1366px) {
17+
body {
18+
background: none;
19+
}
20+
.wp {
21+
width: 70%;
22+
}
23+
}
24+
@media (max-width:650px) {
25+
#postlist .favatar.pls .avatar img {
26+
margin: 0 0 2px;
27+
}
28+
}
29+
#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 {
30+
display: none !important;
31+
}
32+
.pls .avatar img {
33+
width: 100px;
34+
height: 100px;
35+
background: none;
36+
padding: 0;
37+
border: 4px solid #ffffff
38+
}
39+
.avtm img {
40+
width: 60px;
41+
}
42+
.pls .avatar {
43+
text-align: center;
44+
}
45+
.t_fsz {
46+
min-height: 60px;
47+
}
48+
.pls .pi {
49+
text-align: center;
50+
padding: 10px 0 0 0;
51+
border: none;
52+
overflow: visible;
53+
}
54+
.xw1 {
55+
font-size: 15px;
56+
}
57+
textarea#fastpostmessage {
58+
background: none !important;
59+
}
60+
.pcb img {
61+
max-width: 60%;
62+
margin: 4px;
63+
}
64+
.rate {
65+
margin: 0;
66+
}
67+
.ratl td {
68+
padding: 0px;
69+
}
70+
.xw1 {
71+
font-size: 12px;
72+
font-weight: 500;
73+
}
74+
.xi2,.xi2 a,.xi3 a {
75+
color: red;
76+
}
77+
.mtw {
78+
margin-top: 0px !important;
79+
}
80+
#p_btn {
81+
padding: 0px;
82+
margin: 0 0 0 1px;
83+
display: flex;
84+
justify-content: space-evenly;
85+
}
86+
#scbar {
87+
border-top: 0;
88+
border-bottom: 0;
89+
}`;
90+
document.head.appendChild(style_Add);
91+
})();

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
| **知乎增强** | 默认显示高清原图 | **[「安装」](https://greasyfork.org/scripts/412217)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/ZhihuEnhanced-HD-Pictures.user.js)** |
2020
| **知乎增强** | 置顶显示发布时间/编辑时间 | **[「安装」](https://greasyfork.org/scripts/412216)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/ZhihuEnhanced-Time.user.js)** |
2121
| **Github 增强** | 高速下载 \[Clone、Release、Raw、Code(ZIP)\] | **[「安装」](https://greasyfork.org/scripts/412245)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/GithubEnhanced-High-Speed-Download.user.js)** |
22+
| **3DM论坛美化** | 精简多余内容 | **[「安装」](https://greasyfork.org/scripts/413593)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Beautification.user.js)** |
2223
| **3DM论坛增强** | 自动回复、自动无缝翻页、清理置顶帖子 | **[「安装」](https://greasyfork.org/scripts/412890)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/3dm-Enhanced.user.js)** |
2324
| **智友邦论坛美化** | 精简多余内容、宽屏显示 | **[「安装」](https://greasyfork.org/scripts/412361)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhiyoo-Beautification.user.js)** |
2425
| **智友邦论坛增强** | 自动签到、自动回复、自动无缝翻页、清理置顶帖子等 | **[「安装」](https://greasyfork.org/scripts/412362)** | **[「安装」](https://cdn.jsdelivr.net/gh/XIU2/UserScript@master/Zhiyoo-Enhanced.user.js)** |

0 commit comments

Comments
 (0)