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