<a href="https://hellogithub.com/repository/738d0abae49543f18d887a7e29ec9e90" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=738d0abae49543f18d887a7e29ec9e90&claim_uid=zepvSg6Vwl4EqMr&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=738d0abae49543f18d887a7e29ec9e90&claim_uid=zepvSg6Vwl4EqMr&theme=neutral" /> <img alt="精选|HelloGitHub" src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=738d0abae49543f18d887a7e29ec9e90&claim_uid=zepvSg6Vwl4EqMr&theme=neutral" style="width: 250px; height: 54px;" width="250" height="54" /> </picture> </a>本项目源自: 52cik/github-hans
浏览器 | 脚本管理器 |
---|---|
Chrome 或基于 Chromium 内核的浏览器 | Tampermonkey 或 Violentmonkey |
Safari 浏览器(macOS、iOS、iPadOS) | Macaque 或 Stay |
Firefox 或基于 Gecko 内核的浏览器 | Tampermonkey 或 Violentmonkey |
Via 浏览器(Android) | 浏览器内自带 |
注意:
- 当版本号未更新的情况下,即使内容已更新,用户脚本管理器依然会忽略,需要手动安装获取更新
- 目前,已实现每周一凌晨自动更新开发版版本号
需要视频教程的可以查看这里收录的一些视频
[!注意]
关于"Chrome 127 及更高版本无法使用"的问题
原因是 Chrome 127 及更高版本陆续切换到 Manifest V3,目前已知 Tampermonkey 5.2.0 及以上版本支持,详见 #234 讨论
解决方案:
- 必须安装 Tampermonkey 5.2.0 及以上版本,其他脚本管理器暂不支持
- 必须在浏览器的"扩展程序"管理中开启"开发者模式"
需要安装用户脚本管理器 Tampermonkey,其他可能不支持。
在浏览器扩展管理中,开启 Tampermonkey 的"允许访问文件网址",如图:
<picture> <source media="(prefers-color-scheme: light)" srcset="https://yellow-cdn.veclightyear.com/0a4dffa0/fc2f1772-e3a5-4857-987f-51593d4355b5.png"/> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/maboloshi/github-chinese/gh-pages/preview/允许访问文件网址-dark.png"/> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/fc2f1772-e3a5-4857-987f-51593d4355b5.png" width="75%" /> </picture>将修改后的词库文件放到本地方便访问的位置。
安装 GitHub 中文化插件 - GitHub 托管【开发版】(相对及时更新),实际上 GitHub 中文化插件 - GreasyFork 托管【发布版】(仅大版本更新) 也可以。
回到脚本管理器,修改词库文件路径,即将类似 // @require https://raw.githubusercontent.com/maboloshi/github-chinese/gh-pages/locals.js?v1.9.0
中的网址改为本地路径格式,如 file:///D:/APP/github项目/github-chinese/locals.js
。
[!提示] 直接将词库文件拖到浏览器的地址栏,然后复制地址栏中的地址即可。
更新至 1.9.3
characterDataPage
规则,对特定页面启用"筛选字符数据"的变更ignoreMutationSelectorPage
规则,忽略特定突变元素reIgnoreClass,reIgnoreItemprop,ignoreId,ignoreTag
为ignoreSelectorPage
规则,处理全局及特定页面,忽略特定元素page
变化的忽略规则、正则规则数组等zh-CN
,与环境语言设置一致更新至 1.9.2
www.githubstatus.com
skills.github.com
更新至 1.9.1
更新至 1.9.0
1.9.0-2023-12-09
其中,1.9.0
:主版本号(由项目所有者更新)
2023-12-09
:词库发布日期(手动或按周期自动发布)README.md
中自动更新贡献者头像更新至 1.8.5
transDesc 函数
代码translate-me
翻译按钮watchUpdate 函数
新增节点文本更新的情况transBySelector和transDesc函数
延迟执行时间更新至 1.8.4
Itemprop
过滤规则,依然使用正则方式tooltipped
样式提示,依然使用正则方式更新至 1.8.3
更新至 1.8.2
greasyfork 托管
源切换到"按页面精细化词条模式"更新至 1.8.1
GitHub
源开始切换到"按页面精细化词条模式(开发版)",词库未完全迁移适配greasyfork
源词库文件的同步更新更新至 1.8.0
TURBO-FRAME
框架处理代码。Github 已调整新动态加载模式,直接检测url
的变化就能获取 对应的page
信息Shadow DOM
翻译,并监听变化page
有效才翻译页面GitHub中文社区
失效,改为讯飞
引擎(测试)RegExp
与构造函数new RegExp
冲突page
匹配规则,导致词库文件结构大调整,词库文件会适当变大,页面正则更精细,效率会提升更新至 1.7.9
GitHub 的 ajax 加载方式逐步从 defunkt/jquery-pjax 切换到 hotwired/turbo,导致已有的动态监测方式逐步失效
目前,通过以下修复:
BODY
元素的监视TURBO-FRAME
框架,获取对应的 page
其他更新:
rePagePath
、rePagePathRepo
、rePagePathOrg
匹配规则,限制路径匹配层次,排除干扰document.URL
变化触发"标题翻译"和"JS 筛选器"翻译更新至 1.7.8
document.body
和 title
更新机制,导致原有的"监测更新"规则部分失效,目前使用 document.documentElement
监视整个页面 DOM 的变更<HEAD>
标签更新至 1.7.7
transPage
函数,默认翻译公共部分getPage
函数,使"ClassName 匹配规则"优先translate
函数,跳过"不存在英文字母和符号,.",保留首尾空白部分等更新至 1.7.6
更新至 1.7.5
更新至 1.7.4
更新至 1.7.3
更新至 1.7.2
更新许可证为 GPL-3.0 希望大家依据许可证使用
正式发布 1.7.0 版本
原作者楼教主已停止维护多年,且近年来 GitHub 页面结构的变化,导致原有的脚本无法正常工作。
虽 然 GitHub 在被微软收购后比较重视国际化,启动并基本完成了 GitHub 文档的中文化。但是,关于 GitHub 页面的中文化暂时还没启动。
对于新手使用和高阶使用仍会存在一定的障碍。故,本人依据个人兴趣暂时进行了一定的修复和维护。
本次维护基本恢复和保留大部分功能如:页面正则翻译(含日期的正则)。页面词条可能被我切得太碎不方便后期维护(先这样吧!)
</details>pull request
。查看我们的贡献小技巧
目前已翻译大部分常用页面,欢迎补充完善,中文词条在locals.js
中。大家在补充完善的过程,请遵循以下文档对相关术语进行翻译:
<img src="https://yellow-cdn.veclightyear.com/0a4dffa0/45226536-c0bd-49e7-9a5a-f9bc0e0f5938.jpg" alt="微信赞赏" width="30%"> <img src="https://yellow-cdn.veclightyear.com/0a4dffa0/99c0f9fe-4a57-4bd3-8d1b-751ed87a82e9.jpg" alt="支付宝赞赏" width="30%">
</details>maboloshi - 项目作者
wuyuncheng-26 - 项目协作者
52cik - 项目原作者
一如既往,感谢我们出色的贡献者❤️!
<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT--> <a href="https://github.com/maboloshi" title="沙漠之子"> <img src="https://avatars.githubusercontent.com/u/7850715?v=4" width="42;" alt="沙漠之子"/> </a> <a href="https://github.com/52cik" title="楼教主"> <img src="https://avatars.githubusercontent.com/u/5033310?v=4" width="42;" alt="楼教主"/> </a> <a href="https://github.com/wuyuncheng-26" title="是小胖呀26"> <img src="https://avatars.githubusercontent.com/u/122529705?v=4" width="42;" alt="是小胖呀26"/> </a> <a href="https://github.com/TC999" title="陈生杂物房"> <img src="https://avatars.githubusercontent.com/u/88823709?v=4" width="42;" alt="陈生杂物房"/> </a> <a href="https://github.com/qznfbnj" title="其智乃反不能及"> <img src="https://avatars.githubusercontent.com/u/100760086?v=4" width="42;" alt="其智乃反不能及"/> </a> <a href="https://github.com/pylover7" title="大叶子"> <img src="https://avatars.githubusercontent.com/u/56282729?v=4" width="42;" alt="大叶子"/> </a> <a href="https://github.com/cat-kun" title="cat-kun"> <img src="https://avatars.githubusercontent.com/u/8529528?v=4" width="42;" alt="cat-kun"/> </a> <a href="https://github.com/pecasha" title="Pecasha"> <img src="https://avatars.githubusercontent.com/u/9607128?v=4" width="42;" alt="Pecasha"/> </a> <a href="https://github.com/buiawpkgew1" title="菾凴"> <img src="https://avatars.githubusercontent.com/u/71136405?v=4" width="42;" alt="菾凴"/> </a> <a href="https://github.com/3DMXM" title="小莫"> <img src="https://avatars.githubusercontent.com/u/28587093?v=4" width="42;" alt="小莫"/> </a> <a href="https://github.com/xuexb" title="前端小武"> <img src="https://avatars.githubusercontent.com/u/3872051?v=4" width="42;" alt="前端小武"/> </a> <a href="https://github.com/wang4yu6peng13" title="wang4yu6peng13"> <img src="https://avatars.githubusercontent.com/u/10207042?v=4" width="42;" alt="wang4yu6peng13"/> </a> <a href="https://github.com/pangshitong" title="pangshitong"> <img src="https://avatars.githubusercontent.com/u/41714457?v=4" width="42;" alt="pangshitong"/> </a> <a href="https://github.com/daydaygo" title="dayday"> <img src="https://avatars.githubusercontent.com/u/3986303?v=4" width="42;" alt="dayday"/> </a> <a href="https://github.com/heicks" title="create new ██████╗ ██╔══██╗ ██████╔╝ ██╔══██╗ ██████╔╝ ╚═════╝ ██╗ ██╗ ██║ ██║ ██║ ██║ ██║ ██║ ╚█████╔╝ ╚═════╝ ███████╗ ██╔════╝ ██║████═╗ ██║ ██ ║ ╚██████╔╝ ╚══════╝"> <img src="https://avatars.githubusercontent.com/u/12287943?v=4" width="42;" alt="create new ██████╗ ██╔══██╗ ██████╔╝ ██╔══██╗ ██████╔╝ ╚═════╝ ██╗ ██╗ ██║ ██║ ██║ ██║ ██║ ██║ ╚█████╔╝ ╚═════╝ ███████╗ ██╔════╝ ██║████═╗ ██║ ██ ║ ╚██████╔╝ ╚══════╝"/> </a> <a href="https://github.com/KS-OTO" title="KS-OTO"> <img src="https://avatars.githubusercontent.com/u/6616413?v=4" width="42;" alt="KS-OTO"/> </a> <a href="https://github.com/swsoyee" title="InfinityLoop"> <img src="https://avatars.githubusercontent.com/u/20528423?v=4" width="42;" alt="InfinityLoop"/> </a> <a href="https://github.com/ImgBotApp" title="Imgbot"> <img src="https://avatars.githubusercontent.com/u/31427850?v=4" width="42;" alt="Imgbot"/> </a> <a href="https://github.com/CN-traveler" title="CN-traveler"> <img src="https://avatars.githubusercontent.com/u/55753029?v=4" width="42;" alt="CN-traveler"/> </a> <!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-END-->贡献者列表,由 GitHub Action 自动生成
AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功 能,是提升开发效率的理想工具。
AI小说写作助手,一站式润色、改写、扩写
蛙蛙写作—国内先进的AI写作平台,涵盖小说、学术、社交媒体等多场景。提供续写、改写、 润色等功能,助力创作者高效优化写作流程。界面简洁,功能全面,适合各类写作者提升内容品质和工作效率。
全能AI智能助手,随时解答生活与工作的多样问题
问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。
实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
一键生成PPT和Word,让学习生活更轻松
讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。