Page 1 of 1

Extending Raw CSS

Posted: Tue Oct 17, 2006 9:43 pm
by Stupid Head
Have you thought about extending raw CSS so the user can define own styles instead of Adblock Plus appending {display:none!important;}? It could work something like domain.com##div#id{top:4px!important;}, and if a style isn't defined, revert to the default behavior of appending {display:none!important;}. Some websites layouts that are broken by blocking ads can be fixed with quick and simple rules. For example, the layout for ComedyCentral.com will be messed up if you block the ads with .doubleclick.. However, div#globalNavHolder{top:20px!important;} will fix the layout. Same goes for TheStreet.com if you use thestreet.com#div(leaderboard). Adding div#toparea{height:120px!important;} makes it nicer.

Right now, I'm using Stylish to fix sites, but having that functionality in Adblock Plus means I can push these fixes via a filter subscription instead of pulling them from every client.

Posted: Wed Oct 18, 2006 10:05 am
by Wladimir Palant
Extending Adblock Plus in such a way would duplicate Stylish and I don't think it is worth it. Element hiding really isn't there for the complicated things.