ubo_segen

Crates.ioubo_segen
lib.rsubo_segen
version0.1.0
created_at2025-07-06 18:24:34.357428+00
updated_at2025-07-06 18:24:34.357428+00
descriptionCLI tool to generate uBlock Origin's blocklists for search engine results.
homepage
repositoryhttps://git.sr.ht/~nin0/top-domain-list
max_upload_size
id1740351
size15,114
Nino (treyssatvincent)

documentation

README

ubo_segen

CLI tool to generate uBlock Origin's blocklists for search engine results.

Usage

Usage: ubo_segen [OPTIONS] --search-engine <SEARCH_ENGINE> --name <NAME> <PATH>

Arguments:
  <PATH>  Path to a file containing a list of domains (one per line)

Options:
  -s, --search-engine <SEARCH_ENGINE>  What search engine to target [possible values: duckduckgo, duckduckgo-html, duckduckgo-lite, google, startpage]
  -n, --name <NAME>                    Name of the blocklist
  -e, --expires <EXPIRES>              List TTL (in days) [default: 7]
  -H, --homepage <HOMEPAGE>            URL of the homepage of your blocklist
  -I, --issues <ISSUES>                URL of a place where to report an issue
  -L, --license <LICENSE>              URL where to find the license for your blocklist
  -h, --help                           Print help

Exemple

echo "quickapedia.com" > bad_domains.txt
ubo_segen --search-engine duckduckgo-lite --name example --expires 14 bad_domains.txt
! Title: uBO-search-engine – lite.duckduckgo.com - example
! Expires: 336 hours
! Description: Block websites from example and remove them from lite.duckduckgo.com

||quickapedia.com^
lite.duckduckgo.com##.web-result > div > a[href*="quickapedia.com"]:xpath(../..)
Commit count: 0

cargo fmt