Opened 5 years ago

Closed 5 years ago

#16 closed enhancement (wontfix)

[Suggestion] Move .css + web server to plain text EHH method

Reported by: Cattleya Owned by:
Priority: trivial Component:
Version: Keywords:
Cc: Project: adblock2privoxy


Hi zubr, I'm Cattleya, a Privoxy user and fan.

I already created a program to convert AdBlock? to Privoxy, I simply convert all EHH filter from AdBlock? to inline Privoxy rule that store inside .filter file. Here you can look at how my filter after convert look like:

I convert and use the rule as FILTER name, and escapse # and replace space with _.

And the big step is you can get rid of web server, no need webserver anymore.

My program only lacks $ type filter (because I dont really like that kind of filter), hope my idea will help you make adblock2privoxy better or you can improve something else from it. I include source code written in Autohotkey.

Source code:

If you want to edit and run the source code, download and install Autohotkey.

Change History (2)

comment:1 Changed 5 years ago by zubr

Hi Cattleya.
The main idea of adblock2privoxy was to support as much adblock features as possible. I was trying to implement elements filtering with just privoxy, without any external tools. I've had several approaches including your one. And none of them were sufficient:
1) Inclusion of all adblock filters in each page as text increases page sizes dramatically. CSS file can be downloaded once and then cached, but inline cannot.
2) It is quite hard to support exception rules (#@#) especially if they apply to subdomains.

So, maybe in future I'll implement "inline" mode of CSS, but definitely it will be used only as fallback.

But anyway thank you for your attention for adblock2privoxy. I really appreciate your attempts to make it better.


comment:2 Changed 5 years ago by zubr

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.