您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
可以讓epicgames官網中文化的代碼!
当前为
// ==UserScript== // @name epicgames官網中文化 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 可以讓epicgames官網中文化的代碼! // @author 蕃茄狼 // @match *://*.epicgames.com/* // @grant none // @run-at document-end // ==/UserScript== 'use strict' const i18n = new Map([ ['Play Free Now', '免費遊玩'], ['Android Beta', 'Android 測試'], ['Learn More', '了解更多'], ['Download', '下載'], ['Darkness', '黑暗'], ['Rises', '降臨'], ['How do you get the Battle Pass?', '如何拿到Battle Pass?'], ['Get Fortnite', '取得要塞英雄'], ['Now - Dec 6', '現在 - 12月6日'], ['100 tiers, 100 rewards. Still 950 V-Bucks!', '100等級, 100個獎勵. 只要 950V幣!'], ['Play Battle Royale. Level Up. Unlock Epic Loot.', '翻譯'], ['Battle Pass', '翻譯'], ['Darkness Rises in Season 6! The more you play, the more rewards you unlock. Level up faster by completing Weekly Challenges to unlock additional rewards like progressive outfits, Pets and exclusive cosmetics.', '翻譯'], ['BUY IN-GAME FOR 950 V-BUCKS', '在遊戲內購買只要 950 V幣'], ['Battle Bundle', '翻譯'], ['Battle Pass + 25 Tiers', '翻譯'], ['Includes access to the Battle Pass and instantly unlocks your next 25 tiers, all at a 40% discount.', '翻譯'], ['BUY IN-GAME FOR 2,800 V-BUCKS', '在遊戲內購買只要 2,800 V幣'], ['Play to level up your Battle Pass, unlocking over 100 rewards worth over 25,000 V-Bucks (typically takes 75 to 150 hours of play).', '翻譯'], ['Want it all faster? You can buy up to 100 tiers, each for 150 V-Bucks!', '翻譯'], ['New this Season: Pets!', '新一季:寵物!'], ['Level up your Battle Pass to unlock Bonesy, Scales, and Camo, new critters that will join you on your journey across the map. These passive companions are always by your side - reacting to different situations you find yourself in.', '翻譯'], ['Check out all the', '翻譯'], ['Loot!', '戰利品'], ['Playing', '翻譯'], ['with', '翻譯'], ['the', '翻譯'], ['Battle', '翻譯'], ['Pass', '翻譯'], ['you', '翻譯'], ['can', '翻譯'], ['earn:', '翻譯'], ['Unlock 25 additional tiers with purchase of the Battle Bundle', '翻譯'], ['Instantly unlocks with purchase of the Battle Pass (Worth over 3,500 V-Bucks)', '翻譯'], ['Playing For Free', '現在免費'], ['Everyone Can Earn:', '全部人都可以獲得:'], ['Jump', '來'], ['In!', '吧!'], ['Jump into Fortnite Battle Royale and head to the Battle Pass tab. Use those shiny V-Bucks and boom, the spoils of victory await. Need More V-Bucks? Buy some from the STORE tab.', '翻譯'], ['Check it out!', '翻譯'], ['Click the video to see more!', '點影片看更多!'], ['FAQs', 'FAQs'], ['How do I buy the Battle Pass?', '我要怎麼買Battle Pass?'], ['Launch Fortnite', '啟動要塞英雄'], ['Select Battle Royale', '翻譯'], ['Navigate to the Battle Pass Tab', '翻譯'], ['Purchase ', '翻譯'], ['either', '翻譯'], [' the Battle Pass or the Battle Bundle', '翻譯'], ['What if I buy the Battle Pass late in the season?', '翻譯'], ['You will receive all of the rewards up to your current level, retroactively!', '翻譯'], ['Do I keep my Battle Pass rewards after the Season ends?', '翻譯'], ['Yes! You keep every Battle Pass cosmetic earned each season.', '翻譯'], ]) const alertbak = window.alert.bind(window) window.alert = (message) => { if (i18n.has(message)) message = i18n.get(message) return alertbak(message) } const confirmbak = window.confirm.bind(window) window.confirm = (message) => { if (i18n.has(message)) message = i18n.get(message) return confirmbak(message) } const promptbak = window.prompt.bind(window) window.prompt = (message, _default) => { if (i18n.has(message)) message = i18n.get(message) return promptbak(message, _default) } replaceText(document.body) const bodyObserver = new MutationObserver(mutations => { mutations.forEach(mutation => { mutation.addedNodes.forEach(addedNode => replaceText(addedNode)) }) }) bodyObserver.observe(document.body, { childList: true, subtree: true }) function replaceText(node) { nodeForEach(node).forEach(textNode => { if (textNode instanceof Text && i18n.has(textNode.nodeValue)) textNode.nodeValue = i18n.get(textNode.nodeValue) else if (textNode instanceof HTMLInputElement) { if (textNode.type === 'button' && i18n.has(textNode.value)) textNode.value = i18n.get(textNode.value) else if (textNode.type === 'text' && i18n.has(textNode.placeholder)) textNode.placeholder = i18n.get(textNode.placeholder) } }) } function nodeForEach(node) { const list = [] if (node.childNodes.length === 0) list.push(node) else { node.childNodes.forEach(child => { if (child.childNodes.length === 0) list.push(child) else list.push(...nodeForEach(child)) }) } (function() { function addStyle(rules) { var styleElement = document.createElement('style'); styleElement.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(styleElement); styleElement.appendChild(document.createTextNode(rules)); } console.log('font'); addStyle('* {font-family :Microsoft JhengHei;}'); })(); return list }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址