Commit graph

125 commits

Author SHA1 Message Date
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
Alexander Butenko
15a06bbfe1 Integrate Adblock preferences with extension list 2011-06-24 23:55:08 +02:00
Alexander Butenko
4d7424adc4 Fix length calculation and typos in fixup function 2011-06-24 21:48:03 +02:00
Alexander Butenko
60cb44c846 Remove legacy code from adblock 2011-06-24 21:42:32 +02:00
Alexander Butenko
bd10649982 Ignore rules with subdocument property 2011-06-24 21:26:05 +02:00
Alexander Butenko
f093e55f85 Skip empty lines in adblock rules files 2011-06-24 21:20:08 +02:00
Alexander Butenko
092834f65e Inline parsing functions. 10% speedup during load 2011-06-08 20:05:28 +02:00
Alexander Butenko
c71f3b37e4 Remove legacy webkit bug workaround 2011-06-08 20:03:37 +02:00
Paweł Forysiuk
f46f3f0be0 Speed-up JS generator function in Adblock 2011-06-08 20:02:48 +02:00
Alexander Butenko
5f1cd907ad Some tiny Adblock speed-ups with regex optimization 2011-06-08 19:59:18 +02:00
Alexander Butenko
4e656cc127 10x speed-up in loading of CSS rules for Adblock 2011-06-08 19:51:26 +02:00
Alexander Butenko
fc842d9751 Add URL cache in adblock extension
We can bypass all tests on the second load of the URL.
2011-06-02 00:48:02 +02:00
Christian Dywan
f97395dab1 Validate URIs and render entry red if invalid
Fixes: https://bugs.launchpad.net/midori/+bug/710855
2011-05-15 16:46:23 +02:00
Alexander Butenko
6885c35886 Fix loading of lists from https
Fixes: https://bugs.launchpad.net/midori/+bug/699978
2011-05-15 13:17:25 +02:00
Paweł Forysiuk
bbfa7f6030 Fix GCC 4.6 warnings about set but unused variables 2011-04-29 04:03:33 +02:00
Paweł Forysiuk
5cdbf5e814 Free uri in adblock_is_matched_by_key after printing 2011-02-13 18:35:46 +01:00
Christian Dywan
90e11d3713 Only no adblock if main frame in provisional state 2011-02-01 01:52:39 +01:00