mirror of
https://github.com/egor-white/zaprett.git
synced 2025-12-10 13:30:23 +05:00
Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0213c239fc | ||
|
|
2d90aea5ca | ||
|
|
e62336e253 | ||
|
|
dd78b59a68 | ||
|
|
0a0c3fd80b | ||
|
|
3a7c40f167 | ||
|
|
9ef7c70f78 | ||
|
|
534f3a733a | ||
|
|
ccaac37b52 | ||
|
|
c2db7fbdac | ||
|
|
ea92b6cf6f | ||
|
|
0fbcd24088 | ||
|
|
45017d35b2 | ||
|
|
718ed43ef8 | ||
|
|
6318977857 | ||
|
|
e3effc3292 | ||
|
|
c92b3a1b19 | ||
|
|
afed7b1122 | ||
|
|
1fa0e306ac | ||
|
|
fece7149e3 | ||
|
|
751788feb8 | ||
|
|
cc3500635f | ||
|
|
b01c5dc95f | ||
|
|
bf69249e12 |
14
.github/workflows/workflow.yml
vendored
14
.github/workflows/workflow.yml
vendored
@@ -68,8 +68,8 @@ jobs:
|
|||||||
cp -r zaprett/* zaprett-tv/
|
cp -r zaprett/* zaprett-tv/
|
||||||
- name: Download and copy actual lists
|
- name: Download and copy actual lists
|
||||||
run: |
|
run: |
|
||||||
wget https://raw.githubusercontent.com/CherretGit/zaprett-hosts-repo/refs/heads/main/lists/list-youtube.txt -O lists/list-youtube.txt
|
wget https://raw.githubusercontent.com/CherretGit/zaprett-repo/refs/heads/main/lists/include/list-youtube.txt -O lists/list-youtube.txt
|
||||||
wget https://raw.githubusercontent.com/CherretGit/zaprett-hosts-repo/refs/heads/main/lists/list-discord.txt -O lists/list-discord.txt
|
wget https://raw.githubusercontent.com/CherretGit/zaprett-repo/refs/heads/main/lists/include/list-discord.txt -O lists/list-discord.txt
|
||||||
|
|
||||||
cp lists/list-youtube.txt zaprett/system/etc/zaprett/lists/
|
cp lists/list-youtube.txt zaprett/system/etc/zaprett/lists/
|
||||||
cp lists/list-youtube.txt zaprett-hosts/system/etc/zaprett/lists/
|
cp lists/list-youtube.txt zaprett-hosts/system/etc/zaprett/lists/
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
name=zaprett
|
name=zaprett
|
||||||
version=${{ inputs.version }}
|
version=${{ inputs.version }}
|
||||||
versionCode=${{ inputs.version_code }}
|
versionCode=${{ inputs.version_code }}
|
||||||
author=egor-white, Huananzhi X99, Cherret
|
author=egor-white, Cherret
|
||||||
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update.json
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update.json
|
||||||
EOF
|
EOF
|
||||||
@@ -97,9 +97,9 @@ jobs:
|
|||||||
name=zaprett-hosts
|
name=zaprett-hosts
|
||||||
version=${{ inputs.version }}
|
version=${{ inputs.version }}
|
||||||
versionCode=${{ inputs.version_code }}
|
versionCode=${{ inputs.version_code }}
|
||||||
author=egor-white, Huananzhi X99, Cherret
|
author=egor-white, Cherret
|
||||||
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-extended.json
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-hosts.json
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > zaprett-tv/module.prop <<EOF
|
cat > zaprett-tv/module.prop <<EOF
|
||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
name=zaprett-tv
|
name=zaprett-tv
|
||||||
version=${{ inputs.version }}
|
version=${{ inputs.version }}
|
||||||
versionCode=${{ inputs.version_code }}
|
versionCode=${{ inputs.version_code }}
|
||||||
author=egor-white, Huananzhi X99, Cherret
|
author=egor-white, Cherret
|
||||||
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-tv.json
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-tv.json
|
||||||
EOF
|
EOF
|
||||||
@@ -178,7 +178,7 @@ jobs:
|
|||||||
|
|
||||||
⬇️ <a href='https://github.com/egor-white/zaprett/releases/tag/${{ inputs.tag }}'>Скачать</a>
|
⬇️ <a href='https://github.com/egor-white/zaprett/releases/tag/${{ inputs.tag }}'>Скачать</a>
|
||||||
|
|
||||||
ℹ️ @zaprett_module<a href='zaprett.xyz'>[web]</a>
|
ℹ️ @zaprett_module <a href='mailru.pro'>[web]</a>
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/sendMessage" \
|
curl -X POST "https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/sendMessage" \
|
||||||
-d chat_id=-1002531270265 \
|
-d chat_id=-1002531270265 \
|
||||||
|
|||||||
2
.github/workflows/workflow_without_post.yml
vendored
2
.github/workflows/workflow_without_post.yml
vendored
@@ -99,7 +99,7 @@ jobs:
|
|||||||
versionCode=${{ inputs.version_code }}
|
versionCode=${{ inputs.version_code }}
|
||||||
author=egor-white, Huananzhi X99, Cherret
|
author=egor-white, Huananzhi X99, Cherret
|
||||||
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module
|
||||||
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-extended.json
|
updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-hosts.json
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > zaprett-tv/module.prop <<EOF
|
cat > zaprett-tv/module.prop <<EOF
|
||||||
|
|||||||
26
README.md
26
README.md
@@ -7,11 +7,33 @@
|
|||||||
Требования:
|
Требования:
|
||||||
* Magisk 24.1+
|
* Magisk 24.1+
|
||||||
* Прямые руки
|
* Прямые руки
|
||||||
* Termux или другой эмулятор терминала **И/ИЛИ** [приложение zaprett](https://github.com/egor-white/zaprett-app) **ИЛИ** [ремейк приложения zaprett от cherret](https://github.com/CherretGit/zaprett-app)
|
* Termux или другой эмулятор терминала **И/ИЛИ** [приложение zaprett](https://github.com/egor-white/zaprett-app) (не обновляется) **ИЛИ** [ремейк приложения zaprett от cherret](https://github.com/CherretGit/zaprett-app)
|
||||||
|
|
||||||
На данный момент модуль умеет:
|
На данный момент модуль умеет:
|
||||||
+ Включать, выключать и перезапускать nfqws
|
+ Включать, выключать и перезапускать nfqws
|
||||||
|
+ Работать с листами и стратегиями
|
||||||
|
+ Предлагать обновления через Magisk/KSU/KSU Next/APatch
|
||||||
|
|
||||||
|
## Какую версию модуля выбрать?
|
||||||
|
|
||||||
|
В актуальных релизах есть 3 версии модуля, а именно:
|
||||||
|
- zaprett.zip
|
||||||
|
- zaprett-hosts.zip
|
||||||
|
- zaprett-tv.zip
|
||||||
|
|
||||||
|
Основные их отличия представленны в таблице ниже.
|
||||||
|
Для устройств на Android TV **рекомендуется использовать именно TV версию** из-за некоторых особенностей работы этой ОС.
|
||||||
|
|Версия|Списки|/etc/hosts|
|
||||||
|
|------|------|----------|
|
||||||
|
|zaprett|list-youtube.txt, list-discord.txt|:x: Нет|
|
||||||
|
|zaprett-tv|list-youtube.txt|:x: Нет|
|
||||||
|
|zaprett-hosts|list-youtube.txt,list-discord.txt|:white_check_mark: Есть|
|
||||||
|
|
||||||
|
## Что такое /etc/hosts?
|
||||||
|
Говоря грубо, это файл, который влияет на работу нейросетей и других недоступных сервисов, перенаправляя ваш траффик на сторонние сервера.
|
||||||
|
|
||||||
|
Если вы используете модули, которые подменяют этот файл (например, всевозможные блокировщики рекламы и разблокировщики нейросетей), выбирайте версию <big>**без hosts**</big>, иначе модули будут конфликтовать друг с другом.
|
||||||
|
::: warning
|
||||||
|
Сервера, используемые в качестве прокси и указанные в файле hosts нам неподконтрольны, мы не несём за них отвественность, используйте с осторожностью
|
||||||
|
:::
|
||||||
|
|
||||||
Создано - [egor-white](https://t.me/cheesedroid), [Cherret](https://t.me/Cherret), [MT6833](https://t.me/MT6833).
|
|
||||||
@@ -1 +1,6 @@
|
|||||||
Обновление бинарников
|
Список изменений:
|
||||||
|
1) Обновление бинарников zapret до версии 71.3
|
||||||
|
2) Добавлена поддержка черного списка доменов
|
||||||
|
3) Обновлен hosts файл Внимание!
|
||||||
|
|
||||||
|
**Данная версия модуля совместима с приложением версии 2.7**
|
||||||
|
|||||||
250
hosts/hosts
250
hosts/hosts
@@ -1,35 +1,215 @@
|
|||||||
127.0.0.1 localhost
|
# Дополнение к zapret:
|
||||||
::1 ip6-localhost
|
157.240.245.174 instagram.com
|
||||||
89.108.98.20 chatgpt.com
|
157.240.245.174 www.instagram.com
|
||||||
134.0.118.88 ab.chatgpt.com
|
157.240.245.174 b.i.instagram.com
|
||||||
89.108.98.20 auth.openai.com
|
157.240.245.174 z-p42-chat-e2ee-ig.facebook.com
|
||||||
89.108.98.20 auth0.openai.com
|
157.240.245.174 help.instagram.com
|
||||||
89.108.98.20 platform.openai.com
|
3.66.189.153 protonmail.com
|
||||||
89.108.98.20 cdn.oaistatic.com
|
3.66.189.153 mail.proton.me
|
||||||
89.108.98.20 files.oaiusercontent.com
|
64.233.164.198 yt3.ggpht.com
|
||||||
89.108.98.20 cdn.auth0.com
|
52.223.13.41 tracker.openbittorrent.com
|
||||||
89.108.98.20 tcr9i.chat.openai.com
|
|
||||||
89.108.98.20 webrtc.chatgpt.com
|
# ChatGPT, OpenAI:
|
||||||
89.108.98.20 android.chat.openai.com
|
204.12.192.222 chatgpt.com
|
||||||
89.108.98.20 gemini.google.com
|
204.12.192.222 ab.chatgpt.com
|
||||||
89.108.98.20 aistudio.google.com
|
204.12.192.222 auth.openai.com
|
||||||
89.108.98.20 ai.google
|
204.12.192.222 auth0.openai.com
|
||||||
89.108.98.20 assistant-s3-pa.googleapis.com
|
204.12.192.222 platform.openai.com
|
||||||
89.108.98.20 generativelanguage.googleapis.com
|
204.12.192.222 cdn.oaistatic.com
|
||||||
89.108.98.20 alkalimakersuite-pa.clients6.google.com
|
204.12.192.222 files.oaiusercontent.com
|
||||||
64.233.162.188 mtalk.google.com
|
204.12.192.222 cdn.auth0.com
|
||||||
89.108.98.20 copilot.microsoft.com
|
204.12.192.222 tcr9i.chat.openai.com
|
||||||
89.108.98.20 sydney.bing.com
|
204.12.192.222 webrtc.chatgpt.com
|
||||||
89.108.98.20 edgeservices.bing.com
|
204.12.192.219 android.chat.openai.com
|
||||||
89.108.98.20 claude.ai
|
204.12.192.222 api.openai.com
|
||||||
89.108.98.20 aitestkitchen.withgoogle.com
|
204.12.192.221 operator.chatgpt.com
|
||||||
89.108.98.20 aisandbox-pa.googleapis.com
|
204.12.192.222 sora.chatgpt.com
|
||||||
89.108.98.20 o.pki.goog
|
204.12.192.222 sora.com
|
||||||
89.108.98.20 labs.google
|
204.12.192.222 sora.chatgpt.com
|
||||||
89.108.98.20 notebooklm.google
|
204.12.192.222 videos.openai.com
|
||||||
89.108.98.20 notebooklm.google.com
|
|
||||||
89.108.98.20 www.notion.so
|
# Сервисы Google:
|
||||||
89.108.98.20 www.googleapis.com
|
204.12.192.222 gemini.google.com
|
||||||
89.108.98.20 proactivebackend-pa.googleapis.com
|
204.12.192.222 aistudio.google.com
|
||||||
89.108.98.20 grok.com
|
204.12.192.222 generativelanguage.googleapis.com
|
||||||
89.108.98.20 assets.grok.com
|
204.12.192.222 aitestkitchen.withgoogle.com
|
||||||
|
204.12.192.219 aisandbox-pa.googleapis.com
|
||||||
|
204.12.192.222 webchannel-alkalimakersuite-pa.clients6.google.com
|
||||||
|
204.12.192.221 alkalimakersuite-pa.clients6.google.com
|
||||||
|
204.12.192.221 assistant-s3-pa.googleapis.com
|
||||||
|
204.12.192.222 proactivebackend-pa.googleapis.com
|
||||||
|
204.12.192.222 o.pki.goog
|
||||||
|
204.12.192.222 labs.google
|
||||||
|
204.12.192.222 notebooklm.google
|
||||||
|
204.12.192.222 notebooklm.google.com
|
||||||
|
204.12.192.222 jules.google.com
|
||||||
|
204.12.192.222 stitch.withgoogle.com
|
||||||
|
|
||||||
|
# Microsoft Copilot, Microsoft Rewards, Xbox, Xbox Cloud Gaming:
|
||||||
|
204.12.192.222 copilot.microsoft.com
|
||||||
|
204.12.192.222 sydney.bing.com
|
||||||
|
204.12.192.222 edgeservices.bing.com
|
||||||
|
204.12.192.221 rewards.bing.com
|
||||||
|
204.12.192.222 xsts.auth.xboxlive.com
|
||||||
|
204.12.192.222 xgpuwebf2p.gssv-play-prod.xboxlive.com
|
||||||
|
204.12.192.222 xgpuweb.gssv-play-prod.xboxlive.com
|
||||||
|
|
||||||
|
# Spotify:
|
||||||
|
204.12.192.222 api.spotify.com
|
||||||
|
204.12.192.222 xpui.app.spotify.com
|
||||||
|
204.12.192.222 appresolve.spotify.com
|
||||||
|
204.12.192.222 login5.spotify.com
|
||||||
|
204.12.192.222 login.app.spotify.com
|
||||||
|
204.12.192.222 encore.scdn.co
|
||||||
|
204.12.192.222 ap-gew1.spotify.com
|
||||||
|
204.12.192.222 gew1-spclient.spotify.com
|
||||||
|
204.12.192.222 spclient.wg.spotify.com
|
||||||
|
204.12.192.222 api-partner.spotify.com
|
||||||
|
204.12.192.222 aet.spotify.com
|
||||||
|
204.12.192.222 www.spotify.com
|
||||||
|
204.12.192.222 accounts.spotify.com
|
||||||
|
204.12.192.221 open.spotify.com
|
||||||
|
|
||||||
|
# GitHub Copilot:
|
||||||
|
204.12.192.222 api.github.com
|
||||||
|
204.12.192.222 api.individual.githubcopilot.com
|
||||||
|
204.12.192.222 proxy.individual.githubcopilot.com
|
||||||
|
|
||||||
|
# JetBrains:
|
||||||
|
50.7.85.221 datalore.jetbrains.com
|
||||||
|
107.150.34.100 plugins.jetbrains.com
|
||||||
|
204.12.192.222 download.jetbrains.com
|
||||||
|
|
||||||
|
# ElevenLabs:
|
||||||
|
204.12.192.222 elevenlabs.io
|
||||||
|
204.12.192.222 api.us.elevenlabs.io
|
||||||
|
204.12.192.222 elevenreader.io
|
||||||
|
204.12.192.222 api.elevenlabs.io
|
||||||
|
204.12.192.222 help.elevenlabs.io
|
||||||
|
|
||||||
|
# Truth Social
|
||||||
|
204.12.192.221 truthsocial.com
|
||||||
|
204.12.192.221 static-assets-1.truthsocial.com
|
||||||
|
|
||||||
|
# Grok
|
||||||
|
204.12.192.222 grok.com
|
||||||
|
204.12.192.222 accounts.x.ai
|
||||||
|
204.12.192.222 assets.grok.com
|
||||||
|
|
||||||
|
# Tidal
|
||||||
|
204.12.192.222 api.tidal.com
|
||||||
|
204.12.192.222 listen.tidal.com
|
||||||
|
204.12.192.222 login.tidal.com
|
||||||
|
204.12.192.222 auth.tidal.com
|
||||||
|
204.12.192.222 link.tidal.com
|
||||||
|
204.12.192.222 dd.tidal.com
|
||||||
|
204.12.192.222 resources.tidal.com
|
||||||
|
204.12.192.221 images.tidal.com
|
||||||
|
204.12.192.222 fsu.fa.tidal.com
|
||||||
|
204.12.192.222 geolocation.onetrust.com
|
||||||
|
204.12.192.222 api.squareup.com
|
||||||
|
204.12.192.222 api-global.squareup.com
|
||||||
|
|
||||||
|
# Clash Royale, Clash of Clans, Brawl Stars
|
||||||
|
3.160.212.81 cdn.id.supercell.com
|
||||||
|
18.172.112.81 security.id.supercell.com
|
||||||
|
45.95.233.23 accounts.supercell.com
|
||||||
|
18.66.195.96 game-assets.clashroyaleapp.com
|
||||||
|
51.158.190.98 game.clashroyaleapp.com
|
||||||
|
3.162.38.39 game-assets.clashofclans.com
|
||||||
|
70.34.251.56 gamea.clashofclans.com
|
||||||
|
108.157.194.81 clashofclans.inbox.supercell.com
|
||||||
|
179.43.168.109 game.brawlstarsgame.com
|
||||||
|
18.239.69.129 game-assets.brawlstarsgame.com
|
||||||
|
204.12.192.222 store.supercell.com
|
||||||
|
|
||||||
|
# DeepL
|
||||||
|
204.12.192.222 deepl.com
|
||||||
|
204.12.192.222 www.deepl.com
|
||||||
|
204.12.192.222 www2.deepl.com
|
||||||
|
204.12.192.222 login-wall.deepl.com
|
||||||
|
204.12.192.219 w.deepl.com
|
||||||
|
204.12.192.222 s.deepl.com
|
||||||
|
204.12.192.222 dict.deepl.com
|
||||||
|
204.12.192.222 ita-free.www.deepl.com
|
||||||
|
204.12.192.222 write-free.www.deepl.com
|
||||||
|
204.12.192.222 experimentation.deepl.com
|
||||||
|
|
||||||
|
# Deezer
|
||||||
|
204.12.192.220 deezer.com
|
||||||
|
204.12.192.220 www.deezer.com
|
||||||
|
204.12.192.220 dzcdn.net
|
||||||
|
204.12.192.220 payment.deezer.com
|
||||||
|
|
||||||
|
# Weather.com
|
||||||
|
204.12.192.220 weather.com
|
||||||
|
204.12.192.220 upsx.weather.com
|
||||||
|
|
||||||
|
# Guilded
|
||||||
|
204.12.192.219 guilded.gg
|
||||||
|
204.12.192.219 www.guilded.gg
|
||||||
|
|
||||||
|
# Fitbit
|
||||||
|
204.12.192.219 api.fitbit.com
|
||||||
|
204.12.192.219 fitbit-pa.googleapis.com
|
||||||
|
204.12.192.219 fitbitvestibuleshim-pa.googleapis.com
|
||||||
|
204.12.192.219 fitbit.google.com
|
||||||
|
|
||||||
|
# 4PDA
|
||||||
|
185.246.223.127 4pda.to
|
||||||
|
185.246.223.127 app.4pda.to
|
||||||
|
185.246.223.127 s.4pda.to
|
||||||
|
185.246.223.127 appbk.4pda.to
|
||||||
|
45.81.252.72 cs11a0a.4pda.ws
|
||||||
|
185.234.59.26 cs7f6c.4pda.ws
|
||||||
|
217.182.194.171 cs4a0d.4pda.ws
|
||||||
|
141.94.143.110 cs3b2e.4pda.ws
|
||||||
|
54.36.104.75 cs2c9f.4pda.ws
|
||||||
|
|
||||||
|
# Другое:
|
||||||
|
204.12.192.222 claude.ai
|
||||||
|
204.12.192.220 console.anthropic.com
|
||||||
|
204.12.192.222 www.notion.so
|
||||||
|
50.7.85.222 www.canva.com
|
||||||
|
204.12.192.222 www.intel.com
|
||||||
|
204.12.192.219 www.dell.com
|
||||||
|
50.7.85.219 www.tiktok.com # Только на сайте. Приложение определяет регион по оператору, а не по IP. Поэтому есть моды.
|
||||||
|
142.54.189.106 web.archive.org # Блокирует от российских IP некоторые сайты
|
||||||
|
204.12.192.220 developer.nvidia.com
|
||||||
|
107.150.34.99 builds.parsec.app
|
||||||
|
204.12.192.220 tria.ge
|
||||||
|
204.12.192.220 api.imgur.com
|
||||||
|
45.95.233.23 www.dyson.com
|
||||||
|
45.95.233.23 www.dyson.fr
|
||||||
|
45.95.233.23 usher.ttvnw.net
|
||||||
|
64.188.98.242 api.manus.im
|
||||||
|
|
||||||
|
# Блокировка реально плохих сайтов
|
||||||
|
# Скримеры:
|
||||||
|
0.0.0.0 only-fans.uk
|
||||||
|
0.0.0.0 only-fans.me
|
||||||
|
0.0.0.0 onlyfans.wtf
|
||||||
|
# IP Logger'ы:
|
||||||
|
0.0.0.0 iplogger.org
|
||||||
|
0.0.0.0 wl.gl
|
||||||
|
0.0.0.0 ed.tc
|
||||||
|
0.0.0.0 bc.ax
|
||||||
|
0.0.0.0 maper.info
|
||||||
|
0.0.0.0 2no.co
|
||||||
|
0.0.0.0 yip.su
|
||||||
|
0.0.0.0 iplis.ru
|
||||||
|
0.0.0.0 ezstat.ru
|
||||||
|
0.0.0.0 iplog.co
|
||||||
|
0.0.0.0 grabify.org
|
||||||
|
# Мусор/реклама:
|
||||||
|
0.0.0.0 log16-platform-ycru.tiktokv.com
|
||||||
|
0.0.0.0 adfox.yandex.ru
|
||||||
|
0.0.0.0 adfstat.yandex.ru
|
||||||
|
0.0.0.0 ads-api.tiktok.com
|
||||||
|
0.0.0.0 ads-api.twitter.com
|
||||||
|
0.0.0.0 ads-dev.pinterest.com
|
||||||
|
0.0.0.0 ads-sg.tiktok.com
|
||||||
|
0.0.0.0 an.yandex.ru
|
||||||
|
0.0.0.0 appmetrica.yandex.ru
|
||||||
|
0.0.0.0 mc.yandex.ru
|
||||||
|
0.0.0.0 amc.yandex.ru
|
||||||
@@ -6,9 +6,9 @@ ui_print " / / (_| | |_) | | | __/ |_| |_ "
|
|||||||
ui_print " /___\__,_| .__/|_| \\___|\__|\__|"
|
ui_print " /___\__,_| .__/|_| \\___|\__|\__|"
|
||||||
ui_print " | | "
|
ui_print " | | "
|
||||||
ui_print " |_| "
|
ui_print " |_| "
|
||||||
ui_print "(!) To download app, use Telegram chat"
|
ui_print "(!) To download app, use Telegram channel"
|
||||||
ui_print "Module by: egorwhite, Cherret, Huananzhi X99"
|
ui_print "Module by: egor-white, Cherret, Huananzhi X99"
|
||||||
ui_print "Apps by: egorwhite, Cherret"
|
ui_print "App by: egor-white, Cherret"
|
||||||
ui_print "####################"
|
ui_print "####################"
|
||||||
|
|
||||||
ui_print "Unpacking archive..."
|
ui_print "Unpacking archive..."
|
||||||
@@ -19,8 +19,9 @@ mkdir /sdcard/zaprett; mkdir /sdcard/zaprett/lists; mkdir /sdcard/zaprett/bin; m
|
|||||||
|
|
||||||
ui_print "Filling configuration file if not exist..."
|
ui_print "Filling configuration file if not exist..."
|
||||||
if [ ! -f "/sdcard/zaprett/config" ]; then
|
if [ ! -f "/sdcard/zaprett/config" ]; then
|
||||||
echo autorestart=true > /sdcard/zaprett/config
|
echo active_lists=/storage/emulated/0/zaprett/lists/list-youtube.txt >> /sdcard/zaprett/config
|
||||||
echo activelists=/storage/emulated/0/zaprett/lists/list-youtube.txt >> /sdcard/zaprett/config
|
echo active_exclude_lists= >> /sdcard/zaprett/config
|
||||||
|
echo list_type=whitelist
|
||||||
echo zaprettdir=/sdcard/zaprett >> /sdcard/zaprett/config
|
echo zaprettdir=/sdcard/zaprett >> /sdcard/zaprett/config
|
||||||
echo strategy="" >> /sdcard/zaprett/config
|
echo strategy="" >> /sdcard/zaprett/config
|
||||||
fi
|
fi
|
||||||
@@ -64,4 +65,4 @@ chmod 777 /sdcard/zaprett; chmod 777 $MODPATH/service.sh
|
|||||||
ui_print "Cleaning temp files..."
|
ui_print "Cleaning temp files..."
|
||||||
rm -rf $MODPATH/system/etc/zaprett
|
rm -rf $MODPATH/system/etc/zaprett
|
||||||
|
|
||||||
ui_print "Installation done. Telegram chat: https://t.me/zaprett_module"
|
ui_print "Installation done. Telegram channel: https://t.me/zaprett_module"
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
while [ -z "$(getprop sys.boot_completed)" ]; do sleep 2; done
|
while [ -z "$(getprop sys.boot_completed)" ]; do sleep 2; done
|
||||||
sleep 15
|
su -c "zaprett start"
|
||||||
source /storage/emulated/0/zaprett/config
|
while true; do
|
||||||
if [ "$autorestart" = "true" ]; then
|
sleep 3600
|
||||||
su -c "zaprett start"
|
if [ -f "/data/adb/modules/zaprett/autostart" ]; then
|
||||||
while true; do
|
su -c "zaprett restart"
|
||||||
sleep 3600
|
fi
|
||||||
su -c "zaprett restart"
|
done
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -12,16 +12,56 @@ start_service() {
|
|||||||
echo "Starting zaprett..."
|
echo "Starting zaprett..."
|
||||||
|
|
||||||
hostlist=""
|
hostlist=""
|
||||||
for itm in $(echo "$activelists" | tr ',' ' ' | sort -u); do
|
ipset=""
|
||||||
if [ -f "$itm" ]; then
|
|
||||||
dst="/data/adb/modules/zaprett/tmp/$(basename "$itm")"
|
case "$list_type" in
|
||||||
cp "$itm" "$dst"
|
whitelist)
|
||||||
case "$hostlist" in
|
lists="$active_lists"
|
||||||
*"--hostlist=$dst"*) ;;
|
ipsets="$active_ipsets"
|
||||||
*) hostlist="$hostlist --hostlist=$dst" ;;
|
opt="--hostlist"
|
||||||
esac
|
ipopt="--ipset"
|
||||||
fi
|
;;
|
||||||
done
|
blacklist)
|
||||||
|
lists="$active_exclude_lists"
|
||||||
|
ipsets="$active_exclude_ipsets"
|
||||||
|
opt="--hostlist-exclude"
|
||||||
|
ipopt="--ipset-exclude"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown list-type: $list_type" >&2
|
||||||
|
lists=""
|
||||||
|
ipsets=""
|
||||||
|
opt=""
|
||||||
|
ipopt=""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
if [ -n "$lists" ] && [ -n "$opt" ]; then
|
||||||
|
for itm in $(echo "$lists" | tr ',' ' ' | sort -u); do
|
||||||
|
if [ -f "$itm" ]; then
|
||||||
|
dst="/data/adb/modules/zaprett/tmp/$(basename "$itm")"
|
||||||
|
cp "$itm" "$dst"
|
||||||
|
case "$hostlist" in
|
||||||
|
*"$opt=$dst"*) ;;
|
||||||
|
*) hostlist="$hostlist $opt=$dst" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$ipsets" ] && [ -n "$ipopt" ]; then
|
||||||
|
for ipt in $(echo "$ipsets" | tr ',' ' ' | sort -u); do
|
||||||
|
if [ -f "$ipt" ]; then
|
||||||
|
dst="/data/adb/modules/zaprett/tmp/$(basename "$ipt")"
|
||||||
|
cp "$ipt" "$dst"
|
||||||
|
case "$ipset" in
|
||||||
|
*"$ipopt=$dst"*) ;;
|
||||||
|
*) ipset="$ipset $ipopt=$dst" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
config=""
|
config=""
|
||||||
if [[ -n "$strategy" && -f "$strategy" ]]; then
|
if [[ -n "$strategy" && -f "$strategy" ]]; then
|
||||||
@@ -74,7 +114,7 @@ if [ "$1" == "restart" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "help" ]; then
|
if [ "$1" == "help" ]; then
|
||||||
echo -e "Помощь по модулю zaprett:\nzaprett start - запуск сервиса\nzaprett stop - остановка сервиса\nzaprett restart - перезапуск сервиса\nzaprett status - статус сервиса\nzaprett module-ver - версия модуля\nzaprett bin-ver - версия бинарных файлов"
|
echo -e "Помощь по модулю zaprett:\nzaprett start - запуск сервиса\nzaprett stop - остановка сервиса\nzaprett restart - перезапуск сервиса\nzaprett status - статус сервиса\nzaprett module-ver - версия модуля\nzaprett bin-ver - версия бинарных файлов\nzaprett autostart - переключение автозапуска модуля\nzaprett get-autostart - получить активен ли автозапуск"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "module-ver" ]; then
|
if [ "$1" == "module-ver" ]; then
|
||||||
@@ -85,6 +125,26 @@ if [ "$1" == "bin-ver" ]; then
|
|||||||
nfqws --version | grep -o 'version v[0-9.]*' | head -n1 | cut -d' ' -f2
|
nfqws --version | grep -o 'version v[0-9.]*' | head -n1 | cut -d' ' -f2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "autostart" ]; then
|
||||||
|
FILE="/data/adb/modules/zaprett/autostart"
|
||||||
|
if [ -f "$FILE" ]; then
|
||||||
|
rm "$FILE"
|
||||||
|
echo "false"
|
||||||
|
else
|
||||||
|
touch "$FILE"
|
||||||
|
echo "true"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "get-autostart" ]; then
|
||||||
|
FILE="/data/adb/modules/zaprett/autostart"
|
||||||
|
if [ -f "$FILE" ]; then
|
||||||
|
echo "true"
|
||||||
|
else
|
||||||
|
echo "false"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z $1 ]]; then
|
if [[ -z $1 ]]; then
|
||||||
echo "zaprett installed. Telegram: t.me/zaprett_module"
|
echo "zaprett installed. Telegram: t.me/zaprett_module"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "4.8",
|
"version": "5.0",
|
||||||
"versionCode": 48,
|
"versionCode": 50,
|
||||||
"zipUrl": "https://github.com/egor-white/zaprett/releases/download/4.8.0/zaprett.zip",
|
"zipUrl": "https://github.com/egor-white/zaprett/releases/download/5.0.0/zaprett.zip",
|
||||||
"changelog": "https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/changelog.md"
|
"changelog": "https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/changelog.md"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "4.8",
|
"version": "5.0",
|
||||||
"versionCode": 48,
|
"versionCode": 50,
|
||||||
"zipUrl": "https://github.com/egor-white/zaprett/releases/download/4.8.0/zaprett-hosts.zip",
|
"zipUrl": "https://github.com/egor-white/zaprett/releases/download/5.0.0/zaprett-hosts.zip",
|
||||||
"changelog": "https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/changelog.md"
|
"changelog": "https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/changelog.md"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "4.8",
|
"version": "5.0",
|
||||||
"versionCode": 48,
|
"versionCode": 50,
|
||||||
"zipUrl": "https://github.com/egor-white/zaprett/releases/download/4.8.0/zaprett-tv.zip",
|
"zipUrl": "https://github.com/egor-white/zaprett/releases/download/5.0.0/zaprett-tv.zip",
|
||||||
"changelog": "https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/changelog.md"
|
"changelog": "https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/changelog.md"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user