summaryrefslogtreecommitdiff
path: root/src/adblock/adblockruletextmatchimpl.h
Commit message (Collapse)AuthorAgeFilesLines
* Krazy Fixes, first shotAndrea Diamantini2012-12-281-1/+2
|
* Restored Adblock moving hiding logic to the one used in kwebkitpartAndrea Diamantini2012-12-101-0/+52
| | | | | This will let everyone to save time reinventing the wheel and let us remove webpage from adblockmanager code, but just manage it via (Q)NAM.
* WARNING COMMIT --> FIRST REKONQ 2 IMPORTAndrea Diamantini2012-12-101-52/+0
| | | | Preparing repo to merge rekonq2 code...
* Coding styleAndrea Diamantini2011-02-251-1/+1
|
* Finally found time to update copyrights... ;)Andrea Diamantini2011-02-241-1/+3
|
* Implement a sort of debugging informations for adblockAndrea Diamantini2010-09-291-0/+3
|
* Add support for domain option in the ad block moduleBenjamin Poulain2010-08-221-1/+1
| | | | | | | | | | | | | | | | | | Some ads were not filtered because they were incorrectly matched by the whitelist. This is because we ignore options, including the domain restrictions. For example, the white filter: @@||pagead2.googlesyndication.com/pagead/show_ads.js$domain=kde.org would match any page regardless of the domain restriction. So no ads from pagead2.googlesyndication.com were filtered. This patch adds support for "domain" options in the fallback rules (the other AdBlockRuleImpl rejects options). The domain of the frame making the request is now compared to the option to take the right decision. This patch requires Qt 4.7 with a recent QtWebKit 2.0.
* Improve the performance of AdBlockRuleTextMatchImplBenjamin Poulain2010-08-191-1/+1
| | | | | | | | | | Comparing unicode string without case sensitive is rather expensive because each codepoint must be converted, which is non trivial for unicode. This patch introduce a new argument of ::match() taking the encoded url in lowercase. This way, the conversion can be done only once for a lot of rules.
* Add a primitive text machter as an AdBlockRule implementationsBenjamin Poulain2010-08-181-0/+47
About 30% of the filter of easylist are just simple text matching. This new AdBlockRule implementation detects the simple occurences of this to match the url directly. On Qt 4.7, this reduce the time spend in AdBlock by around 20%.