Skip to content

Commit edb3d3e

Browse files
Merge pull request #12 from teslaproduuction/claude/optimize-youtube-proxy-16f2B
Claude/optimize youtube proxy 16f2 b
2 parents 9ccc23a + cc8d5ef commit edb3d3e

8 files changed

Lines changed: 188 additions & 15488 deletions

File tree

β€Ž.github/workflows/convert-to-mrs.ymlβ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@ jobs:
4141
run: |
4242
set -e # Exit on error
4343
44-
# Process each txt file
44+
# Process each txt file (skip classical behavior files)
45+
SKIP_FILES="processes.txt"
4546
for txt_file in *.txt; do
47+
if echo "$SKIP_FILES" | grep -qw "$txt_file"; then
48+
echo "Skipping $txt_file (classical behavior, no .mrs conversion)"
49+
continue
50+
fi
4651
if [ -f "$txt_file" ]; then
4752
echo "Processing: $txt_file"
4853

β€ŽREADME.mdβ€Ž

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
| <img src="tools.svg" width="200" alt="Tools"> **Tools** | Онлайн инструмСнты ΠΈ сСрвисы | ~1000 | [tools.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/tools.txt) |
3434
| <img src="torrent.svg" width="200" alt="Torrent"> **Torrent** | Π’ΠΎΡ€Ρ€Π΅Π½Ρ‚-Ρ‚Ρ€Π΅ΠΊΠ΅Ρ€Ρ‹ ΠΈ P2P сСрвисы | ~40 | [torrent.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/torrent.txt) |
3535
| <img src="youtube.svg" width="200" alt="YouTube"> **YouTube** | YouTube ΠΈ связанныС Google сСрвисы | ~8000 | [youtube.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/youtube.txt) |
36+
| **Processes** | ΠŸΡ€Π°Π²ΠΈΠ»Π° ΠΏΠΎ ΠΈΠΌΠ΅Π½Π°ΠΌ процСссов (mihomo) | ~20 | [processes.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/processes.txt) |
3637

3738
---
3839

@@ -270,6 +271,81 @@ rules:
270271

271272
---
272273

