pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24bbd6b
)
changing useragent.
author
Enno Boland (tox)
<tox@s01.de>
Wed, 14 Oct 2009 14:28:00 +0000
(16:28 +0200)
committer
Enno Boland (tox)
<tox@s01.de>
Wed, 14 Oct 2009 14:28:00 +0000
(16:28 +0200)
config.def.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
e1b6df7
..
036da80
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-1,4
+1,5
@@
/* modifier 0 means no modifier */
/* modifier 0 means no modifier */
+static gchar *useragent = "Mozilla/5.0 (This is surf. Really! KHTML, like Gecko) Safari/531.2+";
static gchar *progress = "#FF0000";
static gchar *progress_trust = "#00FF00";
static gchar *stylefile = ".surf/style.css";
static gchar *progress = "#FF0000";
static gchar *progress_trust = "#00FF00";
static gchar *stylefile = ".surf/style.css";
diff --git
a/surf.c
b/surf.c
index
3193540
..
0ee4ed3
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-439,7
+439,7
@@
newclient(void) {
gdk_window_add_filter(GTK_WIDGET(c->win)->window, processx, c);
webkit_web_view_set_full_content_zoom(c->view, TRUE);
settings = webkit_web_view_get_settings(c->view);
gdk_window_add_filter(GTK_WIDGET(c->win)->window, processx, c);
webkit_web_view_set_full_content_zoom(c->view, TRUE);
settings = webkit_web_view_get_settings(c->view);
- g_object_set(G_OBJECT(settings), "user-agent",
"surf"
, NULL);
+ g_object_set(G_OBJECT(settings), "user-agent",
useragent
, NULL);
uri = g_strconcat("file://", stylefile, NULL);
g_object_set(G_OBJECT(settings), "user-stylesheet-uri", uri, NULL);
g_free(uri);
uri = g_strconcat("file://", stylefile, NULL);
g_object_set(G_OBJECT(settings), "user-stylesheet-uri", uri, NULL);
g_free(uri);