General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
need help with adblock.css
Posted by: disrupted
Date: July 21, 2008 07:19PM

i need to block an entire stylesheet from the bbc
here's the link to it:
http://212.58.226.77/css/screen/shared/3pt_ads.css
or
http://news.bbc.co.uk/css/screen/shared/3pt_ads.css

the 3pt_ads.css connect to doubleclick to display ads.. i know how to bblock doublclick on hosts but doing that displays big empty banners on the page which ruins the layout and browsing experience..i was wondering if there was a way to block the 3pt_ads.css in blockads.css

i tried adding it to several lines but it didn't work:
*[src*="http://212.58.226.77/css/screen/shared/3pt_ads.css";],
*[src*="http://news.bbc.co.uk/css/screen/shared/3pt_ads.css";],
*[src*="/css/screen/shared/3pt_ads.css"]
*[src*="/3pt_ads"],
*[src*="/3pt_ads.css"],

all those lines didn't work and 3pt_shit still got loaded..thanks

Options: ReplyQuote
Re: need help with adblock.css
Posted by: JohnHell
Date: July 21, 2008 08:06PM

Mmmmm, I think this is impossible. This is one of those called by js and aren't easy to remove.



Edited 1 time(s). Last edit at 07/21/2008 08:16PM by JohnHell.

Options: ReplyQuote
Re: need help with adblock.css
Posted by: disrupted
Date: July 21, 2008 11:11PM

sad smiley

Options: ReplyQuote
Re: need help with adblock.css
Posted by: disrupted
Date: July 22, 2008 01:11AM

i killed it with adblockplus, the files responsible for those ads were:
1- news.bbc.co.uk/css/screen/shared/3pt_ads.css
2- news.bbc.co.uk/js/app/bbccom/bbccom.js

the first is the stylesheet that ''organises'' how the advertisements will be placed on the page and also responsible for shrinking and expanding the ad placeholder depending whether an ad is displayed or not.. it also expands all 4 of the ad places when it fails to retrieve an image from doubleclick (as a punishment for blocking ad.doubleclick.net)
the second file is the more complex file.. amongst a lot of things, it finds out the ip of a visitor, sends it to doubleclick so that the latter can target specific ads according to country (asif)..

so anyway, adblockplus did the job.. i've always heard about it but i was like almost certain it only works with ff, but fortunately it works with km too.. i didn't even have to add any filters, it was all set in the u.s. 'subscription'..
and now km is blurring fast at loading most ad-based pages and especially the bbc news, since i had blocked doubleclick in 2 ways, one by setting doubleclick.net in hosts and the the other by redirecting ad.doubleclick to a bogus proxy so i can still block ads without 3pt_ads expanding on me, which worked only half the time and the page would stall as it waited for ad.doubleclick and i'd normally be left with a blank page for 30 seconds till it finally gave up on doubleclick and continued loading, now the bbcnews loads in literally an eye-blink, exactly how it used to before those idiots endorsed advertisements about a year ago.

if anyone is experiencing same frustration from bbcnews..go there:
http://adblockplus.org/en/kmeleon
(adblockplus.org/en/kmeleon)

Options: ReplyQuote
Re: need help with adblock.css
Posted by: JohnHell
Date: July 22, 2008 02:41PM

I'll give a try to that ported version.

Options: ReplyQuote
Re: need help with adblock.css
Posted by: gvgerman
Date: July 22, 2008 07:55PM

K-Meleon's CSS blocking filter can be created using preferences (F2) and you must "build it" yourself - which can be tricky. If you are of the mindset that filtering is desireable, then AdblockPlus is easier IMHO. AdblockPlus uses a filter subscription that is maintained by others that covers many of the typical items folks want to block. You can add blockable elements to the filter to suit your personal tastes.

As you have pointed out, AdblockPlus for K-Meleon can be found a Wladimir's site. It can also be found at Alain's site.

Alain's site has many other extensions for K-M that you may be interested in, as well.

Rgds,

Options: ReplyQuote


K-Meleon forum is powered by Phorum.