public1
2026-01-19
Note
This article is AI-translated (LLM, ChatGPT 5.2) from original Chinese version (on the same page). The translation is reviewed by the author.
Today I was tweaking an open-source web auto-translation browser extension [0]. What I wanted was simple: automatically trigger translation globally on every page, and use a dedicated Profile just for browsing foreign-language sites.
Then I discovered… it doesn’t work like that. The settings let you enter an allowlist of domains to auto-trigger translation for those domains, but there’s nowhere to enable it globally. The allowlist doesn’t accept wildcards, regexes, or anything fancy either. I confirmed it in the source: the check is literally someArray.include(...). Brutal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pm disable-user --user 0 com.caf.fmradio | |
| pm disable-user --user 0 com.coloros.activation | |
| pm disable-user --user 0 com.coloros.activation.overlay.common | |
| pm disable-user --user 0 com.coloros.alarmclock | |
| pm disable-user --user 0 com.coloros.appmanager | |
| pm disable-user --user 0 com.coloros.assistantscreen | |
| pm disable-user --user 0 com.coloros.athena | |
| pm disable-user --user 0 com.coloros.avastofferwall | |
| pm disable-user --user 0 com.coloros.backuprestore | |
| pm disable-user --user 0 com.coloros.backuprestore.remoteservice |
- VirtualBox 建立机器,选择 Linux 2.6 / 3.x / 4.x 64-bit,CPU 核数、内存、磁盘、显存拉高,加载 Bliss OS 安装镜像,图像驱动器选 VBoxVGA,3D 加速不要勾选。可按需增加一个 Bridged Adapter 或者 Host-only Adapter,方便之后网络连接。
- 使用 VBoxManager 命令行工具增加一个视频模式:
640x1080x32 中分辨率可以自行设置,但最后的色彩位数一定要置为 32。VBoxManage setextradata "<虚拟机名称>" "CustomVideoMode1" "640x1080x32"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // CB's Todo.txt to ics script | |
| // from https://chrisbeckstrom.com/2018/06/07/how-to-generate-a-calendar-from-your-todo-txt-file/ | |
| // shunf4 modified | |
| // goes through todo.txt and generates a calendar | |
| // 2018-06-06 | |
| // | |
| // HOW TO USE THIS | |
| // this script parses a file in the todo.txt format and generates an ics file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sc() { | |
| if [ -z "$1" ] || [ -z "$2" ]; then | |
| return | |
| fi | |
| case $2 in | |
| jf) sudo journalctl -fu $1;; | |
| j*) sudo journalctl -u $1;; | |
| ens) sudo systemctl enable $1 ; sudo systemctl start $1;; | |
| en*) sudo systemctl enable $1;; |