commit: 6716637c78bc52ff6a4aa53876a52eefa334deab
parent: 3d09588f910336cb7db6c78c2d4e7e08ca8641c1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 7 Jan 2019 02:54:36 +0100
badwolf.c: WebKit Setting (JSClipboard: no, DevTools: yes)
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -25,6 +25,13 @@ int main(int argc, char *argv[])
g_signal_connect(main_window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
g_signal_connect(webView, "close", G_CALLBACK(closeWebViewCb), main_window);
+ WebKitSettings *settings = webkit_web_view_get_settings(webView);
+
+ webkit_settings_set_javascript_can_access_clipboard(settings, FALSE);
+ webkit_settings_set_enable_developer_extras(settings, TRUE);
+
+ webkit_web_view_set_settings(webView, settings);
+
webkit_web_view_load_uri(webView, target_url);
gtk_widget_grab_focus(GTK_WIDGET(webView));