summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dwb.c2
-rw-r--r--src/dwb.h2
-rw-r--r--src/view.c2
3 files changed, 0 insertions, 6 deletions
diff --git a/src/dwb.c b/src/dwb.c
index aa992127..77317d2d 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -3476,7 +3476,6 @@ dwb_clean_up()
g_string_free(dwb.state.buffer, true);
g_free(dwb.misc.hints);
g_free(dwb.misc.hint_style);
- g_free(dwb.misc.scripts);
dwb_free_list(dwb.fc.bookmarks, (void_func)dwb_navigation_free);
/* TODO sqlite */
@@ -4545,7 +4544,6 @@ dwb_init_vars(void)
dwb.misc.max_c_items = MAX_COMPLETIONS;
dwb.misc.userscripts = NULL;
dwb.misc.proxyuri = NULL;
- dwb.misc.scripts = NULL;
dwb.misc.hints = NULL;
dwb.misc.hint_style = NULL;
diff --git a/src/dwb.h b/src/dwb.h
index 6b6ef340..aa609369 100644
--- a/src/dwb.h
+++ b/src/dwb.h
@@ -739,8 +739,6 @@ struct _Misc {
const char *name;
const char *prog_path;
/* applied to the mainframe */
- char *scripts;
- char *scripts_onload;
char *hints;
/* applied to all frames */
const char *profile;
diff --git a/src/view.c b/src/view.c
index fda972f0..856d10f6 100644
--- a/src/view.c
+++ b/src/view.c
@@ -721,7 +721,6 @@ view_load_status_after_cb(WebKitWebView *web, GParamSpec *pspec, GList *gl)
WebKitLoadStatus status = webkit_web_view_get_load_status(web);
if (status == WEBKIT_LOAD_COMMITTED)
{
- dwb_execute_script(webkit_web_view_get_main_frame(web), dwb.misc.scripts, false);
if (VIEW(gl)->js_base != NULL)
{
JSValueUnprotect(JS_CONTEXT_REF(gl), VIEW(gl)->js_base);
@@ -800,7 +799,6 @@ view_load_status_cb(WebKitWebView *web, GParamSpec *pspec, GList *gl)
{
util_file_add_navigation(dwb.files[FILES_HISTORY], dwb.fc.history->data, false, dwb.misc.history_length);
}
- dwb_execute_script(webkit_web_view_get_main_frame(web), dwb.misc.scripts_onload, false);
if (dwb.state.auto_insert_mode)
dwb_check_auto_insert(gl);