274+
## πŸ”§ ΠŸΡ€Π°Π²ΠΈΠ»Π° ΠΏΠΎ процСссам (mihomo / Clash Verge)
275+
276+
Π€Π°ΠΉΠ» `processes.txt` ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ `behavior: classical` ΠΈ содСрТит ΠΏΡ€Π°Π²ΠΈΠ»Π° `PROCESS-NAME` / `PROCESS-NAME-REGEX` для ΠΌΠ°Ρ€ΡˆΡ€ΡƒΡ‚ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ прилоТСния.
277+
278+
> **Π’Π°ΠΆΠ½ΠΎ:** ΠšΠΎΠ½Π²Π΅Ρ€Ρ‚Π°Ρ†ΠΈΡ Π² `.mrs` **Π½Π΅ поддСрТиваСтся** для classical behavior. Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠΉΡ‚Π΅ `format: text` ΠΈΠ»ΠΈ `format: yaml`.
279+
280+
### ΠŸΠΎΠ΄ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ (всС процСссы Ρ‡Π΅Ρ€Π΅Π· ΠΎΠ΄ΠΈΠ½ прокси)
281+
282+
```yaml
283+
find-process-mode: always # ΠžΠ±ΡΠ·Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ для Ρ€Π°Π±ΠΎΡ‚Ρ‹ PROCESS-NAME
284+
285+
rule-providers:
286+
processes:
287+
type: http
288+
behavior: classical
289+
format: text
290+
url: "https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/processes.txt"
291+
path: ./ruleset/processes.yaml
292+
interval: 86400
293+
294+
rules:
295+
- RULE-SET,processes,PROXY
296+
- MATCH,DIRECT
297+
```
298+
299+
### РаздСльная ΠΌΠ°Ρ€ΡˆΡ€ΡƒΡ‚ΠΈΠ·Π°Ρ†ΠΈΡ ΠΏΠΎ катСгориям
300+
301+
Если Π½ΡƒΠΆΠ½Ρ‹ Ρ€Π°Π·Π½Ρ‹Π΅ прокси-Π³Ρ€ΡƒΠΏΠΏΡ‹ для Ρ€Π°Π·Π½Ρ‹Ρ… ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ, Π΄ΠΎΠ±Π°Π²ΡŒΡ‚Π΅ ΠΏΡ€Π°Π²ΠΈΠ»Π° Π½Π°ΠΏΡ€ΡΠΌΡƒΡŽ Π² `rules`:
302+
303+
```yaml
304+
find-process-mode: always
305+
306+
rules:
307+
# Discord
308+
- PROCESS-NAME-REGEX,(?i).*discord.*,PROXY Discord
309+
- PROCESS-NAME,Update.exe,PROXY Discord
310+
311+
# AI
312+
- PROCESS-NAME-REGEX,(?i).*claude.*,PROXY AI
313+
- PROCESS-NAME-REGEX,(?i).*chatgpt.*,PROXY AI
314+
315+
# YouTube
316+
- PROCESS-NAME-REGEX,(?i).*youtube.*,PROXY YouTube
317+
318+
# Socials
319+
- PROCESS-NAME-REGEX,(?i).*twitter.*,PROXY Socials
320+
- PROCESS-NAME-REGEX,(?i).*telegram.*,PROXY Socials
321+
- PROCESS-NAME-REGEX,(?i).*instagram.*,PROXY Socials
322+
323+
# Music
324+
- PROCESS-NAME-REGEX,(?i).*spotify.*,PROXY Music
325+
326+
# Torrent
327+
- PROCESS-NAME-REGEX,(?i).*qbittorrent.*,PROXY Torrent
328+
- PROCESS-NAME-REGEX,(?i).*transmission.*,PROXY Torrent
329+
330+
# Π”ΠΎΠΌΠ΅Π½Π½Ρ‹Π΅ ΠΏΡ€Π°Π²ΠΈΠ»Π°
331+
- RULE-SET,youtube,PROXY YouTube
332+
- RULE-SET,discord,PROXY Discord
333+
- MATCH,DIRECT
334+
```
335+
336+
### ΠŸΠ»Π°Ρ‚Ρ„ΠΎΡ€ΠΌΡ‹ ΠΈ ΠΈΠΌΠ΅Π½Π° процСссов
337+
338+
| ΠŸΠ»Π°Ρ‚Ρ„ΠΎΡ€ΠΌΠ° | Π€ΠΎΡ€ΠΌΠ°Ρ‚ ΠΈΠΌΠ΅Π½ΠΈ процСсса | ΠŸΡ€ΠΈΠΌΠ΅Ρ€ |
339+
|-----------|----------------------|--------|
340+
| Windows | `Name.exe` | `Discord.exe`, `Spotify.exe` |
341+
| macOS | `Name` | `Discord`, `Spotify` |
342+
| Linux | `name` | `discord`, `spotify` |
343+
| Android | `package.name` | `com.discord`, `com.spotify.music` |
344+
345+
> **ΠŸΡ€ΠΈΠΌΠ΅Ρ‡Π°Π½ΠΈΠ΅:** На Linux/macOS ΠΌΠΎΠΆΠ΅Ρ‚ ΠΏΠΎΡ‚Ρ€Π΅Π±ΠΎΠ²Π°Ρ‚ΡŒΡΡ запуск mihomo с ΠΏΡ€Π°Π²Π°ΠΌΠΈ `sudo` ΠΈΠ»ΠΈ capabilities `CAP_NET_ADMIN` + `CAP_SYS_PTRACE` для опрСдСлСния ΠΈΠΌΡ‘Π½ процСссов.
346+
347+
---
348+
273349
## πŸ”„ ОбновлСниС списков
274350

