uBlock: a fast, lightweight, and lean blocker for Chrome, Firefox, and Safari.
Updated Translation.
||
) filters having wildcard characters. These filters are categorized into three types. The purpose is to convert regex based filter internally into plain string based filters.
^*
after the hostname and no other wildcard character on another side of this pattern.
||.cloudfront.net^F2P_SideBar_Banner_EN.jpg
||2mdn.net^/1x1image.jpg$image
||2mdn.^/1x1image.jpg$image*
after the hostname and no other wildcard character on another side of it.
||*.cloudfront.net/wp-content/F2P_SideBar_Banner_EN.jpg
||cloudfront.net/wp-content/F2P_SideBar_Banner_EN.jpg
||www.google./aclk?^/am=&adurl=
||i.com.com/wp-content/*F2P_SideBar_Banner_EN.jpg||
) filters matches hostname in URL accurately.
||*-aaa.net^$third-party*
converted internally into plain string based filters.
@@/cdn-cgi/pe/bag2?googleadservices.com%2Fpagead%2Fconversion.js$xmlhttprequest,domain=ethica.net.au|factom.org|gogoonhold.com.au
/cdn-cgi/pe/bag2?r.qualitypublishers.com*
characters in Token generate logicSpecial handling is given to filters which had to match against document origin only. The filter will only be considered if it satisfies the given criteria.
/czf*.
(without token) or |https://
or |http://
or *
domain=
optiondomain=
optioncsp=
optionexamples: |http://$image,script,subdocument,third-party,xmlhttprequest,domain=dwindly.io |https://$image,other,script,stylesheet,third-party,domain=movies123.xyz $websocket,domain=povw1deo.com|povwideo.net|powvideo.net /czf*.$image,domain=100percentfedup.com
These filters had to be matched against each network request which was causing extra time. Now, these filters will only be considered when document origin matches the domain mentioned in the filter domain=
option.
Added google keyword to badTokens list
Replaced substr with startWith method for string pattern matching
Validated regular expression based filter
Code optimizations