Crates.io | ubo_segen |
lib.rs | ubo_segen |
version | 0.1.0 |
created_at | 2025-07-06 18:24:34.357428+00 |
updated_at | 2025-07-06 18:24:34.357428+00 |
description | CLI tool to generate uBlock Origin's blocklists for search engine results. |
homepage | |
repository | https://git.sr.ht/~nin0/top-domain-list |
max_upload_size | |
id | 1740351 |
size | 15,114 |
CLI tool to generate uBlock Origin's blocklists for search engine results.
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
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(../..)