diff --git a/gym_list.txt b/gym_list.txt index e69de29..8ba73b0 100644 --- a/gym_list.txt +++ b/gym_list.txt @@ -0,0 +1,35 @@ +Premier Fitness +Average Joes +Woody's Workout Club +Beach Bods +Silver Gym +Pour Femme +Davies Den +Global Gym + +Knuckle Heads +Pioneer Fitness +Anabolic Anomalies +Core +Racing Fitness +Complete Cardio +Legs, Bums and Tums +Deep Burn + +Apollo Gym +Gun Shop +Force Training +Cha Cha's +Atlas +Last Round +The Edge +George's + +Balboas Gym +Frontline Fitness +Gym 3000 +Mr. Isoyamas +Total Rebound +Elites +The Sports Science Lab +The Jail Gym diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index ce5d24c..7061c2f 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -404,7 +404,43 @@ 'course?': '课程吗?', 'The current progress will be canceled and you\'ll have to start all over again.': '目前的进度将被取消,你将需要重新开始。', }; + const gymList={ + 'Premier Fitness':'首席健身中心', + 'Average Joes':'普通的乔伊', + "Woody's Workout Club":'伍迪的健身俱乐部', + 'Beach Bods':'沙滩之恋', + 'Silver Gym':'银色健身房', + 'Pour Femme':'女士专用', + 'Davies Den':'戴维斯之家', + 'Global Gym':'全球健身房', + 'Knuckle Heads':'手指头', + 'Pioneer Fitness':'先锋健身', + 'Anabolic Anomalies':'合成代谢异常', + 'Core':'主干力量', + 'Racing Fitness':'竞速健身', + 'Complete Cardio':'完全有氧', + 'Legs, Bums and Tums':'腿部、臀部和牙龈', + 'Deep Burn':'深度烧伤', + + 'Apollo Gym':'阿波罗健身房', + 'Gun Shop':'枪店健身', + 'Force Training':'暴力训练', + "Cha Cha's":'茶茶的健身房', + 'Atlas':'阿特拉斯健身房', + 'Last Round':'最后一轮', + 'The Edge':'临界点', + "George's":'乔治健身房', + + 'Balboas Gym':'巴尔博斯健身房', + 'Frontline Fitness':'前线健身', + 'Gym 3000':'健身房3000', + 'Mr. Isoyamas':'伊索亚玛斯先生', + 'Total Rebound':'全面反弹', + 'Elites':'精英健身', + 'The Sports Science Lab':'运动科学实验室', + 'The Jail Gym':'监狱健身房', + }; /** * 边栏 @@ -632,11 +668,20 @@ // 快速链接中的区域 $('li a[class^="font-num-"] span').each((i, e) => { - if (cityDict[$(e).text()]) + // console.log($(e).prev().attr('class')==='cql-gym') + if (cityDict[$(e).text()]) { $(e).text(cityDict[$(e).text()]); - else if($(e).text().trim().split(' ')[0]==='Your') - if(propertyDict[$(e).text().trim().slice(5)]) - $(e).text('你的'+propertyDict[$(e).text().trim().slice(5)]); + } + else if($(e).prev().attr('class')==='cql-your-property') { + if (propertyDict[$(e).text().trim().slice(5)]) { + $(e).text('你的' + propertyDict[$(e).text().trim().slice(5)]); + } + } + else if($(e).prev().attr('class')==='cql-gym') { + if (gymList[$(e).text()]) { + $(e).text(gymList[$(e).text()]); + } + } }); // 快速链接中的分类选择