[GH-ISSUE #204] It might be easier to have a script that automatically compiles each form of the blocklist from a raw list of blocked websites #126

Open
opened 2026-08-06 02:13:04 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @ngoomie on GitHub (Jul 27, 2025).
Original GitHub issue: https://github.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/issues/204

Hope it's okay to post a suggestion like this, I keep thinking something like this might make maintaining the multiple lists a bit more easy workload wise. I myself have a uBlacklist blocklist for Fandom wikis that have an alternative somewhere else which is multi-language and has a script that automatically compiles the filter list from a YAML I have that lists off wiki subdomains as well as which language versions for that wiki to block in this manner:

ark:
  [ de, en, es, hr, it, ja, ko, nl, pl, pt,
    ru, th, zh ]

which then produces output like this:

*://ark.fandom.com/de/wiki/*
*://ark.fandom.com/es/wiki/*
*://ark.fandom.com/hr/wiki/*
*://ark.fandom.com/it/wiki/*
*://ark.fandom.com/ja/wiki/*
*://ark.fandom.com/ko/wiki/*
*://ark.fandom.com/nl/wiki/*
*://ark.fandom.com/pl/wiki/*
*://ark.fandom.com/pt/wiki/*
*://ark.fandom.com/ru/wiki/*
*://ark.fandom.com/th/wiki/*
*://ark.fandom.com/wiki/*
*://ark.fandom.com/zh/wiki/*

Which definitely lightens the load typing-wise, even if I were to use copy-paste a lot to make the output manually :3

This project is a bit different in that it would need one input (probably literally just a domain name, or perhaps a specific URL for some instances) instead of YAML input with various options like this, and would also need then the ability to output it in multiple formats, one in the uBlacklist format, and the rest in the various formats needed to block these results from various search engines using uBlock Origin, and this might make it easier if the format for any of the uBlock Origin rules needs to be changed.

I could theoretically do this in Perl, I'm just not so sure it's a great idea since I know I'm like one of a very comparatively minuscule amount of people using Perl these days -- I would imagine you almost certainly aren't using Perl yourself, I very rarely run into Perl users just at random. Something like Python ideally would be better because then it's probably easier for whoever to come and contribute and make changes to the Python script itself if that were ever needed. I don't really know Python well enough to do something like this yet though.

No pressure though if you're not sure it's a good idea or just don't want to! I just keep thinking about this whenever I come here to report a domain for inclusion so I figured it might be worth a mention, at the very least so my brain will stop nagging me about it whenever I come here :P for all i know you could even be using a script like this internally and just haven't published it!

Originally created by @ngoomie on GitHub (Jul 27, 2025). Original GitHub issue: https://github.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/issues/204 Hope it's okay to post a suggestion like this, I keep thinking something like this might make maintaining the multiple lists a bit more easy workload wise. I myself have [a uBlacklist blocklist for Fandom wikis that have an alternative somewhere else](https://git.32bit.cafe/nu/uBlacklistFandomWikis) which is multi-language and has a script that automatically compiles the filter list from a YAML I have that lists off wiki subdomains as well as which language versions for that wiki to block in this manner: ```YAML ark: [ de, en, es, hr, it, ja, ko, nl, pl, pt, ru, th, zh ] ``` which then produces output like this: ``` *://ark.fandom.com/de/wiki/* *://ark.fandom.com/es/wiki/* *://ark.fandom.com/hr/wiki/* *://ark.fandom.com/it/wiki/* *://ark.fandom.com/ja/wiki/* *://ark.fandom.com/ko/wiki/* *://ark.fandom.com/nl/wiki/* *://ark.fandom.com/pl/wiki/* *://ark.fandom.com/pt/wiki/* *://ark.fandom.com/ru/wiki/* *://ark.fandom.com/th/wiki/* *://ark.fandom.com/wiki/* *://ark.fandom.com/zh/wiki/* ``` Which definitely lightens the load typing-wise, even if I were to use copy-paste a lot to make the output manually :3 This project is a bit different in that it would need one input (probably literally just a domain name, or perhaps a specific URL for some instances) instead of YAML input with various options like this, and would also need then the ability to output it in multiple formats, one in the uBlacklist format, and the rest in the various formats needed to block these results from various search engines using uBlock Origin, and this might make it easier if the format for any of the uBlock Origin rules needs to be changed. I could theoretically do this in Perl, I'm just not so sure it's a great idea since I know I'm like one of a very comparatively minuscule amount of people using Perl these days -- I would imagine you almost certainly aren't using Perl yourself, I very rarely run into Perl users just at random. Something like Python ideally would be better because then it's probably easier for whoever to come and contribute and make changes to the Python script itself if that were ever needed. I don't really know Python well enough to do something like this yet though. No pressure though if you're not sure it's a good idea or just don't want to! I just keep thinking about this whenever I come here to report a domain for inclusion so I figured it might be worth a mention, at the very least so my brain will stop nagging me about it whenever I come here :P for all i know you could even be using a script like this internally and just haven't published it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/uBlockOrigin-HUGE-AI-Blocklist#126