Merge pull request #6 from xkeyC/main

格式化 json,内容去重
This commit is contained in:
CxJuice 2023-10-05 00:11:17 +08:00 committed by GitHub
commit 9d6bdfe7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 5144 additions and 5311 deletions

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"games": "游戏",
"apps": "应用",
"pledge": "承诺",
@ -153,7 +151,6 @@
"terms of services": "服务条款",
"status": "状态",
"roberts space industries": "罗伯茨太空工业",
"overview": "概览",
"billing &": "账单&",
"subscription": "订阅",
@ -183,9 +180,5 @@
"first name (required)": "前名称(必填)",
"last name (required)": "后名称(必填)",
"my account": "我的账户"
}
}
}

View File

@ -14,7 +14,6 @@
"replacement": "请求拉取"
}
],
"dict": {
"games": "游戏",
"apps": "应用",
@ -25,7 +24,6 @@
"account": "账户",
"settings": "设置",
"my hangar": "我的机库",
"concierge": "礼宾",
"redeem a code": "兑换代码",
"sign out": "登出",
"subscriber": "订阅",
@ -130,7 +128,6 @@
"transmissions": "公告",
"pledge store": "承诺商店",
"citizencon": "公民控",
"download": "下载",
"utilities": "工具",
"help": "帮助",
"press": "新闻",
@ -142,7 +139,6 @@
"do not sell or share my personal information": "不要出售或共享个人信息",
"manage my consent": "管理我的许可",
"game packages": "游戏资格包",
"more info": "更多信息",
"enlist today": "现在立即入伍",
"join the": "加入",
"universe": "宇宙",
@ -150,9 +146,7 @@
"adventure": "冒险",
"the game": "游戏",
"terms of services": "服务条款",
"status": "状态",
"roberts space industries": "罗伯茨太空工业",
"welcome to the": "欢迎来到",
"chairman's club": "礼宾俱乐部",
"fideles quoad decedemus": "",
@ -191,7 +185,6 @@
"closed": "已关闭",
"customer service form": "客户服务列表",
"please choose your issue below": "请在下表选择你的问题",
"tell us more about your problem": "告诉我们你的问题",
"attachments": "附件说明",
"- optional": "- 选填",
"uploaded files": "上传文件",
@ -202,7 +195,6 @@
"please enter the details of your request. a member of our support staff will respond as soon as possible.": "请告诉我们你的请求的细节。一位客服会尽快回复你。",
"order id": "订单 ID",
"this can be found on the billing/subscription tab on your account": "你可以在 账单&订阅 选项中找到它",
"tell us more about your problem": "告诉我们你的问题",
"concierge": "礼宾",
"view all": "查看更多",
"level & rewards:": "等级&奖励:",
@ -358,8 +350,5 @@
"welcome": "欢迎光临",
"your level": "当前等级",
"customer service": "客户服务"
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"upgrades": "升"
}
}

View File

@ -14,7 +14,6 @@
"replacement": "请求拉取"
}
],
"dict": {
"games": "游戏",
"apps": "应用",
@ -152,9 +151,6 @@
"terms of services": "服务条款",
"status": "状态",
"roberts space industries": "罗伯茨太空工业",
"members": "成员",
"reset": "重置",
"names:": "名称:",
@ -175,8 +171,5 @@
"only display users with chosen membership": "只显示选择的会籍中包含的用户",
"member": "成员",
"loading members": "加载成员中"
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"games": "游戏",
"apps": "应用",
"pledge": "承诺",
@ -153,7 +151,6 @@
"terms of services": "服务条款",
"status": "状态",
"roberts space industries": "罗伯茨太空工业",
"overview": "概览",
"billing &": "账单&",
"subscription": "订阅",
@ -183,9 +180,5 @@
"first name (required)": "前名称(必填)",
"last name (required)": "后名称(必填)",
"my account": "我的账户"
}
}
}

View File

@ -14,7 +14,6 @@
"replacement": "请求拉取"
}
],
"dict": {
"games": "游戏",
"apps": "应用",
@ -25,7 +24,6 @@
"account": "账户",
"settings": "设置",
"my hangar": "我的机库",
"concierge": "礼宾",
"redeem a code": "兑换代码",
"sign out": "登出",
"subscriber": "订阅",
@ -130,7 +128,6 @@
"transmissions": "公告",
"pledge store": "承诺商店",
"citizencon": "公民控",
"download": "下载",
"utilities": "工具",
"help": "帮助",
"press": "新闻",
@ -142,7 +139,6 @@
"do not sell or share my personal information": "不要出售或共享个人信息",
"manage my consent": "管理我的许可",
"game packages": "游戏资格包",
"more info": "更多信息",
"enlist today": "现在立即入伍",
"join the": "加入",
"universe": "宇宙",
@ -150,9 +146,7 @@
"adventure": "冒险",
"the game": "游戏",
"terms of services": "服务条款",
"status": "状态",
"roberts space industries": "罗伯茨太空工业",
"welcome to the": "欢迎来到",
"chairman's club": "礼宾俱乐部",
"fideles quoad decedemus": "",
@ -191,7 +185,6 @@
"closed": "已关闭",
"customer service form": "客户服务列表",
"please choose your issue below": "请在下表选择你的问题",
"tell us more about your problem": "告诉我们你的问题",
"attachments": "附件说明",
"- optional": "- 选填",
"uploaded files": "上传文件",
@ -202,7 +195,6 @@
"please enter the details of your request. a member of our support staff will respond as soon as possible.": "请告诉我们你的请求的细节。一位客服会尽快回复你。",
"order id": "订单 ID",
"this can be found on the billing/subscription tab on your account": "你可以在 账单&订阅 选项中找到它",
"tell us more about your problem": "告诉我们你的问题",
"concierge": "礼宾",
"view all": "查看更多",
"level & rewards:": "等级&奖励:",
@ -358,8 +350,5 @@
"welcome": "欢迎光临",
"your level": "当前等级",
"customer service": "客户服务"
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"upgrades": "升"
}
}

