CatBlock
CatBlock is no longer supported by AdBlock but you can still download the extension and the source code.
The source code is licensed under GPLv3.
Source code
Chrome extension
Safari extension
Enjoy,
The AdBlock team