From 1808c1932c893d2573d914edb8e6a34295ec8dcf Mon Sep 17 00:00:00 2001 From: woohoo Date: Fri, 11 Mar 2022 08:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torn-trans-zhcn.user.js | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 6c02b5a..12b3629 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -1,8 +1,8 @@ // ==UserScript== -// @lastmodified 202203091635 +// @lastmodified 202203110851 // @name 芜湖助手 // @namespace WOOH -// @version 0.3.26 +// @version 0.3.27 // @description 托恩,起飞! // @author Woohoo[2687093] Sabrina_Devil[2696209] // @match https://www.torn.com/* @@ -23,13 +23,18 @@ if (window.WHTRANS) return; window.WHTRANS = true; // 版本 - const version = '0.3.26'; + const version = '0.3.27'; // 修改历史 const changelist = [ { todo: true, cont: `翻译:baza npc商店、imarket、imarket搜索结果`, }, + { + ver: '0.3.27', + date: '20220311', + cont: `修复bug,调整css`, + }, { ver: '0.3.26', date: '20220309', @@ -4161,20 +4166,20 @@ border:0; cursor:pointer; } #wh-gSettings div{margin: 4px 0 0;} -#wh-gSettings .wh-tip{display:none;} -#wh-gSettings div:hover .wh-tip{ -display: block; +#wh-gSettings .wh-tip{ +display:none; position: absolute; -margin: 0; -background: #f2f2f2; +margin: 4px 0 0 -8px; +background: #f2f2f2e6; color: #333; box-shadow: 0px 0px 3px 1px #25252573; border-radius: 2px; padding: 6px; -max-width: 12em; -font-size: 12px; +max-width: 14em; +font-size: 13px; line-height: 14px; } +#wh-gSettings div:hover .wh-tip{display: block;} #wh-gSettings .wh-tip:hover{display:none !important;} #wh-trans-icon .wh-container{ margin:0; @@ -4961,7 +4966,7 @@ display:inline-block; add_btn_node.innerHTML = `

如果当前商店没有啤酒这个商品可以提前显示以省去刷新步骤,增加抢酒成功率。

`; add_btn_node.querySelector('button').addEventListener('click', e => { const msg_node = add_btn_node.querySelector('#wh-msg'); - if (node.querySelector('span.Alcohol')) { + if (node.querySelector('span[id="180-name"]')) { msg_node.innerHTML = '❌ 页面已经有啤酒了'; return; }