View File

@ -14,7 +14,6 @@
"replacement": "请求拉取"
}
],
"dict": {
"games": "游戏",
"apps": "应用",
@ -152,9 +151,6 @@
"terms of services": "服务条款",
"status": "状态",
"roberts space industries": "罗伯茨太空工业",
"members": "成员",
"reset": "重置",
"names:": "名称:",
@ -175,8 +171,5 @@
"only display users with chosen membership": "只显示选择的会籍中包含的用户",
"member": "成员",
"loading members": "加载成员中"
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"100i": "100i",
"125a": "125a",
"135c": "135c",
@ -261,7 +259,6 @@
"fury": "狂怒",
"fury mx": "狂怒 MX",
"storm": "风暴",
"6 months": "6月",
"3 months": "3月",
"72 months": "72月",
@ -287,7 +284,6 @@
"12 months insurance": "12月保险",
"120 months insurance": "120月保险",
"insurance": "保险时长",
"- medium fighter": " - 中型战斗机",
"- heavy fighter": " - 重型战斗机",
"- corvette": " - 护卫舰",
@ -340,8 +336,6 @@
"- boarding": " - 登舰",
"- assault": " - 袭击",
"- refinery": " - 精炼",
"medium fighter": "中型战斗机",
"heavy fighter": "重型战斗机",
"corvette": "护卫舰",
@ -410,8 +404,6 @@
"exploration / recon": "探索 / 侦察",
"starter/touring": "新手船 / 旅游",
"starter / pathfinder": "新手船 / 探路者",
"aegis": "圣盾",
"anvil": "铁砧",
"c.o.": "联合外域",
@ -423,7 +415,6 @@
"banu": "巴努",
"vanduul": "剜度",
"tumbril": "盾博尔",
"origin jumpworks": "起源跃动",
"crusader industries": "十字军工业",
"roberts space industries": "罗伯茨太空工业",
@ -442,7 +433,6 @@
"musashi industrial and starflight concern": "武藏工业与星航株式会社",
"tumbril land systems": "盾博尔地面系统",
"vanduul clans": "剜度氏族",
"- origin jumpworks": " - 起源跃动",
"- crusader industries": " - 十字军工业",
"- roberts space industries": " - 罗伯茨太空工业",
@ -461,7 +451,6 @@
"- musashi industrial and starflight concern": " - 武藏工业与星航株式会社",
"- tumbril land systems": " - 盾博尔地面系统",
"- vanduul clans": " - 剜度氏族",
"2951 auspicious red paint pack": "2951吉祥红涂装包",
"2952 auspicious red paint pack": "2952吉祥红涂装包",
"2953 auspicious red paint pack": "2953吉祥红涂装包",
@ -789,7 +778,6 @@
"valkyrie - splinter paint": "女武神 - 碎片涂装",
"avenger - splinter paint": "复仇者 - 碎片涂装",
"vanguard series - solar winds paint": "先锋 - 太阳风涂装",
"games": "游戏",
"apps": "应用",
"pledge": "承诺",
@ -1312,7 +1300,6 @@
"the game": "游戏",
"terms of services": "服务条款",
"sort by:": "排序由:",
"new player guide": "新手指南",
"dive in to our companion guide to make your first steps easier.": "研究我们的新手指南,让你先人一步。",
"lunar new year 2023": "农历新年2023",
@ -1353,9 +1340,6 @@
"bound to your account": "绑定在您的账户上",
"and non-giftable.": "且无法赠送。",
"your ledger was credited with": "您的账户收到了",
"other ways to find help": "其他求助方法",
"learn the basics!": "了解基础知识!",
"how to play guide": "游玩指南",
@ -1515,7 +1499,6 @@
"23 years ago": "23 年前",
"24 years ago": "24 年前",
"25 years ago": "25 年前",
"last activity": "最后一次活动",
"solved": "解决",
"any": "任意",
@ -1543,8 +1526,6 @@
"or drop files here": "或将文件放在此处",
"recent viewed articles": "最近查看的文章",
"add to conversation": "添加到对话中",
"view and manage your account on the public test universe servers.": "浏览和管理你的公共测试宇宙账号",
"the public test universe is a testing server that allow you to try and play an unreleased star citizen patch before it is released. in order to play on the ptu, you will need first to copy your account over using the button below.": "公共测试宇宙是一个测试服务器允许你在星际公民补丁发布前尝试和玩耍。为了在PTU上游戏你需要先用下面的按钮把你的账户复制过来。",
"how does it work?": "这是如何运作的?",
@ -1798,8 +1779,6 @@
"1 year": "1 年",
"authenticate": "验证",
"code": "代码",
"you don't own a 100i": "你还未拥有一艘 100i",
"you don't own a 125a": "你还未拥有一艘 125a",
"you don't own a 135c": "你还未拥有一艘 135c",
@ -2070,18 +2049,18 @@
"1200 utc - temporarily disabling character repair to protect accounts while recovery is in-progress.": "1200 UTC - 暂时在修复过程中禁用角色修复,以保护账号",
"1245 utc - environment is accepting new players.": "1245 UTC - 环境正在接受新玩家",
"resolved": "已解决",
"we're coming to you in 2023!": "我们将在2023年来到你身边!" ,
"we hope to see you there!": "我们希望在那见到你!" ,
"as we eagerly await the return of a live and in-person citizencon, we couldn't let any more of 2023 pass without the chance to spend time with all of you again. this year, the bar citizen world tour continues with members of our teams visiting your local events, with various goodies and loot in tow (including banu cubes... and post alien week, we'll have a new bar citizen goodie to give away, stay tuned for details)!!": "当我们急切地等待可以现场参加开发者亲临的CitizenCon回归时我们不能再失去2023年和大家在一起的机会了。今年《Bar Citizen》世界巡游将继续进行我们的团队成员将带着各种好东西和战利品前往你们当地的活动包括巴努方块......在外星周之后我们将有一个新的《Bar Citizen》礼物送出敬请关注细节!" ,
"we've talked to many of the community bar citizen organizers out there who have been planning events around the globe, and we're excited to share an update on some of the initial events we'll be attending, including some starting very soon!": "我们已与全球各地许多策划Bar Citizen的公民组织者交流我们很高兴可以分享一些初步活动的最新动向包括一些很快就开始的" ,
"for more information on gaining access to a particular event, or to speak to the community organizer directly, you can browse the events on": "如果您想了解更多关于某项活动的信息,或者想直接与社区组织者交流,你可以浏览它们在" ,
"shanghai, china": "中国,上海" ,
"june 23rd, 2023 (time tbd)": "六月 23日 (北京时间)" ,
"super brand mall,": "正大广场," ,
"168 lujiazui xi lu,": "陆家嘴西路168号" ,
"pudong new area, shanghai": "上海市浦东新区" ,
"it's important to note that this initial list is just the beginning. we wanted to get this information out there to spread the word so we could see as many of you as possible for the immediate events. we're still actively chatting with community organizers, so expect more events/locations to be announced in the weeks to come.": "值得注意的是,这份名单只是一个开始。我们传出这些信息,是为了我们能在近期的活动中看到尽可能多的人。我们仍在积极地与社区组织者交谈,所以预计在未来几周内会有更多的活动和地点公布。" ,
"we're also still eager to hear about the events you may be planning in your local area. if you're working on something and you think it would be a great fit for us to visit, let us know!": "我们仍然关心你会在当地举办的活动,如果你在组织一些很适合我们前往的活动,请一定让我们知道" ,
"we're coming to you in 2023!": "我们将在2023年来到你身边!",
"we hope to see you there!": "我们希望在那见到你!",
"as we eagerly await the return of a live and in-person citizencon, we couldn't let any more of 2023 pass without the chance to spend time with all of you again. this year, the bar citizen world tour continues with members of our teams visiting your local events, with various goodies and loot in tow (including banu cubes... and post alien week, we'll have a new bar citizen goodie to give away, stay tuned for details)!!": "当我们急切地等待可以现场参加开发者亲临的CitizenCon回归时我们不能再失去2023年和大家在一起的机会了。今年《Bar Citizen》世界巡游将继续进行我们的团队成员将带着各种好东西和战利品前往你们当地的活动包括巴努方块......在外星周之后我们将有一个新的《Bar Citizen》礼物送出敬请关注细节!",
"we've talked to many of the community bar citizen organizers out there who have been planning events around the globe, and we're excited to share an update on some of the initial events we'll be attending, including some starting very soon!": "我们已与全球各地许多策划Bar Citizen的公民组织者交流我们很高兴可以分享一些初步活动的最新动向包括一些很快就开始的",
"for more information on gaining access to a particular event, or to speak to the community organizer directly, you can browse the events on": "如果您想了解更多关于某项活动的信息,或者想直接与社区组织者交流,你可以浏览它们在",
"shanghai, china": "中国,上海",
"june 23rd, 2023 (time tbd)": "六月 23日 (北京时间)",
"super brand mall,": "正大广场,",
"168 lujiazui xi lu,": "陆家嘴西路168号",
"pudong new area, shanghai": "上海市浦东新区",
"it's important to note that this initial list is just the beginning. we wanted to get this information out there to spread the word so we could see as many of you as possible for the immediate events. we're still actively chatting with community organizers, so expect more events/locations to be announced in the weeks to come.": "值得注意的是,这份名单只是一个开始。我们传出这些信息,是为了我们能在近期的活动中看到尽可能多的人。我们仍在积极地与社区组织者交谈,所以预计在未来几周内会有更多的活动和地点公布。",
"we're also still eager to hear about the events you may be planning in your local area. if you're working on something and you think it would be a great fit for us to visit, let us know!": "我们仍然关心你会在当地举办的活动,如果你在组织一些很适合我们前往的活动,请一定让我们知道",
"*all times listed below are local time": "*所有的时间表均为当地时间",
"alipay": "支付宝",
"pay with alipay": "使用支付宝付款",
@ -2122,5 +2101,4 @@
"you must": "你需要",
"to upvote!": "后进行投票!"
}
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"weapons": "武器",
"firing": "开火",
"idle": "待机",
@ -94,8 +92,7 @@
"temp to ir": "红外信号",
"range": "距离",
"full charge in": "完全充能时间",
"cooling/s":"冷却/s",
"cooling/s": "冷却/s",
"suldrath": "苏得拉斯",
"sukoran": "斯科拉",
"shield banu": "巴努护盾",
@ -266,7 +263,6 @@
"c-912 ballistic cannon": "C-912",
"sf7b ballistic gatling": "SF7B",
"sf7e laser cannon": "SF7E",
"100i": "100i",
"125a": "125a",
"135c": "135c",
@ -502,8 +498,6 @@
"fury": "狂怒",
"fury mx": "狂怒 MX",
"storm": "风暴",
"standalone ship - 100i": "独立船 - 100i",
"standalone ship - 125a": "独立船 - 125a",
"standalone ship - 135c": "独立船 - 135c",
@ -734,8 +728,6 @@
"standalone ship - polaris": "独立船 - 北极星",
"standalone ship - argo mole": "独立船 - 南船座 鼹鼠",
"standalone ship - ptv buggy": "独立船 - PTV 越野小车",
"aegis": "圣盾",
"anvil": "铁砧",
"c.o.": "联合外域",
@ -745,7 +737,6 @@
"gatac": "盖塔克",
"origin": "起源",
"banu": "巴努",
"origin jumpworks": "起源跃动",
"crusader industries": "十字军工业",
"roberts space industries": "罗伯茨太空工业",
@ -763,7 +754,6 @@
"Musashi industrial and starflight concern": "武藏工业与星航株式会社",
"tumbril land systems": "盾博尔地面系统",
"vanduul clans": "剜度氏族",
"voyage": "航程",
"wanderer": "流浪者",
"wayfare": "旅行",
@ -966,8 +956,6 @@
"'bullet' ii": "子弹 II",
"'chaos' iii": "混乱 III",
"'dragon' iv": "飞龙 IV",
"yield": "产出",
"daily prices (purchase)": "每日价格 (买入)",
"daily prices (sell)": "每日价格 (卖出)",
@ -1060,8 +1048,6 @@
"max. yield*": "最大收益",
"uex Rating™": "UEX评级™",
"variation": "变化",
"agricium": "艾格瑞金属",
"agri": "艾格瑞",
"agricultural supplies": "农业物资",
@ -1127,7 +1113,6 @@
"tara": "塔兰导电石",
"titanium (ore)": "钛(矿石)",
"tungsten (ore)": "钨(矿石)",
"stanton": "斯坦顿",
"arcCorp": "弧光",
"cellin": "赛琳",
@ -1146,7 +1131,6 @@
"euterpe": "欧忒耳佩",
"aaron halo": "亚伦环带",
"delamar": "德拉玛",
"hdms-anderson": "HDMS-安德森站",
"hdms-norgaard": "HDMS-诺加德站",
"hdms-ackley": "HDMS-阿克莱站",
@ -1231,8 +1215,6 @@
"new babbage mtps": "新巴贝奇-MTPS",
"orims - orison ms": "奥里森-MS",
"orison tdd": "奥里森-TDD",
"fleet": "舰队",
"ships": "飞船",
"equipment": "装备",
@ -1484,7 +1466,6 @@
"privacy policy": "隐私条款",
"create your free account": "创建你的免费账户",
"you own this item or all items contained in it": "你已拥有此项目或此项目中的所有物品",
"2951 auspicious red paint pack": "2951吉祥红涂装包",
"2952 auspicious red paint pack": "2952吉祥红涂装包",
"2953 auspicious red paint pack": "2953吉祥红涂装包",
@ -1920,9 +1901,6 @@
"switch to table view": "切换为表格视图",
"switch to cards view": "切换为卡片视图",
"this is only available for a limited amount of time or access is otherwise limited (this is not necessarily official information, just experience)": "该飞船仅在特定时间在商店销售或购买受到限制。(注意:以上并非官方确切消息,是由社区观察总结得出的结论。)",
"your personal account": "我的个人账户"
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"100i": "100i",
"125a": "125a",
"135c": "135c",
@ -258,7 +256,6 @@
"anvil ballista snowblind": "铁砧 弩炮 雪盲版",
"nova": "新星",
"genesis": "创世纪",
"6 months": "6月",
"3 months": "3月",
"72 months": "72月",
@ -284,7 +281,6 @@
"12 months insurance": "12月保险",
"120 months insurance": "120月保险",
"insurance": "保险时长",
"- medium fighter": " - 中型战斗机",
"- heavy fighter": " - 重型战斗机",
"- corvette": " - 护卫舰",
@ -337,8 +333,6 @@
"- boarding": " - 登舰",
"- assault": " - 袭击",
"- refinery": " - 精炼",
"medium fighter": "中型战斗机",
"heavy fighter": "重型战斗机",
"corvette": "护卫舰",
@ -407,8 +401,6 @@
"exploration / recon": "探索 / 侦察",
"starter/touring": "新手船 / 旅游",
"starter / pathfinder": "新手船 / 探路者",
"aegis": "圣盾",
"anvil": "铁砧",
"c.o.": "联合外域",
@ -420,7 +412,6 @@
"banu": "巴努",
"vanduul": "剜度",
"tumbril": "盾博尔",
"origin jumpworks": "起源跃动",
"crusader industries": "十字军工业",
"roberts space industries": "罗伯茨太空工业",
@ -439,7 +430,6 @@
"musashi industrial and starflight concern": "武藏工业与星航株式会社",
"tumbril land systems": "盾博尔地面系统",
"vanduul clans": "剜度氏族",
"- origin jumpworks": " - 起源跃动",
"- crusader industries": " - 十字军工业",
"- roberts space industries": " - 罗伯茨太空工业",
@ -458,7 +448,6 @@
"- musashi industrial and starflight concern": " - 武藏工业与星航株式会社",
"- tumbril land systems": " - 盾博尔地面系统",
"- vanduul clans": " - 剜度氏族",
"2951 auspicious red paint pack": "2951吉祥红涂装包",
"2952 auspicious red paint pack": "2952吉祥红涂装包",
"2953 auspicious red paint pack": "2953吉祥红涂装包",
@ -786,7 +775,6 @@
"valkyrie - splinter paint": "女武神 - 碎片涂装",
"avenger - splinter paint": "复仇者 - 碎片涂装",
"vanguard series - solar winds paint": "先锋 - 太阳风涂装",
"games": "游戏",
"apps": "应用",
"pledge": "承诺",
@ -1299,7 +1287,6 @@
"the game": "游戏",
"terms of services": "服务条款",
"sort by:": "排序由:",
"new player guide": "新手指南",
"dive in to our companion guide to make your first steps easier.": "研究我们的新手指南,让你先人一步。",
"lunar new year 2023": "农历新年2023",
@ -1340,9 +1327,6 @@
"bound to your account": "绑定在您的账户上",
"and non-giftable.": "且无法赠送。",
"your ledger was credited with": "您的账户收到了",
"other ways to find help": "其他求助方法",
"learn the basics!": "了解基础知识!",
"how to play guide": "游玩指南",
@ -1502,7 +1486,6 @@
"23 years ago": "23 年前",
"24 years ago": "24 年前",
"25 years ago": "25 年前",
"last activity": "最后一次活动",
"solved": "解决",
"any": "任意",
@ -1530,8 +1513,6 @@
"or drop files here": "或将文件放在此处",
"recent viewed articles": "最近查看的文章",
"add to conversation": "添加到对话中",
"view and manage your account on the public test universe servers.": "浏览和管理你的公共测试宇宙账号",
"the public test universe is a testing server that allow you to try and play an unreleased star citizen patch before it is released. in order to play on the ptu, you will need first to copy your account over using the button below.": "公共测试宇宙是一个测试服务器允许你在星际公民补丁发布前尝试和玩耍。为了在PTU上游戏你需要先用下面的按钮把你的账户复制过来。",
"how does it work?": "这是如何运作的?",
@ -1785,11 +1766,5 @@
"1 year": "1 年",
"authenticate": "验证",
"code": "代码"
}
}

