Commit Graph

141 Commits

Author SHA1 Message Date
Christian Dywan 4b533d2f51 Give readable names to numeric debug tokens 2012-09-12 14:12:08 +02:00
Paweł Forysiuk f29318af7c Adblock: use fs modification time to prevent unneded downloads 2012-09-10 23:19:01 +02:00
Paweł Forysiuk 9af985e7e8 Adblock: use queue to prevent endless update loop 2012-09-10 23:19:01 +02:00
Paweł Forysiuk 419d4c1ae5 Adblock: handle files with dates in future 2012-09-10 23:19:01 +02:00
Paweł Forysiuk 82242a8c2e Adblock: check if file contains any metadata first 2012-09-10 23:19:01 +02:00
Paweł Forysiuk 8de05bc07d Adblock: add some unit tests for update metadata 2012-09-10 23:19:01 +02:00
Paweł Forysiuk d426a4df9e Adblock: Try to parse more update metadata 2012-09-02 22:01:32 +02:00
Paweł Forysiuk 414a5f07ae Don't inline adblock_update_css_hash, GCC complains
warning: inlining failed in call to ‘adblock_update_css_hash’:
function not considered for inlining [-Winline]
2012-09-02 21:59:49 +02:00
Paweł Forysiuk be61f96bc2 Adblock: Check if file is up to date before parsing it 2012-09-01 18:13:14 +02:00
Paweł Forysiuk 9b09760839 Update Adblock filters according to Last modified/ Expires 2012-09-01 02:00:12 +02:00
Christian Dywan 7f37162fe0 Introduce Midori.Paths and Midori.RuntimeMode
Also introduce initial "portable" mode on Win32.
2012-08-27 21:52:24 +02:00
Christian Dywan 96f616a237 Use secondary toolbar class for panel title
Also introduce a utility function to make adding
the class more readable.

Fixes: https://bugs.launchpad.net/midori/+bug/1026384
2012-07-28 11:06:40 +02:00
Christian Dywan 5998b6b0ea Consolidate debugging in midori_debug()/ MIDORI_DEBUG 2012-07-19 21:14:09 +02:00
Christian Dywan 3627c75e0b Add missing noundo and help_button classes 2012-07-15 00:13:43 +02:00
Christian Dywan b18667220c Handle abp: and abp:// links
Fixed: https://bugs.launchpad.net/midori/+bug/942978
2012-06-27 23:58:07 +02:00
André Stösel fc7e30f516 Cleanup unused variable in adblock 2012-04-15 19:31:40 +02:00
André Stösel 3f795a62cb Ignore request if the source is a redirect and of the main frame
Fixes: https://bugs.launchpad.net/midori/+bug/979767
2012-04-13 23:40:27 +02:00
André Stösel da5f257314 Fix for "tab registration" in adblock
Fixes: https://bugs.launchpad.net/midori/+bug/977981
2012-04-13 23:34:43 +02:00
André Stösel 8d0d2554ca Ignore request if the source is a navigation request
Fixes: https://bugs.launchpad.net/midori/+bug/979767
2012-04-12 23:43:50 +02:00
André Stösel 08d890e20e adblock_deactivate_tabs had the wrong user data
Fixes: https://bugs.launchpad.net/midori/+bug/977981
2012-04-12 23:43:50 +02:00
Christian Dywan a32cc0908e Ensure adblock config folder when blocking images 2012-04-05 22:43:58 +02:00
Christian Dywan 7066679bcf Document Adblock syntax and support status 2012-03-11 20:43:24 +01:00
Christian Dywan fa22841ec9 Skip empty, invalid and comment lines in adblock_parse_line 2012-03-06 20:14:15 +01:00
Alexander Butenko 696b377b32 Process all the frames 2012-01-10 02:14:24 +01:00
Alexander Butenko 835f808115 Refactor JS code generation for adblock 2012-01-10 02:12:55 +01:00
Alexander Butenko fe6acc509a Reload all rulesets instead of re-downloading one 2012-01-06 01:58:44 +01:00
Alexander Butenko a87b4cd7d8 Move adblock element hiding logic from JS to C 2011-12-18 02:07:55 +01:00
Alexander Butenko 98f2e3b572 Optimize private element hider algorithm 2011-12-07 20:34:54 +01:00
Alexander Butenko 312d321ff9 Skip window_object_cleared in non-http-frames 2011-12-07 20:30:42 +01:00
Alexander Butenko de89a988f0 Do reset sig in adblock_is_matched_by_key 2011-11-29 01:32:31 +01:00
Christian Dywan 760270832a adblock_compile_regexp free data after checking it 2011-11-28 23:31:17 +01:00
Christian Dywan ffd3026baf Clean up allocations in adblock_add_url_pattern 2011-11-28 21:21:29 +01:00
Alexander Butenko 249619a631 Avoid memory allocated sig in adblock_is_matched_by_key 2011-11-28 21:03:37 +01:00
Alexander Butenko f8b6792756 Refactor adblock_is_matched_by_key into adblock_check_rule 2011-11-28 20:48:55 +01:00
Christian Dywan da8983b09f Return in adblock filter entry should Add the filter 2011-11-22 21:57:20 +01:00
Alexander Butenko 179e33d054 Fix handling of blockss in Adblock 2011-11-09 22:06:10 +01:00
Alexander Butenko fc2bac2e01 Append needed by Adblock correctly after blockcss 2011-11-08 22:22:01 +01:00
Christian Dywan c5e6b7a020 Show mismatching build version suffix for extensions
MIDORI_VERSION_SUFFIX resolves to a string that needs to be
added to each extension's version at build time. If it is
different than the running Midori's, it is shown in the
extension list.
2011-11-08 01:53:53 +01:00
Christian Dywan 8fff7d8fd3 sokoke, gtk3-compat, gtkiconentry, stock join midori-platform.h
Also introduce #define MIDORI_MODULE_PREFIX.

Fixes: https://bugs.launchpad.net/midori/+bug/884395
2011-10-31 22:18:06 +01:00
Alexander Butenko 34e0c98cb7 Use midori_web_settings_add_style for adblock CSS 2011-10-30 15:19:06 +01:00
Christian Dywan ff569e8328 Use Midori.URI API in adblock_resource_request_starting_cb 2011-10-29 03:32:16 +02:00
Christian Dywan be04be8303 Introduce and use Midori.URI.is_http
Also make further uses of Midori.URI.parse.
2011-10-28 22:49:10 +02:00
Christian Dywan 4b33fd2c7d Avoid GTK+3 #ifdef and #define GTK_DIALOG_DESTROY_WITH_PARENT 2011-10-26 20:07:11 +02:00
Alexander Butenko eeb4b7b391 Reduce strlen usage in adblock by using GString 2011-10-10 22:37:57 +02:00
Lucas Baudin b5aad2d176 Allow building with GTK+3
Fixes: https://bugs.launchpad.net/midori/+bug/861351
2011-10-07 20:24:02 +02:00
Alexander Butenko b574501978 No adblock on special pages 2011-09-14 01:59:57 +02:00
Paweł Forysiuk b557233290 Don't bother with stock, res and favicons uris in adblock 2011-09-14 01:33:07 +02:00
Paweł Forysiuk 3e2e8906fb Remove leftover version guards for WebKit > 1.1.17 2011-08-15 22:56:38 +02:00
Alexander Butenko ac78646f83 Don't do pattern matching if link was matched by key 2011-07-05 03:55:53 +02:00
Alexander Butenko 3db46d2297 Always check rules options, not only in pattern matching 2011-07-05 03:54:31 +02:00