Files
LihonT/plugins/examples/README.md
cheb0chik 6450a7719c Add an easy example plugin
A ready .ltp that hides #fyp videos, with a short readme and the five-line source.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 17:55:14 +03:00

21 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Пример лёгкого плагина
`vasya.bez-fyp.ltp` — готовый плагин «Без fyp»: он скрывает в ленте видео с хэштегами `#fyp` и `#foryou`.
Права ему нужны только одни: скрывать видео. В интернет он не ходит.
Как поставить: отправьте файл на телефон, откройте его в LihonT (Настройки мода → Плагины) и включите.
Мод покажет, что плагин делает, прежде чем вы его включите.
Как сделать такой же самому: исходник лежит в `sdk/lihont-ltp/examples/01_hide_hashtag.py`, это пять строк:
```python
from lihont_ltp import *
plugin = Plugin("Без fyp", author="Вася", description="Скрывает видео с хэштегами fyp и foryou", license="MIT")
plugin.video(hashtag("fyp", "foryou"), hide)
plugin.save()
```
Библиотека ставится так: `pip install "git+https://git.lihont.space/lihont/LihonT.git#subdirectory=sdk/lihont-ltp"`.
Полный разбор — в `docs/plugins-guide.md`.