View File

@ -15,19 +15,19 @@
// @require https://cdn.bootcdn.net/ajax/libs/timeago.js/4.0.2/timeago.full.min.js
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js
// ==/UserScript==
window.addEventListener('load', function(event) {
window.addEventListener('load', function (event) {
// 当页面加载完成时,执行我们的脚本
myScript();
});
// 监听页面中的鼠标点击事件
document.addEventListener('click', function(event) {
document.addEventListener('click', function (event) {
// 当发生鼠标点击事件时,执行我们的脚本
myScript();
});
function myScript() {
(function() {
(function () {
'use strict';
const SUPPORT_LANG = ["zh-CN", "ja"];
@ -40,10 +40,10 @@ function myScript() {
watchUpdate();
function getLocales(lang) {
if(lang.startsWith("zh")) { // zh zh-TW --> zh-CN
if (lang.startsWith("zh")) { // zh zh-TW --> zh-CN
lang = "zh-CN";
}
if(SUPPORT_LANG.includes(lang)) {
if (SUPPORT_LANG.includes(lang)) {
return JSON.parse(GM_getResourceText(lang));
}
return {
@ -60,7 +60,7 @@ function myScript() {
function translateElement(el) {
// Get the text field name
let k;
if(el.tagName === "INPUT") {
if (el.tagName === "INPUT") {
if (el.type === 'button' || el.type === 'submit') {
k = 'value';
} else {
@ -75,7 +75,7 @@ function myScript() {
.replace(/\xa0/g, ' ') // replace ' '
.replace(/\s{2,}/g, ' ');
if(locales.dict[key]) {
if (locales.dict[key]) {
el[k] = el[k].replace(txtSrc, locales.dict[key])
}
}
@ -85,19 +85,19 @@ function myScript() {
const blockClass = [
"css-truncate" // 过滤文件目录
];
const blockTags = [ "IMG", "svg"];
const blockTags = ["IMG", "svg"];
if(blockTags.includes(el.tagName)) {
if (blockTags.includes(el.tagName)) {
return false;
}
if(el.id && blockIds.includes(el.id)) {
if (el.id && blockIds.includes(el.id)) {
return false;
}
if(el.classList) {
for(let clazz of blockClass) {
if(el.classList.contains(clazz)) {
if (el.classList) {
for (let clazz of blockClass) {
if (el.classList.contains(clazz)) {
return false;
}
}
@ -107,21 +107,21 @@ function myScript() {
}
function traverseElement(el) {
if(!shoudTranslateEl(el)) {
if (!shoudTranslateEl(el)) {
return
}
for(const child of el.childNodes) {
if(["RELATIVE-TIME", "TIME-AGO"].includes(el.tagName)) {
for (const child of el.childNodes) {
if (["RELATIVE-TIME", "TIME-AGO"].includes(el.tagName)) {
translateRelativeTimeEl(el);
return;
}
if(child.nodeType === Node.TEXT_NODE) {
if (child.nodeType === Node.TEXT_NODE) {
translateElement(child);
}
else if(child.nodeType === Node.ELEMENT_NODE) {
if(child.tagName === "INPUT") {
else if (child.nodeType === Node.ELEMENT_NODE) {
if (child.tagName === "INPUT") {
translateElement(child);
} else {
traverseElement(child);
@ -135,8 +135,8 @@ function myScript() {
function watchUpdate() {
const m = window.MutationObserver || window.WebKitMutationObserver;
const observer = new m(function (mutations, observer) {
for(let mutationRecord of mutations) {
for(let node of mutationRecord.addedNodes) {
for (let mutationRecord of mutations) {
for (let node of mutationRecord.addedNodes) {
traverseElement(node);
}
}
@ -153,7 +153,7 @@ function myScript() {
function translateDesc() {
$(".repository-content .f4").append("<br/>");
$(".repository-content .f4").append("<a id='translate-me' href='#' style='color:rgb(27, 149, 224);font-size: small'>翻译</a>");
$("#translate-me").click(function() {
$("#translate-me").click(function () {
// get description text
const desc = $(".repository-content .f4")
.clone()
@ -163,12 +163,12 @@ function myScript() {
.text()
.trim();
if(!desc) {
if (!desc) {
return;
}
GM_xmlhttpRequest({
onload: function(res) {
onload: function (res) {
if (res.status === 200) {
$("#translate-me").hide();
// render result
@ -185,10 +185,10 @@ function myScript() {
}
function translateByCssSelector() {
if(locales.css) {
for(var css of locales.css) {
if($(css.selector).length > 0) {
if(css.key === '!html') {
if (locales.css) {
for (var css of locales.css) {
if ($(css.selector).length > 0) {
if (css.key === '!html') {
$(css.selector).html(css.replacement);
} else {
$(css.selector).attr(css.key, css.replacement);
@ -197,5 +197,5 @@ function myScript() {
}
}
}
})();
})();
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"100i": "100i",
"125a": "125a",
"135c": "135c",
@ -261,7 +259,6 @@
"fury": "狂怒",
"fury mx": "狂怒 MX",
"storm": "风暴",
"6 months": "6月",
"3 months": "3月",
"72 months": "72月",
@ -287,7 +284,6 @@
"12 months insurance": "12月保险",
"120 months insurance": "120月保险",
"insurance": "保险时长",
"- medium fighter": " - 中型战斗机",
"- heavy fighter": " - 重型战斗机",
"- corvette": " - 护卫舰",
@ -340,8 +336,6 @@
"- boarding": " - 登舰",
"- assault": " - 袭击",
"- refinery": " - 精炼",
"medium fighter": "中型战斗机",
"heavy fighter": "重型战斗机",
"corvette": "护卫舰",
@ -410,8 +404,6 @@
"exploration / recon": "探索 / 侦察",
"starter/touring": "新手船 / 旅游",
"starter / pathfinder": "新手船 / 探路者",
"aegis": "圣盾",
"anvil": "铁砧",
"c.o.": "联合外域",
@ -423,7 +415,6 @@
"banu": "巴努",
"vanduul": "剜度",
"tumbril": "盾博尔",
"origin jumpworks": "起源跃动",
"crusader industries": "十字军工业",
"roberts space industries": "罗伯茨太空工业",
@ -442,7 +433,6 @@
"musashi industrial and starflight concern": "武藏工业与星航株式会社",
"tumbril land systems": "盾博尔地面系统",
"vanduul clans": "剜度氏族",
"- origin jumpworks": " - 起源跃动",
"- crusader industries": " - 十字军工业",
"- roberts space industries": " - 罗伯茨太空工业",
@ -461,7 +451,6 @@
"- musashi industrial and starflight concern": " - 武藏工业与星航株式会社",
"- tumbril land systems": " - 盾博尔地面系统",
"- vanduul clans": " - 剜度氏族",
"2951 auspicious red paint pack": "2951吉祥红涂装包",
"2952 auspicious red paint pack": "2952吉祥红涂装包",
"2953 auspicious red paint pack": "2953吉祥红涂装包",
@ -789,7 +778,6 @@
"valkyrie - splinter paint": "女武神 - 碎片涂装",
"avenger - splinter paint": "复仇者 - 碎片涂装",
"vanguard series - solar winds paint": "先锋 - 太阳风涂装",
"games": "游戏",
"apps": "应用",
"pledge": "承诺",
@ -1312,7 +1300,6 @@
"the game": "游戏",
"terms of services": "服务条款",
"sort by:": "排序由:",
"new player guide": "新手指南",
"dive in to our companion guide to make your first steps easier.": "研究我们的新手指南,让你先人一步。",
"lunar new year 2023": "农历新年2023",
@ -1353,9 +1340,6 @@
"bound to your account": "绑定在您的账户上",
"and non-giftable.": "且无法赠送。",
"your ledger was credited with": "您的账户收到了",
"other ways to find help": "其他求助方法",
"learn the basics!": "了解基础知识!",
"how to play guide": "游玩指南",
@ -1515,7 +1499,6 @@
"23 years ago": "23 年前",
"24 years ago": "24 年前",
"25 years ago": "25 年前",
"last activity": "最后一次活动",
"solved": "解决",
"any": "任意",
@ -1543,8 +1526,6 @@
"or drop files here": "或将文件放在此处",
"recent viewed articles": "最近查看的文章",
"add to conversation": "添加到对话中",
"view and manage your account on the public test universe servers.": "浏览和管理你的公共测试宇宙账号",
"the public test universe is a testing server that allow you to try and play an unreleased star citizen patch before it is released. in order to play on the ptu, you will need first to copy your account over using the button below.": "公共测试宇宙是一个测试服务器允许你在星际公民补丁发布前尝试和玩耍。为了在PTU上游戏你需要先用下面的按钮把你的账户复制过来。",
"how does it work?": "这是如何运作的?",
@ -1798,8 +1779,6 @@
"1 year": "1 年",
"authenticate": "验证",
"code": "代码",
"you don't own a 100i": "你还未拥有一艘 100i",
"you don't own a 125a": "你还未拥有一艘 125a",
"you don't own a 135c": "你还未拥有一艘 135c",
@ -2070,18 +2049,18 @@
"1200 utc - temporarily disabling character repair to protect accounts while recovery is in-progress.": "1200 UTC - 暂时在修复过程中禁用角色修复,以保护账号",
"1245 utc - environment is accepting new players.": "1245 UTC - 环境正在接受新玩家",
"resolved": "已解决",
"we're coming to you in 2023!": "我们将在2023年来到你身边!" ,
"we hope to see you there!": "我们希望在那见到你!" ,
"as we eagerly await the return of a live and in-person citizencon, we couldn't let any more of 2023 pass without the chance to spend time with all of you again. this year, the bar citizen world tour continues with members of our teams visiting your local events, with various goodies and loot in tow (including banu cubes... and post alien week, we'll have a new bar citizen goodie to give away, stay tuned for details)!!": "当我们急切地等待可以现场参加开发者亲临的CitizenCon回归时我们不能再失去2023年和大家在一起的机会了。今年《Bar Citizen》世界巡游将继续进行我们的团队成员将带着各种好东西和战利品前往你们当地的活动包括巴努方块......在外星周之后我们将有一个新的《Bar Citizen》礼物送出敬请关注细节!" ,
"we've talked to many of the community bar citizen organizers out there who have been planning events around the globe, and we're excited to share an update on some of the initial events we'll be attending, including some starting very soon!": "我们已与全球各地许多策划Bar Citizen的公民组织者交流我们很高兴可以分享一些初步活动的最新动向包括一些很快就开始的" ,
"for more information on gaining access to a particular event, or to speak to the community organizer directly, you can browse the events on": "如果您想了解更多关于某项活动的信息,或者想直接与社区组织者交流,你可以浏览它们在" ,
"shanghai, china": "中国,上海" ,
"june 23rd, 2023 (time tbd)": "六月 23日 (北京时间)" ,
"super brand mall,": "正大广场," ,
"168 lujiazui xi lu,": "陆家嘴西路168号" ,
"pudong new area, shanghai": "上海市浦东新区" ,
"it's important to note that this initial list is just the beginning. we wanted to get this information out there to spread the word so we could see as many of you as possible for the immediate events. we're still actively chatting with community organizers, so expect more events/locations to be announced in the weeks to come.": "值得注意的是,这份名单只是一个开始。我们传出这些信息,是为了我们能在近期的活动中看到尽可能多的人。我们仍在积极地与社区组织者交谈,所以预计在未来几周内会有更多的活动和地点公布。" ,
"we're also still eager to hear about the events you may be planning in your local area. if you're working on something and you think it would be a great fit for us to visit, let us know!": "我们仍然关心你会在当地举办的活动,如果你在组织一些很适合我们前往的活动,请一定让我们知道" ,
"we're coming to you in 2023!": "我们将在2023年来到你身边!",
"we hope to see you there!": "我们希望在那见到你!",
"as we eagerly await the return of a live and in-person citizencon, we couldn't let any more of 2023 pass without the chance to spend time with all of you again. this year, the bar citizen world tour continues with members of our teams visiting your local events, with various goodies and loot in tow (including banu cubes... and post alien week, we'll have a new bar citizen goodie to give away, stay tuned for details)!!": "当我们急切地等待可以现场参加开发者亲临的CitizenCon回归时我们不能再失去2023年和大家在一起的机会了。今年《Bar Citizen》世界巡游将继续进行我们的团队成员将带着各种好东西和战利品前往你们当地的活动包括巴努方块......在外星周之后我们将有一个新的《Bar Citizen》礼物送出敬请关注细节!",
"we've talked to many of the community bar citizen organizers out there who have been planning events around the globe, and we're excited to share an update on some of the initial events we'll be attending, including some starting very soon!": "我们已与全球各地许多策划Bar Citizen的公民组织者交流我们很高兴可以分享一些初步活动的最新动向包括一些很快就开始的",
"for more information on gaining access to a particular event, or to speak to the community organizer directly, you can browse the events on": "如果您想了解更多关于某项活动的信息,或者想直接与社区组织者交流,你可以浏览它们在",
"shanghai, china": "中国,上海",
"june 23rd, 2023 (time tbd)": "六月 23日 (北京时间)",
"super brand mall,": "正大广场,",
"168 lujiazui xi lu,": "陆家嘴西路168号",
"pudong new area, shanghai": "上海市浦东新区",
"it's important to note that this initial list is just the beginning. we wanted to get this information out there to spread the word so we could see as many of you as possible for the immediate events. we're still actively chatting with community organizers, so expect more events/locations to be announced in the weeks to come.": "值得注意的是,这份名单只是一个开始。我们传出这些信息,是为了我们能在近期的活动中看到尽可能多的人。我们仍在积极地与社区组织者交谈,所以预计在未来几周内会有更多的活动和地点公布。",
"we're also still eager to hear about the events you may be planning in your local area. if you're working on something and you think it would be a great fit for us to visit, let us know!": "我们仍然关心你会在当地举办的活动,如果你在组织一些很适合我们前往的活动,请一定让我们知道",
"*all times listed below are local time": "*所有的时间表均为当地时间",
"alipay": "支付宝",
"pay with alipay": "使用支付宝付款",
@ -2122,5 +2101,4 @@
"you must": "你需要",
"to upvote!": "后进行投票!"
}
}
}

View File

@ -14,9 +14,7 @@
"replacement": "请求拉取"
}
],
"dict": {
"weapons": "武器",
"firing": "开火",
"idle": "待机",
@ -94,8 +92,7 @@
"temp to ir": "红外信号",
"range": "距离",
"full charge in": "完全充能时间",
"cooling/s":"冷却/s",
"cooling/s": "冷却/s",
"suldrath": "苏得拉斯",
"sukoran": "斯科拉",
"shield banu": "巴努护盾",
@ -266,7 +263,6 @@
"c-912 ballistic cannon": "C-912",
"sf7b ballistic gatling": "SF7B",
"sf7e laser cannon": "SF7E",
"100i": "100i",
"125a": "125a",
"135c": "135c",
@ -502,8 +498,6 @@
"fury": "狂怒",
"fury mx": "狂怒 MX",
"storm": "风暴",
"standalone ship - 100i": "独立船 - 100i",
"standalone ship - 125a": "独立船 - 125a",
"standalone ship - 135c": "独立船 - 135c",
@ -734,8 +728,6 @@
"standalone ship - polaris": "独立船 - 北极星",
"standalone ship - argo mole": "独立船 - 南船座 鼹鼠",
"standalone ship - ptv buggy": "独立船 - PTV 越野小车",
"aegis": "圣盾",
"anvil": "铁砧",
"c.o.": "联合外域",
@ -745,7 +737,6 @@
"gatac": "盖塔克",
"origin": "起源",
"banu": "巴努",
"origin jumpworks": "起源跃动",
"crusader industries": "十字军工业",
"roberts space industries": "罗伯茨太空工业",
@ -763,7 +754,6 @@
"Musashi industrial and starflight concern": "武藏工业与星航株式会社",
"tumbril land systems": "盾博尔地面系统",
"vanduul clans": "剜度氏族",
"voyage": "航程",
"wanderer": "流浪者",
"wayfare": "旅行",
@ -966,8 +956,6 @@
"'bullet' ii": "子弹 II",
"'chaos' iii": "混乱 III",
"'dragon' iv": "飞龙 IV",
"yield": "产出",
"daily prices (purchase)": "每日价格 (买入)",
"daily prices (sell)": "每日价格 (卖出)",
@ -1060,8 +1048,6 @@
"max. yield*": "最大收益",
"uex Rating™": "UEX评级™",
"variation": "变化",
"agricium": "艾格瑞金属",
"agri": "艾格瑞",
"agricultural supplies": "农业物资",
@ -1127,7 +1113,6 @@
"tara": "塔兰导电石",
"titanium (ore)": "钛(矿石)",
"tungsten (ore)": "钨(矿石)",
"stanton": "斯坦顿",
"arcCorp": "弧光",
"cellin": "赛琳",
@ -1146,7 +1131,6 @@
"euterpe": "欧忒耳佩",
"aaron halo": "亚伦环带",
"delamar": "德拉玛",
"hdms-anderson": "HDMS-安德森站",
"hdms-norgaard": "HDMS-诺加德站",
"hdms-ackley": "HDMS-阿克莱站",
@ -1231,8 +1215,6 @@
"new babbage mtps": "新巴贝奇-MTPS",
"orims - orison ms": "奥里森-MS",
"orison tdd": "奥里森-TDD",
"fleet": "舰队",
"ships": "飞船",
"equipment": "装备",
@ -1484,7 +1466,6 @@
"privacy policy": "隐私条款",
"create your free account": "创建你的免费账户",
"you own this item or all items contained in it": "你已拥有此项目或此项目中的所有物品",
"2951 auspicious red paint pack": "2951吉祥红涂装包",
"2952 auspicious red paint pack": "2952吉祥红涂装包",
"2953 auspicious red paint pack": "2953吉祥红涂装包",
@ -1920,9 +1901,6 @@
"switch to table view": "切换为表格视图",
"switch to cards view": "切换为卡片视图",
"this is only available for a limited amount of time or access is otherwise limited (this is not necessarily official information, just experience)": "该飞船仅在特定时间在商店销售或购买受到限制。(注意:以上并非官方确切消息,是由社区观察总结得出的结论。)",
"your personal account": "我的个人账户"
}
}