修复bug,调整css
This commit is contained in:
parent
e92ab14999
commit
1808c1932c
@ -1,8 +1,8 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @lastmodified 202203091635
|
// @lastmodified 202203110851
|
||||||
// @name 芜湖助手
|
// @name 芜湖助手
|
||||||
// @namespace WOOH
|
// @namespace WOOH
|
||||||
// @version 0.3.26
|
// @version 0.3.27
|
||||||
// @description 托恩,起飞!
|
// @description 托恩,起飞!
|
||||||
// @author Woohoo[2687093] Sabrina_Devil[2696209]
|
// @author Woohoo[2687093] Sabrina_Devil[2696209]
|
||||||
// @match https://www.torn.com/*
|
// @match https://www.torn.com/*
|
||||||
@ -23,13 +23,18 @@
|
|||||||
if (window.WHTRANS) return;
|
if (window.WHTRANS) return;
|
||||||
window.WHTRANS = true;
|
window.WHTRANS = true;
|
||||||
// 版本
|
// 版本
|
||||||
const version = '0.3.26';
|
const version = '0.3.27';
|
||||||
// 修改历史
|
// 修改历史
|
||||||
const changelist = [
|
const changelist = [
|
||||||
{
|
{
|
||||||
todo: true,
|
todo: true,
|
||||||
cont: `翻译:baza npc商店、imarket、imarket搜索结果`,
|
cont: `翻译:baza npc商店、imarket、imarket搜索结果`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ver: '0.3.27',
|
||||||
|
date: '20220311',
|
||||||
|
cont: `修复bug,调整css`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ver: '0.3.26',
|
ver: '0.3.26',
|
||||||
date: '20220309',
|
date: '20220309',
|
||||||
@ -4161,20 +4166,20 @@ border:0;
|
|||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
}
|
}
|
||||||
#wh-gSettings div{margin: 4px 0 0;}
|
#wh-gSettings div{margin: 4px 0 0;}
|
||||||
#wh-gSettings .wh-tip{display:none;}
|
#wh-gSettings .wh-tip{
|
||||||
#wh-gSettings div:hover .wh-tip{
|
display:none;
|
||||||
display: block;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: 0;
|
margin: 4px 0 0 -8px;
|
||||||
background: #f2f2f2;
|
background: #f2f2f2e6;
|
||||||
color: #333;
|
color: #333;
|
||||||
box-shadow: 0px 0px 3px 1px #25252573;
|
box-shadow: 0px 0px 3px 1px #25252573;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
max-width: 12em;
|
max-width: 14em;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
}
|
}
|
||||||
|
#wh-gSettings div:hover .wh-tip{display: block;}
|
||||||
#wh-gSettings .wh-tip:hover{display:none !important;}
|
#wh-gSettings .wh-tip:hover{display:none !important;}
|
||||||
#wh-trans-icon .wh-container{
|
#wh-trans-icon .wh-container{
|
||||||
margin:0;
|
margin:0;
|
||||||
@ -4961,7 +4966,7 @@ display:inline-block;
|
|||||||
add_btn_node.innerHTML = `<button style="color:white;">👉添加啤酒商品</button><p>如果当前商店没有啤酒这个商品可以提前显示以省去刷新步骤,增加抢酒成功率。</p><p id="wh-msg"></p>`;
|
add_btn_node.innerHTML = `<button style="color:white;">👉添加啤酒商品</button><p>如果当前商店没有啤酒这个商品可以提前显示以省去刷新步骤,增加抢酒成功率。</p><p id="wh-msg"></p>`;
|
||||||
add_btn_node.querySelector('button').addEventListener('click', e => {
|
add_btn_node.querySelector('button').addEventListener('click', e => {
|
||||||
const msg_node = add_btn_node.querySelector('#wh-msg');
|
const msg_node = add_btn_node.querySelector('#wh-msg');
|
||||||
if (node.querySelector('span.Alcohol')) {
|
if (node.querySelector('span[id="180-name"]')) {
|
||||||
msg_node.innerHTML = '❌ 页面已经有啤酒了';
|
msg_node.innerHTML = '❌ 页面已经有啤酒了';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user