I still couldn't connect to the pierceive host, so I used the link jcraig posted. So here is a small perl script (link at the bottom of this post) that will translate this file into usable regular expressions with some small caveats:
– "$" seems to have a special meaning in the patterns used for Adblock Plus. I don't know what meaning this is, though, so I left these lines out. If you see a blank line in the output of glob2re.pl, it means that the script encountered a line containing a "$" and thus coudn't provide a translation.
– "?" isn't used with the meaning it normally has in glob patterns, but as a literal "?". glob2re.pl will match this behaviour instead of doing the translation "normal" glob patterns would need. So if you want to translate anything else than files for Adblock Plus, some lines might not work.
– The lines below "! WHITELIST---" are for the whitelist, obviously. Don't enter this line and the "!" at the end of the whitelist as ad blocking lines in OW. Just leave them out. Enter the lines after "! WHITELIST---" in the lower box of the ad blocking settings in OW.
– Don't enter the lines at the beginning of the file, the one that contains "[Adblock Plus" and the ones starting with a "!" directly below.
To use the script, download the file at the bottom of this post and put it into some directory where you will find it again. ;-) Open the Terminal and type
where <yourdirectory> is the directory you put glob2re.pl in. If you don't know where it actually is, you can open the parent directory of <yourdirectory> in the finder, type "cd " in the terminal (note the space after cd) and then drag&drop <yourdirectory> from the finder to the terminal and hit enter.
Now you have to make glob2re.pl executable. To do this, type:
chmod 0755 glob2re.pl
Now it's ready to use. Whenever you want to use it, first cd to <yourdirectory> as shown above.
glob2re.pl uses a parameter you give to it as a file name to read the glob patterns from. If you don't give it a parameter, it will read from stdin. This means it waits for you to type in or paste glob patterns and will then translate those to regular expressions. It will do so until you press Ctrl-d. If you want to have your output in a file, just add "> yourfile.txt" at the end of the command line.
To enter or paste glob patterns in the terminal and directly see the results, enter:
It will then wait for input until you press Ctrl-d.
The same, but don't see the results, instead collect them in the file "filter.txt":
./glob2re.pl > filter.txt
Read the file adfilter.txt (which resides in <yourdirectory>) and see the output in the terminal:
Read the the file thisfilter.txt on your desktop and put the results into the file filter.txt:
./glob2re.pl ~/Desktop/thisfilter.txt > filter.txt
The lines glob2re.pl spits out can directly be used as lines for ad blocking in OmniWeb.
Note: If you download and translate a filter file that is formatted for windows, you might see "^M" at the end of each line of the output of glob2re.pl, depending on what viewer you use to view the results. Don't try to enter those "^M"s in OmniWeb, just leave them out.
Here is the link to the script. Right- or Ctrl-click on the link and choose "Save link as ...".
(Note: This link resides on my home mac via a dialup line. I'm normally online 24h/day, but if you happen to try it just at the moment a 24h-reconnect occurs, it might not work. Just try again a few minutes later.)
Note: This is just a small hack. No guarantee whatsoever, use at your own risk. No license, just redistribute and/or reuse as much as you want. ;-)