格式调整
This commit is contained in:
parent
2ecc87e4fb
commit
213ad75f97
@ -241,8 +241,8 @@
|
|||||||
'Financial': '金融',
|
'Financial': '金融',
|
||||||
'Administrative': '行政',
|
'Administrative': '行政',
|
||||||
'inactive-mode1': '地图上只显示你的帮派的和临近的地盘。',
|
'inactive-mode1': '地图上只显示你的帮派的和临近的地盘。',
|
||||||
'inactive-mode2':'启用全部地盘将下载完整地图,大约2.75mb。',
|
'inactive-mode2': '启用【全地盘视图】将下载完整地图,大约2.75mb。',
|
||||||
'active-mode':'全地盘视图已启用。',
|
'active-mode': '【全地盘视图】已启用。',
|
||||||
'ADMINISTRATIVE': '行政',
|
'ADMINISTRATIVE': '行政',
|
||||||
'City Hall': '市政厅',
|
'City Hall': '市政厅',
|
||||||
'Sort by:': '分类排序方式:',
|
'Sort by:': '分类排序方式:',
|
||||||
@ -411,11 +411,13 @@
|
|||||||
*/
|
*/
|
||||||
if (window.location.href.indexOf('city.php') >= 0) {
|
if (window.location.href.indexOf('city.php') >= 0) {
|
||||||
const cityOB = new MutationObserver(cityOBInit);
|
const cityOB = new MutationObserver(cityOBInit);
|
||||||
|
|
||||||
function cityOBInit() {
|
function cityOBInit() {
|
||||||
cityOB.disconnect();
|
cityOB.disconnect();
|
||||||
cityTrans();
|
cityTrans();
|
||||||
cityOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
|
cityOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
function cityTrans() {
|
function cityTrans() {
|
||||||
titleTrans();
|
titleTrans();
|
||||||
contentTitleLinksTrans();
|
contentTitleLinksTrans();
|
||||||
@ -482,11 +484,13 @@
|
|||||||
window.location.href.indexOf('personals.php') >= 0 || window.location.href.indexOf('bounties.php') >= 0 ||
|
window.location.href.indexOf('personals.php') >= 0 || window.location.href.indexOf('bounties.php') >= 0 ||
|
||||||
window.location.href.indexOf('comics.php') >= 0) {
|
window.location.href.indexOf('comics.php') >= 0) {
|
||||||
const newspaperOB = new MutationObserver(newspaperOBInit);
|
const newspaperOB = new MutationObserver(newspaperOBInit);
|
||||||
|
|
||||||
function newspaperOBInit() {
|
function newspaperOBInit() {
|
||||||
newspaperOB.disconnect();
|
newspaperOB.disconnect();
|
||||||
newspaperTrans();
|
newspaperTrans();
|
||||||
newspaperOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
|
newspaperOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
function newspaperTrans() {
|
function newspaperTrans() {
|
||||||
titleTrans();
|
titleTrans();
|
||||||
contentTitleLinksTrans();
|
contentTitleLinksTrans();
|
||||||
@ -508,7 +512,8 @@
|
|||||||
e.nodeValue = newspaperDict[e.nodeValue];
|
e.nodeValue = newspaperDict[e.nodeValue];
|
||||||
});
|
});
|
||||||
// 彩票信息
|
// 彩票信息
|
||||||
$('span[class^="winner"]').each((i,e)=>{});
|
$('span[class^="winner"]').each((i, e) => {
|
||||||
|
});
|
||||||
// 底部链接
|
// 底部链接
|
||||||
// Why not visit our sponsor?
|
// Why not visit our sponsor?
|
||||||
if (newspaperDict[$('div.link-left').text().trim()])
|
if (newspaperDict[$('div.link-left').text().trim()])
|
||||||
@ -519,6 +524,7 @@
|
|||||||
e.nodeValue = newspaperDict[e.nodeValue.trim()];
|
e.nodeValue = newspaperDict[e.nodeValue.trim()];
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
newspaperTrans();
|
newspaperTrans();
|
||||||
newspaperOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
|
newspaperOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user