there is a way...
if you can somehow use the addblocker scripts from firefox (mostly in regex format)... you could pobably convert those into squid filer scripts...
ive seend addblock PLUS scripts in nearly all languages i know.. so it might be work a shot?