11// ==UserScript==
22// @name 吾爱破解论坛美化
3- // @version 1.0.8
3+ // @version 1.0.0
44// @author X.I.U
55// @description 精简多余内容、样式优化
66// @match *://www.52pojie.cn/*
3838 }
3939 for ( let i = 0 ; i < menu_ALL . length ; i ++ ) { // 循环注册脚本菜单
4040 menu_ALL [ i ] [ 3 ] = GM_getValue ( menu_ALL [ i ] [ 0 ] ) ;
41- menu_ID [ i ] = GM_registerMenuCommand ( `[ ${ menu_ALL [ i ] [ 3 ] ?'√ ' :'×' } ] ${ menu_ALL [ i ] [ 1 ] } ` , function ( ) { menu_switch ( `${ menu_ALL [ i ] [ 3 ] } ` , `${ menu_ALL [ i ] [ 0 ] } ` , `${ menu_ALL [ i ] [ 2 ] } ` ) } ) ;
41+ menu_ID [ i ] = GM_registerMenuCommand ( `${ menu_ALL [ i ] [ 3 ] ?'✅ ' :'❎' } ${ menu_ALL [ i ] [ 1 ] } ` , function ( ) { menu_switch ( `${ menu_ALL [ i ] [ 3 ] } ` , `${ menu_ALL [ i ] [ 0 ] } ` , `${ menu_ALL [ i ] [ 2 ] } ` ) } ) ;
4242 }
43- menu_ID [ menu_ID . length ] = GM_registerMenuCommand ( '反馈 & 建议' , function ( ) { window . GM_openInTab ( 'https://github.com/XIU2/UserScript#xiu2userscript' , { active : true , insert : true , setParent : true } ) ; window . GM_openInTab ( 'https://greasyfork.org/zh-CN/scripts/412681/feedback' , { active : true , insert : true , setParent : true } ) ; } ) ;
43+ menu_ID [ menu_ID . length ] = GM_registerMenuCommand ( '💬 反馈 & 建议' , function ( ) { window . GM_openInTab ( 'https://github.com/XIU2/UserScript#xiu2userscript' , { active : true , insert : true , setParent : true } ) ; window . GM_openInTab ( 'https://greasyfork.org/zh-CN/scripts/412681/feedback' , { active : true , insert : true , setParent : true } ) ; } ) ;
4444 }
4545
4646 // 菜单开关
@@ -81,8 +81,6 @@ a[href="connect.php?mod=config"], #toptb, #navmenu, #nv_ph, #nv, #pt .y, #chart,
8181 margin:0 0 2px;
8282 }
8383 .pls .avatar img {
84- width:100px;
85- height:100px;
8684 background:none;
8785 padding:0;
8886 border:4px solid #ffffff
@@ -91,9 +89,6 @@ a[href="connect.php?mod=config"], #toptb, #navmenu, #nv_ph, #nv, #pt .y, #chart,
9189 width:60px;
9290 }
9391}
94- .pls .avatar {
95- text-align:center;
96- }
9792.t_fsz {
9893 min-height:60px;
9994}
@@ -144,14 +139,26 @@ textarea#fastpostmessage {
144139 border-bottom:0;
145140 background:0;
146141}
142+
143+ .pls .o li {
144+ margin: 0 !important;;
145+ height: 20px !important;;
146+ line-height: 20px !important;;
147+ }
148+
149+ /* 左侧层主信息 */
150+ .pls .avatar img {width: auto !important;max-height: 100px !important;}
151+ .pls .avatar {text-align:center !important; margin: 0 !important;}
152+ .pls .tns {padding: 0 !important;}
153+
147154/* 链接点击后颜色变浅(灰白色) */
148155.tl th a:visited, .tl td.fn a:visited {
149156 color: #aaa;
150- }` ,
151- style_Add = document . createElement ( 'style' ) ;
157+ }` ;
158+ // style_Add = document.createElement('style');
152159 style = style_2
153160 if ( menu_value ( 'menu_rule' ) ) style += style_1 ;
154- style_Add . innerHTML = style ;
161+ /* style_Add.innerHTML = style;
155162 if (document.head) {
156163 document.head.appendChild(style_Add);
157164 } else {
@@ -161,6 +168,7 @@ textarea#fastpostmessage {
161168 clearInterval(timer);
162169 }
163170 }, 1);
164- }
171+ }*/
172+ document . lastChild . appendChild ( document . createElement ( "style" ) ) . textContent = style ;
165173 }
166174} ) ( ) ;
0 commit comments