How to apply the filter only on a website (or a page)?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

How to apply the filter only on a website (or a page)?

Post by Lucas Malor »

Hi all. I have just upgraded Adblock Plus from the version of mrbene.

I would know if exists a regulary expression for a filter that block an ad only for a site or a page.
I ask this because I don't use any filter lists, but I only block very slow or annoying ads. So I want to speed up the filtering process by enabling adblock only for certain sites.

Another question: there's a way with Adblock plus to block all the images and/or the scripts and/or the flash object of a site or a page? I know also Firefox block all images of a site, but not images with a link. I also know Noscript and FlashBlock, but I prefer a blacklist instead of a whitelist.
helping ghost

Post by helping ghost »

You could try some filter like

Code: Select all

http://www.example.org/$image
This should block all images from www.example.org
more info: http://adblockplus.org/forum/viewtopic.php?t=591

If you want to block only a special ad, you can take "www.example.com/ads/ad.jpg" as a filter.

But you should not worry to much about speed, since Adblock Plus is already very fast (much faster than the old Adblock versions). And with coming Adblock Plus 7.2 it will be even faster than fast. If you understand computers, you can read http://adblockplus.org/blog/investigati ... algorithms , if you are not such a techy, just take a look at the graphs on the bottom, they say more than 1000 words.
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

Well, actually I would to block all the images and the scripts that appear in the pages of a certain site. I think the best solution is:

Code: Select all

http://www.example.org/$image
http://www.example.org/$image$third-party
but $third-party is not yet implemented (and I fear it will not be ever implemented... :? )

If you want to block only a special ad, you can take "www.example.com/ads/ad.jpg" as a filter.
Well, no, I'm trying to apply a filter only to a certain site. For example, I would to apply the filter

Code: Select all

http://www.diwojf.com/noqiijqij/script.js
only for the site

Code: Select all

http://adblockplus.org
Wladimir Palant

Post by Wladimir Palant »

There is only one way to speed up anything - whitelist the whole site (e.g. using the "Disable on ..." menu or adding the filter "@@|http://site.com/" manually). Then Adblock Plus will stop tracking the items on this page - that's what takes the most time.
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

So I could do something like this?

Code: Select all

@@|* ~http://site1.aaa ~http://site2.bbb ~http://site3.ccc etc.
to do a blacklist?
Wladimir Palant

Post by Wladimir Palant »

No
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

But does not exists a way to apply an adblock filter only for one site (or more site but not all sites), or to do a blacklist instead of a whitelist?
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post by Peng »

No.

If your computer can handle Firefox, it'll be able to handle Adblock Plus checking a couple filters fine, except maybe in really extreme cases
Matt Nordhoff
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

Well, telling the truth before I had optimized it, thanks to the suggests of Mozillaitalia support forum, Firefox was very expensive in terms of pc resources (it took about 80 MB of RAM...). Because I have an old PII I am very maniac about performance...

Anyway, I think it's more important the implementation of the Boyer-Moore algorithm rather than a not much popolar blacklist feature :)

I hope the $third-party filter will be added, in spite of "yesss I want to block all the web" people... ^^
With the filter: ( * $script,third-party ), NoScript will become absolutely obsolete :D
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post by Peng »

Lucas Malor wrote:I hope the $third-party filter will be added, in spite of "yesss I want to block all the web" people... ^^
With the filter: ( * $script,third-party ), NoScript will become absolutely obsolete :D
The problem with $third-party is that Adblock Plus couldn't cache whether a specific item should be blocked or not, since that would be different on different websites.
Matt Nordhoff
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

Well, it can be introduced a whitelist for singole items.
Post Reply