Some questions about

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
Geld

Some questions about

Post by Geld »

Hello.

Somedays ago I read the FAQ and some of Documentation of this site, discussed with friends and got some questions but couldn't find the answer.
Adblock Plus is obviously one of the most famous Add-ons, of course in our community, too. But unfortunately there are not enough documents in our language, Japanese, especially about "Element Hiding" and "shortcut".
Would you mind giving answers for these questions please? :)
Then we could make some better document for other Japanese.

Q1.
FAQ said:
There is no difference between the filters banner and /banner/.
Is there no difference even between the filters "bannnner" and /bannnner/, too?
Or in this case "bannnner" runs faster because of its shortcut?

Q2.
FAQ said:
For example, the filter ad*banner.gif| will be translated into the regular expression /ad.*banner\.gif$/.
Why isn't this "/ad.*?banner\.gif$/"?
I mean that the minimal match would be faster, wouldn't it?

Q3.
http://*.ad.net/
This "http://*" part is almost nonsense and removable if there were a whitelist "@@|https://", right?

Q4.
.ad.net/*/hage/
.ad.net/*/hoge/
.ad.net/*/huge/
The first filter would make ".ad.net/" as its shortcut, then others can't make their shortcut and will run slowly like a regexp?

Q5.
Is using Element Hiding of Adblock Plus slower than using Stylish or userContent.css so far?
IMHO even if so I would like to use Adblock Plus only though. :lol:

Thanks for your reading. :D
Wladimir Palant

Post by Wladimir Palant »

Q1: "bannnner" will run faster, yes.

Q2: I doubt it would be any faster. Since we want any match and not a particular one this shouldn't make any difference.

Q3: There are more protocols than HTTP and HTTPS, you can see things like FTP and MMS on the web as well. But I agree that http:// doesn't make much sense here. Ideally the star following should be interpreted as [^/]* so that .ad.net is still guaranteed to be part of the host name. Unfortunately currently this doesn't work like this.

Q4: Yes.

Q5: No, it is exactly the same principle, no difference in performance. You don't need EHH to use element hiding rules - it is only there to help you create them. The processing of element hiding rules is done by Adblock Plus itself.
Geld

Post by Geld »

Yay! Now many Japanese ADP followers would become happy!!
Thanks very very much! :D
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

Wladimir Palant wrote:Q4: Yes.
woah, I didn't know that :P

Ok, then if I have only these two codes:
.ad.net/*/hage/
.ad.net/*/hoge/78
Will both still run faster than regexp?
Wladimir Palant

Post by Wladimir Palant »

It depends. If the second is processed first by Adblock Plus and gets the shortcut ".ad.net/" for itself - then the first one will still be slow. But that's a really rare case and not worth worrying about.
Post Reply