Translate from JPopsuki to zh-cn

This script was translated from JPopsuki,

  1. // ==UserScript==
  2. // @name Translate from JPopsuki to zh-cn
  3. // @name:zh-CN 将jpopsuki翻译为中国语
  4. // @version 0.1.5.0
  5. // @description This script was translated from JPopsuki,
  6. // @description:zh-CN 这个脚本会将JPopsuki的部分内容翻译
  7. // @author Non author @ 201511
  8. // @include *://jpopsuki.eu/*
  9. // @namespace Violentmonkey Scripts
  10. // @namespace https://greasyfork.org/users/129719
  11. // @mail None@to.mail
  12. // @run-at document-end
  13. // @license Creative Commons BY-NC-SA
  14. // @license MIT License; https://pastebin.com/raw.php?i=4TMeeUXC
  15. // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
  16. // @grant GM_getValue
  17. // @grant GM_setValue
  18. // @grant GM_ApiBrowserCheck
  19. // @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=rixixi@sina.com&item_name=Greasy+Fork+donation
  20. // @supportURL http://www.baidu.com
  21. // ==/UserScript==
  22.  
  23. var htmlstr=document.getElementsByTagName('html')[0].innerHTML;
  24.  
  25. htmlstr=htmlstr.replace("News :: JPopsuki 2.0", "最新动态 :: JPopsuki 2.0");
  26. htmlstr=htmlstr.replace("Browse Torrents :: JPopsuki 2.0", "浏览资源 :: JPopsuki 2.0");
  27.  
  28. htmlstr=htmlstr.replace("Torrent", "种子");
  29. htmlstr=htmlstr.replace("Search", "搜索");
  30.  
  31. htmlstr=htmlstr.replace("You should also try to get an invite from a good friend of yours, other users on asian related forums or similar...", "你也可以尝试着从你的好友那里得到一个邀请,或者去一些亚洲相关论坛寻找类似的其他用户...");
  32. htmlstr=htmlstr.replace("JPopsuki Radio or watch JPopsuki TV", "JPopsuki Radio 或者观赏下 JPopsuki TV");
  33. htmlstr=htmlstr.replace("or open registrations", "或开放注册的同时");
  34. htmlstr=htmlstr.replace("So check ", "所以查看 ");
  35. htmlstr=htmlstr.replace("to see how to listen/watch and enjoy.", "来获取如何听/看以及欣赏.");
  36. htmlstr=htmlstr.replace("While you are waiting for an ", "当你在等待一个");
  37.  
  38. htmlstr=htmlstr.replace("And check out our new streaming PV site:", "来看看我们新的PV视频站点:");
  39. htmlstr=htmlstr.replace(">Loading<", ">读取中<");
  40. htmlstr=htmlstr.replace(">Home</", ">首页</");
  41. htmlstr=htmlstr.replace(">Login</", ">登录</");
  42.  
  43. htmlstr=htmlstr.replace(">Registrations are closed.", ">自由注册当前已经关闭.");
  44. htmlstr=htmlstr.replace("is invite only.</", "只允许邀请注册.</");
  45.  
  46. htmlstr=htmlstr.replace("There will most likely be no more open registrations so follow us on <", "今后很有可能不会再开放注册,所以如果你想要获取可能开放的相关消息请务必关注我们的<");
  47. htmlstr=htmlstr.replace(">Twitter</a> if you want news about a possible opening.", "a href=http://twitter.com/JPopsuki>Twitter</a>.");
  48.  
  49. htmlstr=htmlstr.replace("This is J", "这里是 J");
  50. htmlstr=htmlstr.replace("View all recommendations", "查看所有推荐内容");
  51. htmlstr=htmlstr.replace("Latest 10 Recommendations", "最新的 10 项推荐内容");
  52. //Invites
  53. htmlstr=htmlstr.replace("<h2>Invites</h2>", "<h2>邀请</h2>");
  54. htmlstr=htmlstr.replace(">Send invite</td>", ">邀请人邮箱:</td>");
  55. htmlstr=htmlstr.replace("Send invite", "发送邀请");
  56. htmlstr=htmlstr.replace("<td>Uploaded</td>", "<td>上传量</td>");
  57. htmlstr=htmlstr.replace("<td>Downloaded</td>", "<td>下载量</td>");
  58.  
  59. htmlstr=htmlstr.replace("You did not enter a valid email address", "您没有输入有效的电子邮件地址");
  60.  
  61. htmlstr=htmlstr.replace("Invites", "邀请");
  62. htmlstr=htmlstr.replace("Do <b>NOT</b> send invites to", "请<b>不要</b>将邀请发送到");
  63. htmlstr=htmlstr.replace("[Invite tree]", "邀请列表");
  64. htmlstr=htmlstr.replace("Current invites", "当前邀请");
  65. htmlstr=htmlstr.replace("Invitee tree", "被邀请人列表");
  66. htmlstr=htmlstr.replace("Please note that the selling of our invitations is strictly forbidden, and will result in you and your entire invite tree being banned", "请注意,禁止贩卖本站的邀请连接,这将会导致您和您的整个邀请列表全都被禁止");
  67. htmlstr=htmlstr.replace("Make sure that the user you are about to invite knows the basics about torrenting and how to keep up his ratio, if not - teach him! If a user you invited shows up on the forum asking questions that he should already know the answer to, you MIGHT get into trouble", "请确保您将邀请的用户知道并了解torrent相关的基础知识以及如何保持其分享率, 如果没有-教他!假如你邀请的用户出现在论坛上,提问他应该知道答案的问题,你可能会遇到麻烦");
  68.  
  69. htmlstr=htmlstr.replace("mail accounts, they will never arrive!", "的邮箱账户中, 因为永远无法到达!");
  70.  
  71. htmlstr=htmlstr.replace(/View/g, "查看");
  72. htmlstr=htmlstr.replace("New ratio after downloading (without uploading)", "下载此种后新的的分享率(上传量不算的情况)");
  73. htmlstr=htmlstr.replace("Requested On", "求种时间");
  74. htmlstr=htmlstr.replace("Tags:", "标签:");
  75. htmlstr=htmlstr.replace("Ranks (percentile)", "等级 (百分比%)");
  76.  
  77.  
  78. htmlstr=htmlstr.replace("Recent Snatches", "最近完成");
  79. htmlstr=htmlstr.replace("'s profile :: ", "的用户详情 :: ");
  80. htmlstr=htmlstr.replace("This profile is currently empty.", "当前配置文件为空。");
  81.  
  82. htmlstr=htmlstr.replace(/Joined: /g, "加入日期: ");
  83. htmlstr=htmlstr.replace(/Last Seen: /g, "最后浏览: ");
  84. htmlstr=htmlstr.replace(/Data downloaded: /g, "数据下载: ");
  85. htmlstr=htmlstr.replace(/Data uploaded: /g, "数据上传: ");
  86.  
  87. htmlstr=htmlstr.replace("Freeleech!", "免流量!");
  88. htmlstr=htmlstr.replace("Uploads Snatches:", "上传认领:");
  89.  
  90. htmlstr=htmlstr.replace("Forum Posts: ", "论坛发帖数: ");
  91. htmlstr=htmlstr.replace("Torrent Comments: ", "种子评论: ");
  92.  
  93. htmlstr=htmlstr.replace(/Torrents uploaded: /g, "资源上传: ");
  94. htmlstr=htmlstr.replace(/Posts made: /g, "发表帖子: ");
  95. htmlstr=htmlstr.replace(/Overall rank: /g, "总排名: ");
  96. htmlstr=htmlstr.replace(/Requests filled: /g, "请求提供: ");
  97. htmlstr=htmlstr.replace("Username", "用户名");
  98. htmlstr=htmlstr.replace("Estimated Calculation. This assumes you're not downloading any other torrent.", "数据为假设你没有下载任何其他 torrent 的估算值.");
  99. htmlstr=htmlstr.replace(/swapTorrent/g, "swapTorrent");
  100.  
  101. htmlstr=htmlstr.replace("Uploaded:", "上传: ");
  102. htmlstr=htmlstr.replace(/Vote/g, "投票");
  103. htmlstr=htmlstr.replace(/Stats/g, "统计");
  104. htmlstr=htmlstr.replace("Bonus Points per Hour/Day:", "每小时/天 所能获得积分:");
  105. htmlstr=htmlstr.replace(/Bonus Points/g, "奖励积分");
  106.  
  107. htmlstr=htmlstr.replace("Request Name", "请求名称");
  108. htmlstr=htmlstr.replace("Nothing found!", "未找到相关内容!");
  109. htmlstr=htmlstr.replace("Bounty", "悬赏");
  110.  
  111. htmlstr=htmlstr.replace("Seeding: ", "当前做种: ");
  112. htmlstr=htmlstr.replace("Leeching: ", "当前下载: ");
  113. htmlstr=htmlstr.replace("Recent Snatches", "最近认领");
  114.  
  115. htmlstr=htmlstr.replace(/Sex: Male/g, "性别: 男性");
  116. htmlstr=htmlstr.replace(/Sex: Female/g, "性别: 女性");
  117. htmlstr=htmlstr.replace(/Personal/g, "个人信息");
  118. htmlstr=htmlstr.replace(/Class: User/g, "等级: User");
  119. htmlstr=htmlstr.replace(/Paranoia Level: /g, "强迫症等级: ");
  120. htmlstr=htmlstr.replace(/Bailed Out By/g, "曾经被保释");
  121. htmlstr=htmlstr.replace(/Community/g, "社区");
  122. // General Stuff
  123.  
  124. htmlstr=htmlstr.replace("Please do not join to request an invite - you will be ignored.", "请勿加入请求邀请 - 这样你会被忽略.<br>风斗车汉化组 友情汉化^_^");
  125.  
  126. htmlstr=htmlstr.replace("Search Terms:", "搜索 关键字:");
  127. htmlstr=htmlstr.replace("Tags (comma-separated):", "Tags (多个请使用逗号分开):");
  128. htmlstr=htmlstr.replace("Order By:", "排序:");
  129. htmlstr=htmlstr.replace(">Disable Grouping<", ">禁用分组<");
  130. htmlstr=htmlstr.replace("Make Default", "设为默认");
  131. htmlstr=htmlstr.replace("Clear Default", "清空默认");
  132.  
  133. htmlstr=htmlstr.replace("Latest 5 Torrents", "最新上传的5个资源");
  134. htmlstr=htmlstr.replace(/Log In!/g, "登录");
  135. htmlstr=htmlstr.replace(/Torrents/g, "资源区");
  136. htmlstr=htmlstr.replace(/Artists/g, "艺术家");
  137. htmlstr=htmlstr.replace(/Artist/g, "艺术家");
  138. htmlstr=htmlstr.replace("Uploads", "已上传");
  139.  
  140. htmlstr=htmlstr.replace(/Requests/g, "资源请求");
  141. htmlstr=htmlstr.replace(/Home/g, "首页");
  142. htmlstr=htmlstr.replace(/Collages/g, "合集");
  143. htmlstr=htmlstr.replace(/Forums/g, "论坛");
  144. htmlstr=htmlstr.replace(/Top10/g, "Top 10");
  145. htmlstr=htmlstr.replace(/IRC/g, "IRC");
  146. htmlstr=htmlstr.replace(/RadioTV/g, "Radio / TV");
  147. htmlstr=htmlstr.replace(/Rules/g, "规则");
  148. htmlstr=htmlstr.replace(/Help/g, "帮助");
  149. htmlstr=htmlstr.replace(/Staff/g, "管理团队");
  150.  
  151. htmlstr=htmlstr.replace(/Users/g, "用户");
  152. htmlstr=htmlstr.replace(/User/g, "用户");
  153. htmlstr=htmlstr.replace(/Username/g, "用户名");
  154. htmlstr=htmlstr.replace(/Logout/g, "退出");
  155. htmlstr=htmlstr.replace(/Log/g, "历史记录");
  156. htmlstr=htmlstr.replace(/Artist/g, "艺术家");
  157.  
  158. htmlstr=htmlstr.replace(/Edit/g, "编辑");
  159. htmlstr=htmlstr.replace(/Donate/g, "捐赠");
  160. htmlstr=htmlstr.replace(/Invited: /g, "已邀请: ");
  161. htmlstr=htmlstr.replace("Invite", "邀请");
  162.  
  163. htmlstr=htmlstr.replace(/Up:/g, "上传量");
  164. htmlstr=htmlstr.replace(/Upload/g, "上传");
  165. htmlstr=htmlstr.replace(/Downloaded/g, "下载");
  166. htmlstr=htmlstr.replace(/Download/g, "下载");
  167. htmlstr=htmlstr.replace(/Down/g, "下载量");
  168. htmlstr=htmlstr.replace(/Avatar/g, "头像");
  169.  
  170. htmlstr=htmlstr.replace(/Ratio/g, "分享率");
  171. htmlstr=htmlstr.replace(/Bonus/g, "积分");
  172.  
  173. htmlstr=htmlstr.replace(/Inbox/g, "收件箱");
  174. htmlstr=htmlstr.replace(/Notices/g, "公告");
  175. htmlstr=htmlstr.replace(/Bookmarks/g, "收藏");
  176. htmlstr=htmlstr.replace(/SubTopics/g, "订阅");
  177. htmlstr=htmlstr.replace(/Notifications/g, "提醒");
  178. htmlstr=htmlstr.replace(/Posts/g, "发表");
  179. htmlstr=htmlstr.replace(/Friends/g, "好友");
  180.  
  181. htmlstr=htmlstr.replace(/Snatches/g, "认领数");
  182. htmlstr=htmlstr.replace(/Snatched/g, "已完成");
  183. htmlstr=htmlstr.replace(/Peers/g, "连接数");
  184. htmlstr=htmlstr.replace(/Seeders/g, "做种者");
  185. htmlstr=htmlstr.replace(/Leechers/g, "下载者");
  186.  
  187. htmlstr=htmlstr.replace(/Show/g, "显示");
  188. htmlstr=htmlstr.replace(/Hide/g, "隐藏");
  189. htmlstr=htmlstr.replace(/First/g, "首页");
  190. htmlstr=htmlstr.replace(/Prev/g, "前一页");
  191. htmlstr=htmlstr.replace(/Next/g, "后一页");
  192. htmlstr=htmlstr.replace(/Last/g, "最后一页");
  193. htmlstr=htmlstr.replace(/Delete/g, "删除");
  194. htmlstr=htmlstr.replace(/Rename/g, "重命名");
  195. htmlstr=htmlstr.replace(/Remove/g, "移除");
  196. htmlstr=htmlstr.replace(/Manage/g, "管理");
  197. htmlstr=htmlstr.replace(/Sort/g, "排序");
  198. htmlstr=htmlstr.replace(/Forums/g, "论坛");
  199. htmlstr=htmlstr.replace("listen to", "也来听听");
  200. htmlstr=htmlstr.replace(/Peeps/g, "会员");
  201.  
  202. htmlstr=htmlstr.replace("Polls <", "调查 <");
  203. htmlstr=htmlstr.replace("you may", "你不妨");
  204.  
  205.  
  206.  
  207. htmlstr=htmlstr.replace("Use this webchat link and ask for support from our Team (Pop-Up)", "使用这个网络聊天链接向我们团队获取技术支持(将弹出窗口打开)");
  208. htmlstr=htmlstr.replace("Or use your own IRC client", "或使用你自己的IRC客户端访问");
  209. htmlstr=htmlstr.replace("You did not receive your confirmation email", "您没有收到验证邮件");
  210. htmlstr=htmlstr.replace("Account disabled for rule violation", "账号因违反规则被禁用");
  211.  
  212. htmlstr=htmlstr.replace("<p>Site and design © 2017 JPopsuki 2.0</p>", "<p>网页设计 by © 2017 JPopsuki 2.0</p><p>风斗车汉化组 版本0.1.4.9</p>");
  213.  
  214. document.getElementsByTagName('html')[0].innerHTML=htmlstr;