275351
Бписки Π΄ΠΎΠΌΠ΅Π½ΠΎΠ² ΠΎΠ±Π½ΠΎΠ²Π»ΡΡŽΡ‚ΡΡ автоматичСски ΠΊΠ°ΠΆΠ΄Ρ‹Π΅ 24 часа (ΠΏΠΎ ΡƒΠΌΠΎΠ»Ρ‡Π°Π½ΠΈΡŽ) благодаря ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρƒ `interval: 86400`.
@@ -322,7 +398,8 @@ ClashDomainsList/
322398
β”œβ”€β”€ torrent.txt # Π’ΠΎΡ€Ρ€Π΅Π½Ρ‚-Ρ‚Ρ€Π΅ΠΊΠ΅Ρ€Ρ‹
323399
β”œβ”€β”€ torrent.svg
324400
β”œβ”€β”€ youtube.txt # YouTube
325-
└── youtube.svg
401+
β”œβ”€β”€ youtube.svg
402+
└── processes.txt # ΠŸΡ€Π°Π²ΠΈΠ»Π° ΠΏΠΎ процСссам (classical)
326403
```
327404
328405
### Π€ΠΎΡ€ΠΌΠ°Ρ‚ Ρ„Π°ΠΉΠ»ΠΎΠ²

β€ŽREADME_EN.mdβ€Ž

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ A collection of domain lists for Clash and compatible proxy clients. Convenient
3333
| <img src="tools.svg" width="200" alt="Tools"> **Tools** | Online tools and services | ~1000 | [tools.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/tools.txt) |
3434
| <img src="torrent.svg" width="200" alt="Torrent"> **Torrent** | Torrent trackers and P2P services | ~40 | [torrent.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/torrent.txt) |
3535
| <img src="youtube.svg" width="200" alt="YouTube"> **YouTube** | YouTube and related Google services | ~8000 | [youtube.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/youtube.txt) |
36+
| **Processes** | Process name rules (mihomo) | ~20 | [processes.txt](https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/processes.txt) |
3637

3738
---
3839

@@ -270,6 +271,81 @@ rules:
270271

271272
---
272273

274+
## πŸ”§ Process Rules (mihomo / Clash Verge)
275+
276+
The `processes.txt` file uses `behavior: classical` and contains `PROCESS-NAME` / `PROCESS-NAME-REGEX` rules for routing by application name.
277+
278+
> **Important:** `.mrs` conversion is **not supported** for classical behavior. Use `format: text` or `format: yaml`.
279+
280+
### Setup (all processes through one proxy)
281+
282+
```yaml
283+
find-process-mode: always # Required for PROCESS-NAME matching
284+
285+
rule-providers:
286+
processes:
287+
type: http
288+
behavior: classical
289+
format: text
290+
url: "https://raw.githubusercontent.com/teslaproduuction/ClashDomainsList/main/processes.txt"
291+
path: ./ruleset/processes.yaml
292+
interval: 86400
293+
294+
rules:
295+
- RULE-SET,processes,PROXY
296+
- MATCH,DIRECT
297+
```
298+
299+
### Per-category routing
300+
301+
For different proxy groups per application, add rules directly to `rules`:
302+
303+
```yaml
304+
find-process-mode: always
305+
306+
rules:
307+
# Discord
308+
- PROCESS-NAME-REGEX,(?i).*discord.*,PROXY Discord
309+
- PROCESS-NAME,Update.exe,PROXY Discord
310+
311+
# AI
312+
- PROCESS-NAME-REGEX,(?i).*claude.*,PROXY AI
313+
- PROCESS-NAME-REGEX,(?i).*chatgpt.*,PROXY AI
314+
315+
# YouTube
316+
- PROCESS-NAME-REGEX,(?i).*youtube.*,PROXY YouTube
317+
318+
# Socials
319+
- PROCESS-NAME-REGEX,(?i).*twitter.*,PROXY Socials
320+
- PROCESS-NAME-REGEX,(?i).*telegram.*,PROXY Socials
321+
- PROCESS-NAME-REGEX,(?i).*instagram.*,PROXY Socials
322+
323+
# Music
324+
- PROCESS-NAME-REGEX,(?i).*spotify.*,PROXY Music
325+
326+
# Torrent
327+
- PROCESS-NAME-REGEX,(?i).*qbittorrent.*,PROXY Torrent
328+
- PROCESS-NAME-REGEX,(?i).*transmission.*,PROXY Torrent
329+
330+
# Domain rules
331+
- RULE-SET,youtube,PROXY YouTube
332+
- RULE-SET,discord,PROXY Discord
333+
- MATCH,DIRECT
334+
```
335+
336+
### Platforms and process names
337+
338+
| Platform | Process name format | Example |
339+
|----------|-------------------|---------|
340+
| Windows | `Name.exe` | `Discord.exe`, `Spotify.exe` |
341+
| macOS | `Name` | `Discord`, `Spotify` |
342+
| Linux | `name` | `discord`, `spotify` |
343+
| Android | `package.name` | `com.discord`, `com.spotify.music` |
344+
345+
> **Note:** On Linux/macOS, mihomo may require `sudo` or capabilities `CAP_NET_ADMIN` + `CAP_SYS_PTRACE` to detect process names.
346+
347+
---
348+
273349
## πŸ”„ Updating Lists
274350

275351
Domain lists are automatically updated every 24 hours (by default) thanks to the `interval: 86400` parameter.
@@ -323,7 +399,8 @@ ClashDomainsList/
323399
β”œβ”€β”€ torrent.txt # Torrent trackers
324400
β”œβ”€β”€ torrent.svg
325401
β”œβ”€β”€ youtube.txt # YouTube
326-
└── youtube.svg
402+
β”œβ”€β”€ youtube.svg
403+
└── processes.txt # Process rules (classical behavior)
327404
```
328405
329406
### File Format

β€Ždiscord.mrsβ€Ž

-37.8 KB
Binary file not shown.

0 commit comments

Comments
Β (0)