summaryrefslogtreecommitdiff
path: root/src/adblock
Commit message (Collapse)AuthorAgeFilesLines
* Allow to remove multi manual filters. Send hasChanged when necessaryMontel Laurent2013-10-011-3/+9
|
* Allow to dnd manual filter.Montel Laurent2013-10-012-7/+13
|
* Use const'refMontel Laurent2013-10-014-20/+20
|
* Fix mem leakMontel Laurent2013-09-291-1/+1
|
* Load the adblock settings in background.Paul Rohrbach2013-07-302-4/+20
| | | | | | | | | | | | | | | | | | | | | | | If you open rekonq and start typing immediately, there is a small lag (about half a second). This is caused by the AdBlockManager::loadSettings function reading the adblock rules. It is called with a one second delay to make the startup faster. With this patch, the function is called in a separate thread using QtConcurrent::run to eliminate the lag. To make this safe, the adblocker is enabled after the settings are loaded, which means, that the first site loaded could be partially with ads. But this is no change in behavior, as the adblocker in current master is disabled for a whole second. The only times this blocks now is in situations, where it is necessary that the settings are loaded (showSettings and addCustomRule), but I guess that no normal user will use those in under a second after startup :) REVIEW: 111712 REVIEWED-BY: adjam
* Adding domain-specific hiding support to the adblocker.Paul Rohrbach2013-07-304-34/+200
| | | | | | | | | | | The domain-specific rules are stored in a QMultiHash, where the key is the domain and the values are the rules for the specified domain. This causes redundancy, because on rule can be applied to more than one domain, but has a really fast look-up time. The code for the generic hiding has not changed and is just relocated. REVIEW: 111521 REVIEWED-BY: adjam
* AdBlock ImprovementAndrea Diamantini2013-02-242-2/+57
| | | | | | | | | Hiding rules support (at least the easy ones, the most ones, against hiding id && classes) :D To test it, take a look (in example) at the url: http://simple-adblock.com/faq/testing-your-adblocker/
* Delay 1 sec adblock settings load to boost startup performanceAndrea Diamantini2013-02-211-1/+3
|
* Triple check against stupid rules like "*" or "##"Andrea Diamantini2013-02-214-2/+14
| | | | CCBUG: 315002
* Add overwrite flag to file copy ad filters list to not bother usersAndrea Diamantini2013-02-211-1/+1
| | | | about
* Get sure rules with not supported filter options are ignoredAndrea Diamantini2013-02-122-25/+54
| | | | | | Thomas, can you test this and tell us if it is enough? CCMAIL: thomas@tanghus.net
* Krazy fixes, second shot (normalize)Andrea Diamantini2012-12-282-2/+2
|
* Krazy Fixes, first shotAndrea Diamantini2012-12-286-8/+12
|
* - Code style check (codestyle script round)Andrea Diamantini2012-12-124-6/+8
| | | | | | | | | - restored CTRL + ENTER code - applied Vedant's patch about (thanks!!!) CCMAIL: vedant.kota@gmail.com REVIEW: 107662 REVIEWED-BY: Tirtha and me
* Clean up previous commit about adblock and fix enable/disable featureAndrea Diamantini2012-12-104-55/+8
|
* adblock workAndrea Diamantini2012-12-108-233/+97
| | | | | | | | readded an icon in the urlbar when adblock is active, BUT with different features: you can now disable adblock "per-site", in a similar way chromium does. cleaned up adblock manager code, removing some old no more used code fragments
* Restored Adblock moving hiding logic to the one used in kwebkitpartAndrea Diamantini2012-12-1021-0/+2310
| | | | | 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-1023-2477/+0
| | | | Preparing repo to merge rekonq2 code...
* Faster html elements check and better address resolutionAndrea Diamantini2012-10-141-3/+2
| | | | | | | | | This "should" fix some strange adblock behaviour on image hiding. Needs testing Patch courtesy by "vic". Thanks :) PS: will be applied to rekonq2, too. BUG:305861
* Fix some string inconsistencesAndrea Diamantini2012-07-081-7/+0
| | | | | | Patch by Yuri Chornoivan, Thanks :) BUG: 303180
* Krazy fixesAndrea Diamantini2012-07-071-1/+1
|
* 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-273-9/+15
| | | | | | - astyle - copyrights - (some) includes
* Clean up headers && fix compilation with (the upcoming) qt 4.8.2Andrea Diamantini2012-04-203-2/+3
|
* fixuifilesPino Toscano2012-03-161-3/+0
|
* hided->hidden, pluralize messageYuri Chornoivan2012-03-142-2/+2
|
* 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
|