Git Product home page Git Product logo

Comments (4)

essandess avatar essandess commented on August 22, 2024

Those files are over 20 MB each, and the css directory structure is hundreds of MB. Every update and commit multiplies the size of the repo by that much.

GitHub repos are not a great way of hosting these filter lists.

I’m open to suggestions, but the simplest thing to do is just build and run adblock2privoxy locally.

from adblock2privoxy.

KonoromiHimaries avatar KonoromiHimaries commented on August 22, 2024

use ipfs https://github.com/ipfs/ipfs#readme

from adblock2privoxy.

essandess avatar essandess commented on August 22, 2024

ipfs still needs a server infrastructure to host files.

The filter files depend on user preferences for the easylist/adblock filters chosen.

This is a repo for software to convert easylist to adblock files, not update them or host select rule sets. That would be a great project for someone to take up, though.

from adblock2privoxy.

essandess avatar essandess commented on August 22, 2024

I figured out how to do this efficiently using git rebase. Latest files are in
461f265.

It's also worthwhile to update these example files to reflect the recent parsing fixes in adblock2privoxy.

Notes for the next time someone asks for updated files:

Delete the commit with the old files

  1. Find the commit hash to be deleted:

git log --graph --oneline
It’s 1abcb29.

  1. Confirm the first hash to be kept:

git log --oneline --reverse --ancestry-path 1abcb291^..master

  1. Use rebase to delete the commit:

git rebase -i 1abcb291^

  1. Comment out commit(s) to ignore with # at the line beginning.
  2. Sanity check the the local repo has all the latest content by comparing it against the remote.
  3. Force push to GitHub:

git push origin +master

Add a commit with the updated files

mkdir easylist privoxy css
( cd easylist ; echo "https://easylist.to/easylist/easyprivacy.txt  \
  https://easylist.to/easylist/easylist.txt  \
  https://easylist.to/easylist/fanboy-annoyance.txt  \
  https://easylist.to/easylist/fanboy-social.txt  \
  https://easylist-downloads.adblockplus.org/antiadblockfilters.txt  \
  https://easylist-downloads.adblockplus.org/malwaredomains_full.txt  \
  https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/fanboy-antifacebook.txt \
  https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt" | xargs -n 1 curl -O )
adblock2privoxy -p ./privoxy -w ./css -d 127.0.0.1:8119 ./easylist/*.txt
git add easylist privoxy css
git commit -am 'Update easylist, privoxy, and css rule files and directories'
git push origin master

I'm going to keep this issue open because these examples will be perennially out of date.

from adblock2privoxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.