Skip to content

Commit 0dea2e0

Browse files
committed
修复 偶尔出现主体宽度没有变化的问题
1 parent 13c9c10 commit 0dea2e0

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Zhiyoo-Beautification.user.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 智友邦论坛美化
3-
// @version 1.0.0
3+
// @version 1.0.1
44
// @author X.I.U
55
// @description 精简多余内容、宽屏显示
66
// @icon http://bbs.zhiyoo.net/favicon.ico
@@ -13,19 +13,24 @@
1313
(function() {
1414
var style_Add = document.createElement('style');
1515
style_Add.innerHTML = `
16+
/* 精简多于内容 */
1617
.forum_top,#main_sidebar,.drag,.nav,.tps,.bm.bml,.ct2 .sd,.mn div.box.cl:nth-of-type(3),#f_pst,.plc.plm,#diy_like1,#hm_qrcode_main,#ft,.po.bbd.reply_p,.ft_top.cl,div a[href="https://weibo.com/372458419"] {
17-
display: none;
18+
display: none !important;
1819
}
20+
/* 调整主体宽度(因为隐藏了右侧侧栏) */
1921
.ct2 .mn,#wp .forum-left,#thread_types1 {
20-
width: auto;
22+
width: auto !important;
2123
}
24+
/* 隐藏底部 */
2225
#footer {
2326
height: 0 !important;
2427
margin: 0 !important;
2528
}
29+
/* 调整帖子内,标题文字大小 */
2630
#thread_subject {
2731
font-size: 19px !important;
2832
}
33+
/* 调整帖子内,隐藏内容提示区域样式 */
2934
.locked a {
3035
color: #ffffff;
3136
border: 1px dashed #ffffff;
@@ -34,6 +39,7 @@
3439
font-size: 20px;
3540
background-color: #e24e72;
3641
}
42+
/* 调整帖子内,图片最大宽度(即一排可以放三个图片) */
3743
#postlist .pcb img {
3844
max-width: 30%;
3945
}`;

0 commit comments

Comments
 (0)