From 93857fbe3d5f277b05e623e8d65643766e4628fe Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 2 May 2021 11:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E8=84=9A=E6=9C=AC=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E8=BF=87=E6=97=A9=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 52pojie-Beautification.user.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/52pojie-Beautification.user.js b/52pojie-Beautification.user.js index a95761c..225ea8c 100644 --- a/52pojie-Beautification.user.js +++ b/52pojie-Beautification.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 吾爱破解论坛美化 -// @version 1.0.6 +// @version 1.0.7 // @author X.I.U // @description 精简多余内容、样式优化 // @match *://www.52pojie.cn/* @@ -65,6 +65,10 @@ let style, style_1 = `.bml {display:none !important;}`, style_2 = ` +#postlist .plc .t_f img, #postlist .plc .tattl img { + max-height: 500px !important; + width: auto !important; +} a[href="connect.php?mod=config"], #toptb, #navmenu, #nv_ph, #nv, #pt .y, #chart, #ft, #custominfo_pmenu, .bm.lk, .dnch_eo_pt, .dnch_eo_pr, .dnch_eo_f, dl.pil.cl, td.plc.plm .sign, .dnch_eo_pb, .dnch_eo_pt, .pls .side-star, .pls .side-group, .res-footer-note, .comiis_nav, .scbar_hot_td, .md_ctrl, .pls.favatar .xg1 { display:none !important; } @@ -145,6 +149,11 @@ textarea#fastpostmessage { style = style_2 if (menu_value('menu_rule')) style += style_1; style_Add.innerHTML = style; - document.head.appendChild(style_Add); + let timer = setInterval(function(){ + if (document.head) { + document.head.appendChild(style_Add); + clearInterval(timer); + } + }, 10); } })(); \ No newline at end of file