.rediff.com/*$script and .rediff.com/$script
Both works in the same way at http://www.rediff.com/.
Why should we then have * in .rediff.com/*$script?
Whether to have * or not in this script
There is no difference. You can use whatever you like better.
Back when I wrote filters for my personal usage, I left the asterisks out, without a specific reason. Now I usually add the * to the start and the end because there might be some subscribers of my subscription thinking that the version without the asterisk does not match in the middle of an url.
Back when I wrote filters for my personal usage, I left the asterisks out, without a specific reason. Now I usually add the * to the start and the end because there might be some subscribers of my subscription thinking that the version without the asterisk does not match in the middle of an url.
There is only ONE instance when you DO need either a beginning OR trailing asterisk.
When you create a rule that both begins and ends with a slash (/), you MUST use an asterisk outside of either the beginning or ending slash .... otherwise ABP will interpret the rule as a 'regular expression" type of rule and not a 'simple expression' rule.
For it to be read as a normal, simple rule, it needs to be like this:
/ad/*
If not, ABP thinks it is a regexp type of rule (begins and ends with a slash) .... and will ignore the slashes and block the string "ad" instead of "/ad/". By adding an asterisk outside of either end, it will tell ABP to create the 'simple rule' of "/ad/" instead.
Outside of that, asterisks are unnecessary at either end for ABP .... wildcards are always implied at either end unless you terminate the address with a bar (|} such as in ' /ads.js| '
When you create a rule that both begins and ends with a slash (/), you MUST use an asterisk outside of either the beginning or ending slash .... otherwise ABP will interpret the rule as a 'regular expression" type of rule and not a 'simple expression' rule.
For it to be read as a normal, simple rule, it needs to be like this:
/ad/*
If not, ABP thinks it is a regexp type of rule (begins and ends with a slash) .... and will ignore the slashes and block the string "ad" instead of "/ad/". By adding an asterisk outside of either end, it will tell ABP to create the 'simple rule' of "/ad/" instead.
Outside of that, asterisks are unnecessary at either end for ABP .... wildcards are always implied at either end unless you terminate the address with a bar (|} such as in ' /ads.js| '
-
- Posts: 18
- Joined: Tue Nov 04, 2008 1:53 am
You can read the topic in which I asked everyone here about the right method to block ads.
http://adblockplus.org/forum/viewtopic.php?t=3070
http://adblockplus.org/forum/viewtopic.php?t=3070