diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-11-09 12:10:19 +0100 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-11-09 12:10:19 +0100 |
commit | 9cbe7f49106c6822aa2a01f6e37458626d0b696b (patch) | |
tree | c7426094618b24a3ab1d257de49cde9881d208cc | |
parent | 79d0c56da86ab63f0aa52f48a56a2f73c08738f5 (diff) | |
download | lariza-9cbe7f49106c6822aa2a01f6e37458626d0b696b.tar.gz |
"-r" is useless without the adblock hook
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | browser.c | 16 |
2 files changed, 1 insertions, 18 deletions
@@ -191,9 +191,6 @@ following options: window specified by <wid>. The download manager is always a "popup". - -r - Print all navigation requests on STDERR. - -C Disables cooperative instances. @@ -78,7 +78,6 @@ static gchar *home_uri = "about:blank"; static GHashTable *keywords = NULL; static gboolean language_is_set = FALSE; static gchar *search_text = NULL; -static gboolean show_all_requests = FALSE; static gboolean tabbed_automagic = TRUE; static gchar *user_agent = NULL; @@ -235,8 +234,6 @@ client_new(const gchar *uri) if (uri != NULL) { f = ensure_uri_scheme(uri); - if (show_all_requests) - fprintf(stderr, "====> %s\n", uri); webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f); g_free(f); } @@ -629,8 +626,6 @@ key_location(GtkWidget *widget, GdkEvent *event, gpointer data) else if (!keywords_try_search(WEBKIT_WEB_VIEW(c->web_view), t)) { f = ensure_uri_scheme(t); - if (show_all_requests) - fprintf(stderr, "====> %s\n", f); webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f); g_free(f); } @@ -666,15 +661,11 @@ key_web_view(GtkWidget *widget, GdkEvent *event, gpointer data) return TRUE; case GDK_KEY_w: /* home (left hand) */ f = ensure_uri_scheme(home_uri); - if (show_all_requests) - fprintf(stderr, "====> %s\n", f); webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f); g_free(f); return TRUE; case GDK_KEY_e: /* new tab (left hand) */ f = ensure_uri_scheme(home_uri); - if (show_all_requests) - fprintf(stderr, "====> %s\n", f); client_new(f); g_free(f); return TRUE; @@ -811,8 +802,6 @@ keywords_try_search(WebKitWebView *web_view, const gchar *t) if (val != NULL) { uri = g_strdup_printf((gchar *)val, tokens[1]); - if (show_all_requests) - fprintf(stderr, "====> %s\n", uri); webkit_web_view_load_uri(web_view, uri); g_free(uri); ret = TRUE; @@ -922,7 +911,7 @@ main(int argc, char **argv) grab_environment_configuration(); - while ((opt = getopt(argc, argv, "e:rCT")) != -1) + while ((opt = getopt(argc, argv, "e:CT")) != -1) { switch (opt) { @@ -930,9 +919,6 @@ main(int argc, char **argv) embed = atol(optarg); tabbed_automagic = FALSE; break; - case 'r': - show_all_requests = TRUE; - break; case 'C': cooperative_instances = FALSE; break; |