hufilter-dev
hufilter-dev copied to clipboard
Merging repos, deploying filters to GitHub Pages
[!NOTE] Average users who use the built-in list of adblockers do not need to do anything with this change, it will happen automatically with the next update. However, those who manually installed one of the lists should update the URL
We currently have two repositories:
- https://github.com/hufilter/hufilter-dev for "source code" and
- https://github.com/hufilter/hufilter for deployment
According to my experience, this
- complicates the management of issues and
- often confuses users,
so we need to make 1 repo from this 2.
The plan is to delete the 'hufilter' repo and right after rename the 'hufilter-dev' repo back to 'hufilter', and the releases will happen on the gh-branch.
However, this also means changing the subscription URLs of the filters, so we have to be careful. So until the filter URLs change in all popular adblockers, I leave the two repository structure and just created a temporary deploy to the gh-pages branch in the 'hufilter' repo. This allows the old and new subscription URLs to work simultaneously during the transition period.
I also think it would be worthwhile to use jsDelivr instead of github.io URLs, for two reasons:
- jsDelivr is not affected if there is a temporary outage on GitHub
- jsDelivr also provides download statistics (this will not always be reliable, as e.g. AdGuard works through a filter registry, but it can give a reference number)
So the final URLs look like this:
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-abp.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-abp.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-adguard.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-adguard.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-ublock.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-ublock.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-selfpromo.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-selfpromo.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-dns.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-dns.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-pihole.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-pihole.txt
- https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-hosts.txt -> https://cdn.jsdelivr.net/gh/hufilter/hufilter@gh-pages/hufilter-hosts.txt