biuuu / blhxfy Goto Github PK
View Code? Open in Web Editor NEW碧蓝幻想翻译
License: MIT License
碧蓝幻想翻译
License: MIT License
你好 我在shadowrocket上用您提供的配置文件只有在游戏语言设置成日语的情况下才能生效,有什么办法能在英语下生效吗
userscript.html?id=5e952db9-3f26-4898-8905-e78d93f4e2a0:9390
TypeError: Cannot read property 'cyweb_token' of null
at testCookies (userscript.html?id=5e952db9-3f26-4898-8905-e78d93f4e2a0:9161)
at async translator (userscript.html?id=5e952db9-3f26-4898-8905-e78d93f4e2a0:9220)
at async Promise.all (/index 0)
at async caiyunTrans (userscript.html?id=5e952db9-3f26-4898-8905-e78d93f4e2a0:9382)
我注意到最新的剧情是使用claude 3 opus 翻译的,能否通过让玩家自行使用api的方式使所有机翻都能使用claude来翻译呢,claude的效果实在是太好了。
iOS 平台上有许多网络调试工具,而这些调试工具很多都可以做到直接修改 http 请求,因此可以考虑使用这些工具进行脚本的注入,这样在任何条件下都可以正常汉化了。
Surge 在 2019 年中旬引入了脚本系统,其可以对 http(s) 请求作直接修改,因此我们可以利用这一点将汉化脚本注入到 </head>
之前执行。简单的脚本如下:
function insert(str, index, value) {
return str.substr(0, index) + value + str.substr(index);
}
const toInsert = `
<script>
(function () {
const script = document.createElement("script");
script.src = "https://blhx.danmu9.com/blhxfy/extension.user.js";
document.head.appendChild(script);
})();
</script>
`;
let { body, headers } = $response;
const result = {};
if (
body &&
headers &&
typeof headers["Content-Type"] === "string" &&
headers["Content-Type"].includes("text/html") &&
body.lastIndexOf("</head>") !== -1
) {
result.body = insert(body, body.lastIndexOf("</head>"), toInsert);
result.headers = headers;
}
$done(result);
并且设置匹配的 URL 为 (game\.granbluefantasy\.jp)|(gbf\.game\.mbga\.jp)
即可。
其他示例(包括 TestFlight 版本中新引入的模块功能)详见此。
(顺带提一句 SC 应该也可以这么改(
注入存在的问题就是跨域。这里有两种解决方案:
GM_xmlhttpRequest
函数,将其请求的地址修改为一个特定的格式,发送到同域下一个不存在的地址,由额外的脚本识别这种格式后解析出原本的请求、请求并返回。这种方案的问题在于需要引入新的脚本,可能会降低一定的运行效率。测试环境为 iOS 13.3.1(iPad mini 5),Surge 版本为 4.10.0(1582),使用的是上面链接中对应的模块(Module),效果如下图所示:
效果差不多所以没截图(
Everything is in chinese. English translations?
文本重复显示undefinedWhatdefined undefinedis undefinedGreaundefined 这种字符
角色姓名倒是翻译了,例如阿碧这种
重复了大概十几个对话后,就变为了英文。
而纯情狐的剧情,则是十几个对话重复 未定义 未定义 这种中文,中间夹杂日文字符,之后就变为了英文
65章的剧情没出现这个问题,火大奶也没这个问题,,
剧情 | 发起日期 | 翻译 |
---|---|---|
克蕾雅sr,ssr以及泳装ssr个人角色剧情,暗贝熊泳贝熊剧情,ssr水属安剧情 | 2018/9/3 | @sakurairsora |
泳佐个人剧情,罗密欧个人剧情 | 2018/9/3 | @KoutsukiYakou |
偶像大师sidem3个联动角色 | 2018/9/3 | @arktos29 |
马姬莎(万能的魔女)SSR个人剧情 | 2018/9/3 | @MAMUS-LLP |
晓之空篇,64-76已翻,77~待翻 | 2018/9/3 | @LyriaP |
9月5日之前上传鸡剧情 | 2018/9/3 | @nageBqianglelaoziXMXdeID |
贞德一套(光,暗,泳,村姑ver) | 2018/9/3 | @BigDickKyoko |
神盾、羊 的个人剧情 | 2018/9/3 | @modai-pimin |
波雷米亚个人剧情 莎拉个人剧情 沙神一期二期 | 2018/9/3 | @yakumoki |
十天众中三,四,六,七的个人剧情 | 2018/9/4 | @MAMUS-LLP |
火佐仓个人剧情 | 2018/9/4 | @lustdance |
席尔瓦,库库璐,库姆悠全版本个人剧情 席尔瓦x库库璐联携剧情 席尔瓦x库姆悠联携剧情 | 2018/9/5 | @DevilPoi |
樱花大战联动剧情 | 2018/9/6 | @Harphemaen |
十天众之二的个人剧情 | 2018/9/6 | @ninomiyanatsuki |
那炼金活动吧 | 2018/9/7 | @lustdance |
该隐ssr个人剧情 | 2018/9/7 | @Nochokyn |
狗个人剧情后一章,狗和鸡的联动剧情 | 2018.9.7 | @kozue3322 |
泳裝露娜露(R) | 2018/9/7 | @mirror0420 |
想试试就按了只翻译剧情那个设置 之后再也找不到进设置的按键 改不了设置
https://tva2.sinaimg.cn/large/c12689b8ly1gdbtnzwzh3j20hv0px4ia.jpg
第一次遇到这种提示,尝试进行登录、更换翻译api和开关脚本都没有用,请问这是本月的翻译次数用完了吗?
RT,在做相关整理,想做一个中日英对照的表
Mbp:BLHXFY me$ yarn install
yarn install v1.7.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
如果换用yarn install --ignore-engines
或者去掉yarn.lock
中与upath
有关的几行则会在编译/打包的时候产生很多问题,
还试着删除目录下的node_modules/
, package-lock.json
& yarn.lock
再install,
[4/4] 📃 Building fresh packages...
[1/2] ⡀ fsevents
[2/2] ⡀ electron
[4/4] 📃 Building fresh packages...
success Saved lockfile.
$ electron-builder install-app-deps
• electron-builder version=20.17.1
• loaded configuration file=/Users/kurumi/Projects/github/BLHXFY/electron-builder.json
Error: Unresolved node modules: react
之后出现找不到Error: Unresolved node modules: react
的错误,是不是需要添加react依赖?
你好,请问一下数据文件该怎样放置在服务器中
我尝试放在网站根目录,js链接
但是游戏内似乎无法获取翻译数据
是否介意我魔改成一个别的项目- -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.