更新股票页面
This commit is contained in:
parent
56bcda1938
commit
aeb79ec9d3
@ -1364,7 +1364,7 @@
|
|||||||
'Eat': '吃下',
|
'Eat': '吃下',
|
||||||
'Enlist': '车辆注册',
|
'Enlist': '车辆注册',
|
||||||
'Equip': '装备',
|
'Equip': '装备',
|
||||||
'Listen': '',
|
'Listen': '听',
|
||||||
'Open': '打开',
|
'Open': '打开',
|
||||||
'Propose': '求婚',
|
'Propose': '求婚',
|
||||||
'Return': '退还',
|
'Return': '退还',
|
||||||
@ -3396,9 +3396,8 @@
|
|||||||
const $loadouts_root = document.getElementById('loadoutsRoot');
|
const $loadouts_root = document.getElementById('loadoutsRoot');
|
||||||
if ($loadouts_root) {
|
if ($loadouts_root) {
|
||||||
initOB($loadouts_root, {subtree: true, attributes: true}, () => {
|
initOB($loadouts_root, {subtree: true, attributes: true}, () => {
|
||||||
$loadouts_root.querySelectorAll('div[class^="itemReview___"] div[class^="type___"]').forEach((e) => {
|
const el = $loadouts_root.querySelector('div[class^="itemReview___"] div[class^="type___"]');
|
||||||
if (itemPageDict[e.innerText.trim()]) e.innerText = itemPageDict[e.innerText.trim()];
|
if (itemPageDict[el.innerText.trim()]) el.innerText = itemPageDict[el.innerText.trim()];
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 手机选项按钮 物品名 物品详情
|
// 手机选项按钮 物品名 物品详情
|
||||||
@ -3423,8 +3422,6 @@
|
|||||||
translatedOnce.item_opt = count !== -1 ? count : -1;
|
translatedOnce.item_opt = count !== -1 ? count : -1;
|
||||||
}
|
}
|
||||||
// 物品名
|
// 物品名
|
||||||
// const expanded_dom = `ul.itemsList[aria-expanded="true"]`;
|
|
||||||
// const $active_tab = $(`${expanded_dom}`);
|
|
||||||
const $active_tab = document.querySelector('ul.itemsList[aria-expanded="true"]');
|
const $active_tab = document.querySelector('ul.itemsList[aria-expanded="true"]');
|
||||||
const $active_item_list = $active_tab.querySelectorAll('span.name');
|
const $active_item_list = $active_tab.querySelectorAll('span.name');
|
||||||
const itemCat = $active_tab.id;
|
const itemCat = $active_tab.id;
|
||||||
@ -3453,7 +3450,7 @@
|
|||||||
}
|
}
|
||||||
// 物品详情
|
// 物品详情
|
||||||
const $show_item_info = $active_tab.querySelector('li.show-item-info');
|
const $show_item_info = $active_tab.querySelector('li.show-item-info');
|
||||||
if ($show_item_info){
|
if ($show_item_info) {
|
||||||
const $item_info = $show_item_info.querySelector('span.info-msg');
|
const $item_info = $show_item_info.querySelector('span.info-msg');
|
||||||
if ($item_info) {
|
if ($item_info) {
|
||||||
// torntools 插件
|
// torntools 插件
|
||||||
@ -3490,7 +3487,7 @@
|
|||||||
}
|
}
|
||||||
// 下方的表格
|
// 下方的表格
|
||||||
const $info_table_title = $show_item_info.querySelectorAll('div.title');
|
const $info_table_title = $show_item_info.querySelectorAll('div.title');
|
||||||
if ($info_table_title) $info_table_title.forEach((e) => {
|
$info_table_title.forEach((e) => {
|
||||||
if (itemPageDict[e.innerText.trim()]) {
|
if (itemPageDict[e.innerText.trim()]) {
|
||||||
e.innerText = itemPageDict[e.innerText.trim()];
|
e.innerText = itemPageDict[e.innerText.trim()];
|
||||||
}
|
}
|
||||||
@ -3517,18 +3514,24 @@
|
|||||||
});
|
});
|
||||||
// 黑框
|
// 黑框
|
||||||
const $title_black = document.querySelector('div.title-black');
|
const $title_black = document.querySelector('div.title-black');
|
||||||
const $your_items = $('div.title-black span.m-hide');
|
if ($title_black) {
|
||||||
if (itemPageDict[$your_items.text().trim()]) $your_items.text(itemPageDict[$your_items.text().trim()]);
|
const $your_items = $title_black.querySelector('span.m-hide');
|
||||||
|
if (itemPageDict[$your_items.innerText.trim()]) {
|
||||||
|
$your_items.innerText = itemPageDict[$your_items.innerText.trim()];
|
||||||
|
}
|
||||||
// 黑框分类标题
|
// 黑框分类标题
|
||||||
initOB($('div.title-black span.items-name').get(0), {childList: true}, () => {
|
const $items_type_name = $title_black.querySelector('span.items-name');
|
||||||
const $cat = $('div.title-black span.items-name');
|
initOB($items_type_name, {childList: true}, () => {
|
||||||
if (itemPageDict[$cat.text().trim()]) $cat.text(itemPageDict[$cat.text().trim()]);
|
if (itemPageDict[$items_type_name.innerText.trim()]) {
|
||||||
})
|
$items_type_name.innerText = itemPageDict[$items_type_name.innerText.trim()];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
// 分类浮动文字
|
// 分类浮动文字
|
||||||
const $data_type = $('li#categoriesItem a');
|
const $data_type = document.querySelectorAll('li#categoriesItem a');
|
||||||
$data_type.each((i, e) => {
|
$data_type.forEach((e) => {
|
||||||
if (itemPageDict[$(e).attr('title')]) {
|
if (itemPageDict[e.getAttribute('title')]) {
|
||||||
$(e).attr('title', itemPageDict[$(e).attr('title')]);
|
e.setAttribute('title', itemPageDict[e.attributes.title.nodeValue]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@ -3664,6 +3667,12 @@
|
|||||||
$(e).text(stockDict[$(e).text().trim()]);
|
$(e).text(stockDict[$(e).text().trim()]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 历史购买show more
|
||||||
|
const $show_more = document.querySelector('li[class^="showMore___"] button');
|
||||||
|
if ($show_more && $show_more.innerText.trim().contains(/^Show [0-9]+ more$/)) {
|
||||||
|
const number = $show_more.innerText.trim().split(' ')[1];
|
||||||
|
$show_more.innerText = `显示另外${number}条`;
|
||||||
|
}
|
||||||
// 点开bb后
|
// 点开bb后
|
||||||
$('div#panel-dividendTab div[class^="message"] *').contents().each((i, e) => {
|
$('div#panel-dividendTab div[class^="message"] *').contents().each((i, e) => {
|
||||||
if (e.nodeType !== 3) return;
|
if (e.nodeType !== 3) return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user