External Filter

Allows you to filter content using external programs or scripts.

Parameters

Command

Format:

command = command_line

The program specified in command_line must behave like a Unix filter, that is read data from its standard input and write to its standard output.

Note: awk95 is recommended for simple scripting on Windows. It may be downloaded from Brian Kernighan's page: http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe. Lightweight and powerful enough for simple tasks (compare its executable size (160K) to anything else). For convenience, a copy is included with this software.

See also Common Filter Parameters.

Notes

See also Common Filter Parameters.

Example

type = External Filter
name = Just an example
enabled = true
time = 
user = 
include = *
command = awk -f myscript.awk
Let's assume myscript.awk contains this:
{
  gsub(/foo/, "bar")
  print $0
}
This will replace every occurence of “foo” with “bar” (everywhere, including URLs in links, etc., which will break everything). I am sure you can come up with better uses, e.g. fixing fonts (too small), or colors (too busy), or “sponsored links” (too annoying) on your favorite websites.