summaryrefslogtreecommitdiff
path: root/src/adblock
Commit message (Collapse)AuthorAgeFilesLines
* Let user change his mind enabling block/unblockAndrea Diamantini2012-03-133-9/+25
|
* Clean up adblock manager code and fix unblock featureAndrea Diamantini2012-03-134-46/+65
|
* check/update/load subscriptions well :)Andrea Diamantini2012-03-132-36/+57
|
* Add dialog allowing adblock to list blocked/hided elements and unblockAndrea Diamantini2012-03-135-8/+335
| | | | some of them
* Let rekonq block sparse images (this idea has been copied from Arora)Andrea Diamantini2012-03-132-0/+33
|
* Add adblock icon to inform users that some contents was hiddenAndrea Diamantini2012-03-131-0/+6
| | | | | | | | This is a patch by Andrea Di Menna, changed a bit to allow element blocked/hided listing (you'll see it in next commit) REVIEW:102761 REVIEWED-BY: adjam
* Update adblock dialogAndrea Diamantini2012-03-135-94/+139
|
* Move adblock manager to use multiple text files for rules andAndrea Diamantini2012-03-133-135/+108
| | | | | | separate adblock settings from rekonq ones. We now have 60 adblock rules list sites stored to be enabled "on click"
* Remove ability to manage abp schemes and add subscriptions on clickAndrea Diamantini2012-03-132-22/+3
|
* Krazy fixesAndrea Diamantini2012-02-161-1/+1
| | | | | - doublequote_chars - normalize
* Consider option && ~option as null rules when option is not implementedAndrea Diamantini2012-02-108-21/+27
| | | | BUG: 246801
* Krazy fixesAndrea Diamantini2012-01-193-4/+4
| | | | | | | - QL1S/QL1C - single-char QString efficiency - explicit ctors - normalized signals & slots
* Unifies macro styleJohannes Troscher2011-11-276-21/+21
| | | | | REVIEW: 103242 REVIEWED-BY: adjam
* Calm down kDebug messagesAndrea Diamantini2011-10-111-9/+4
|
* Get sure mainWindow() exists before trying applying settingsAndrea Diamantini2011-09-161-2/+2
| | | | BUG: 272107
* Get sure page is extant before searching for DOM elements thereAndrea Diamantini2011-09-161-0/+4
| | | | BUG: 282012
* Improve adblock 2Andrea Diamantini2011-09-142-9/+3
| | | | | remove wrong assumption on referer header. This fixes a lot of third-party rules :)
* Improve adblockAndrea Diamantini2011-09-142-5/+22
| | | | | improve adblock docs check third-party option before (faster)
* Fix saving in adblock managementAndrea Diamantini2011-08-193-3/+10
| | | | | | | | | This original patch from fritz_van_tom has been modified by me to fix a couple of "obsoleted" things not removed in the previous changes. My fault for them (and for the need of this patch), sorry. REVIEW: 102362
* Fix non const code in the adblockwidgetAndrea Diamantini2011-08-121-8/+6
| | | | CCMAIL: fritz_van_tom@hotmail.com
* Tools Action MenuAndrea Diamantini2011-08-045-0/+472
| | | | | | | | | | | - Removed showDeveloperTools action - Moved adblock GUI to adblock part - renamed toolsMenu and developerMenu to reflect their real/new roles - Added UserAgent action to the tools menu REVIEW:102170 REVIEWED-BY: fritz_van_tom
* clean upAndrea Diamantini2011-07-257-70/+70
| | | | | | - QL1S - one stupid kDebug less - codingstyle
* Calm down kDebug messagesAndrea Diamantini2011-07-191-2/+0
|
* A round of the "new" astyle 2.01...Andrea Diamantini2011-07-178-87/+87
|
* AdBlock Improvements:Andrea Diamantini2011-04-104-5/+34
| | | | | | | | | | | | - 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.
* Revert "Return false for null mimetypes"Rohan Garg2011-03-111-4/+0
| | | | | This reverts commit 09bf176c22a25cee65b20b7aee9fdf9e541798af. This isn't *really* required, my bad
* Return false for null mimetypesRohan Garg2011-03-091-0/+4
| | | | BUG:267706
* Coding styleAndrea Diamantini2011-02-2511-28/+44
|
* Finally found time to update copyrights... ;)Andrea Diamantini2011-02-2413-122/+21
|
* AdBlock: adding a Null Rule to match all the unimplemented filters.Andrea Diamantini2011-02-246-2/+231
| | | | | | BUG:248045 BUG:253329 BUG:265909
* Calm down kDebug messagesAndrea Diamantini2011-02-161-1/+0
|
* Krazy Fixes!!Rohan Garg2011-01-121-1/+1
| | | | Add #rekonq_define.h to files that now use QL1C
* Fix forward declarationMontel Laurent2010-11-031-1/+0
|
* Implement a sort of debugging informations for adblockAndrea Diamantini2010-09-296-1/+39
|
* Fix adblock host matcherAndrea Diamantini2010-09-091-6/+6
| | | | Benjamin Poulain's patch. Thanks :)
* This should improve adblock retrieving by NOT asking for SSL confirmationsAndrea Diamantini2010-09-011-0/+6
|
* Add support for domain option in the ad block moduleBenjamin Poulain2010-08-227-12/+54
| | | | | | | | | | | | | | | | | | 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.
* Skip the hiding rules specific to domainsBenjamin Poulain2010-08-191-0/+4
| | | | | | | The rules to hide elements for a specific domains were interpreted as regular RegExp rules, which grows the list of filter to test. Those rules are not working with the current implementation, we should just skip them for efficiency.
* Add a special matcher for ad block filters for host nameBenjamin Poulain2010-08-194-1/+132
| | | | | | | | | | Quite a few rules of ad block are just matching domains. Those are of the form: ||trolltech.com^$options This patch add a new class to deal with this kind of filter, AdBlockHostMatcher. Matching a host address is much faster (O(1)) than going through the entire list of rules.
* Improve the performance of AdBlockRuleTextMatchImplBenjamin Poulain2010-08-197-12/+22
| | | | | | | | | | 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-183-1/+120
| | | | | | | | 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%.
* Split AdBlock rule in two classes to move the implementation out of itBenjamin Poulain2010-08-185-84/+202
| | | | | | | | | | | | 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.
* Remove the method pattern() from AdBlockRuleBenjamin Poulain2010-08-183-10/+0
| | | | | The method pattern imply the rule is implemented with a regexp, which is what we should try to avoid in the future for performance reasons.
* Cleaning of the constructor of AdBlockRuleBenjamin Poulain2010-08-181-21/+15
| | | | | | | | | | | | | | | | | | | Basic cleaning and bug fixing of AdBlockRule. The options shoud be parsed before checking if the filter is a regexp, otherwhise a regexp with option will never match the rule. For example: -"/.*/$xmlhttprequest" is a valid regexp that would not be matched. -"/.*$xmlhttprequest/" is a valid regexp without options and the option should not have been parsed. The matching of the option should match the last index of "$", not the first, for the same reason as above. Use mid() to split the vector at once instead QString::mid() + QString::lef(). Clean the coding style to follow the conventions of KDE.
* Cleaning some kDebug callsAndrea Diamantini2010-05-221-3/+2
|
* Move adblock rules conf file to appdata, to maintain central config file tinyAndrea Diamantini2010-05-141-4/+4
|
* AdBlock clean up, step 1Andrea Diamantini2010-05-145-40/+10
|
* QLatin1String -> QL1SAndrea Diamantini2010-04-301-7/+7
| | | | added cppcheck script
* Include Fixes, first bunchAndrea Diamantini2010-04-305-8/+10
|
* Krazy fixesAndrea Diamantini2010-04-301-1/+1
|