summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrulefallbackimpl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Get sure rules with not supported filter options are ignoredAndrea Diamantini2013-02-121-25/+52
| | | | | | Thomas, can you test this and tell us if it is enough? CCMAIL: thomas@tanghus.net
* Restored Adblock moving hiding logic to the one used in kwebkitpartAndrea Diamantini2012-12-101-0/+180
| | | | | 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-180/+0
| | | | Preparing repo to merge rekonq2 code...
* Consider option && ~option as null rules when option is not implementedAndrea Diamantini2012-02-101-0/+1
| | | | BUG: 246801
* Unifies macro styleJohannes Troscher2011-11-271-2/+2
| | | | | REVIEW: 103242 REVIEWED-BY: adjam
* Improve adblock 2Andrea Diamantini2011-09-141-5/+2
| | | | | remove wrong assumption on referer header. This fixes a lot of third-party rules :)
* clean upAndrea Diamantini2011-07-251-13/+13
| | | | | | - QL1S - one stupid kDebug less - codingstyle
* A round of the "new" astyle 2.01...Andrea Diamantini2011-07-171-14/+14
|
* AdBlock Improvements:Andrea Diamantini2011-04-101-2/+23
| | | | | | | | | | | | - implemented "third party" support - do NOT block first requests (you cannot even see a blank page, sometimes...) BUG:270356 PS: Alberto, can you pls check this really works for you before backporting to 0.7 and let me know about? Many thanks for.
* Coding styleAndrea Diamantini2011-02-251-9/+17
|
* Finally found time to update copyrights... ;)Andrea Diamantini2011-02-241-1/+1
|
* Krazy Fixes!!Rohan Garg2011-01-121-1/+1
| | | | Add #rekonq_define.h to files that now use QL1C
* Implement a sort of debugging informations for adblockAndrea Diamantini2010-09-291-0/+12
|
* Add support for domain option in the ad block moduleBenjamin Poulain2010-08-221-3/+39
| | | | | | | | | | | | | | | | | | 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.
* Split AdBlock rule in two classes to move the implementation out of itBenjamin Poulain2010-08-181-0/+105
In order to make special matching rules, we need specialization of the implementation depending on the type of rule. The previous AdBlockRule was entierly based on regexp. The new one is only a factory to a AdBlockRuleImpl, and delegate everything to this implementation. This will allow faster specialization of the ad block rules in the future.