summaryrefslogtreecommitdiff
path: root/src/adblock/adblockmanager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix adblock hide behaviorAndrea Diamantini2012-07-061-1/+7
| | | | | | | NOTE: You'll find also some style & copyrights fixes here. Just reenable the git hooks scripts... BUG: 302050
* Cleans upAndrea Diamantini2012-06-121-1/+0
| | | | | | - set initial icon to have properly dimensions set - properly calculate needed icon's height - calm down some kDebug messages
* Kitchen sink clean upAndrea Diamantini2012-05-271-5/+5
| | | | | | - astyle - copyrights - (some) includes
* Clean up headers && fix compilation with (the upcoming) qt 4.8.2Andrea Diamantini2012-04-201-0/+2
|
* Let user change his mind enabling block/unblockAndrea Diamantini2012-03-131-0/+5
|
* Clean up adblock manager code and fix unblock featureAndrea Diamantini2012-03-131-43/+52
|
* check/update/load subscriptions well :)Andrea Diamantini2012-03-131-35/+52
|
* Add dialog allowing adblock to list blocked/hided elements and unblockAndrea Diamantini2012-03-131-4/+39
| | | | some of them
* Let rekonq block sparse images (this idea has been copied from Arora)Andrea Diamantini2012-03-131-0/+29
|
* 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-131-1/+6
|
* Move adblock manager to use multiple text files for rules andAndrea Diamantini2012-03-131-94/+70
| | | | | | 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-131-20/+2
|
* Krazy fixesAndrea Diamantini2012-02-161-1/+1
| | | | | - doublequote_chars - normalize
* Consider option && ~option as null rules when option is not implementedAndrea Diamantini2012-02-101-1/+1
| | | | BUG: 246801
* Krazy fixesAndrea Diamantini2012-01-191-1/+1
| | | | | | | - QL1S/QL1C - single-char QString efficiency - explicit ctors - normalized signals & slots
* Unifies macro styleJohannes Troscher2011-11-271-9/+9
| | | | | REVIEW: 103242 REVIEWED-BY: adjam
* Calm down kDebug messagesAndrea Diamantini2011-10-111-9/+4
|
* Get sure page is extant before searching for DOM elements thereAndrea Diamantini2011-09-161-0/+4
| | | | BUG: 282012
* Fix saving in adblock managementAndrea Diamantini2011-08-191-2/+4
| | | | | | | | | 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
* Tools Action MenuAndrea Diamantini2011-08-041-0/+15
| | | | | | | | | | | - 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-251-27/+27
| | | | | | - 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-171-38/+38
|
* Coding styleAndrea Diamantini2011-02-251-4/+6
|
* Finally found time to update copyrights... ;)Andrea Diamantini2011-02-241-1/+1
|
* AdBlock: adding a Null Rule to match all the unimplemented filters.Andrea Diamantini2011-02-241-0/+2
| | | | | | BUG:248045 BUG:253329 BUG:265909
* Calm down kDebug messagesAndrea Diamantini2011-02-161-1/+0
|
* 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-221-3/+3
| | | | | | | | | | | | | | | | | | 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-191-1/+23
| | | | | | | | | | 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-191-3/+7
| | | | | | | | | | 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.
* Remove the method pattern() from AdBlockRuleBenjamin Poulain2010-08-181-2/+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 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-141-0/+3
|
* QLatin1String -> QL1SAndrea Diamantini2010-04-301-7/+7
| | | | added cppcheck script
* Krazy fixesAndrea Diamantini2010-04-301-1/+1
|
* cleaning headersAndrea Diamantini2010-04-301-1/+0
|
* A coding style roundAndrea Diamantini2010-04-301-75/+75
|
* Auto Scrolling, first bunch.Andrea Diamantini2010-03-311-15/+0
| | | | key combinations just work :)
* This is just a stupid idea, but it seems working well.. :)Andrea Diamantini2010-03-311-1/+2
| | | | | | The idea basically is: hide and set dimensione to ZERO to adblocked elements. This seems cleaning page WARNING: NEED TESTS!!!
* Not so stupid, after all..Andrea Diamantini2010-03-301-6/+38
|
* Cleaning AdblockManager::loadRules slotAndrea Diamantini2010-03-241-21/+30
|
* abp (Ad Block Plus) fake protocol supportAndrea Diamantini2010-03-191-13/+29
| | | | | | | | | This will let rekonq to automatically add abp subscriptions from the adblockplus.org site (or wherever someone provides abp urls) Anyway, consider that the raccomended way to manage adblock (by me and by abp developers) is just adding the EasyList subscription. rekonq just does it by default!!
* Implemented automatic adblock update.Andrea Diamantini2010-03-131-42/+156
| | | | | | | | | | | | | | This (squashed) commit adds this new feature in rekonq, letting people to simply "forgot" adblock and let rekonq do everything for it I added: - a new (rekonq) adblock widget - an asyncronous method to update rules from the net every TOT days - a better AdBlockManager management. What it is actually missing is the adp protocol support to add new subscriptions to adblock. This will come the next week. For now this part seems stable and needs just testing :)
* Krazy issues (1st branch)Andrea Diamantini2010-02-141-3/+3
|
* Fix copyright for 0.4 beta releaseAndrea Diamantini2010-02-101-1/+1
|
* Cleaning again (the morning after) the adblock thing.. :)Andrea Diamantini2010-01-141-18/+17
| | | | | Removed the "options" part. Will be rewritten in rekonq 0.5 together with the UI..