From 25dedb09e1321ae70fe0598d98a3a6e4d15d1215 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Wed, 15 Feb 2023 03:24:47 +0100 Subject: tweaks: around bloomberg webpage --- rose.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rose.c') diff --git a/rose.c b/rose.c index 4f668d6..89189c0 100644 --- a/rose.c +++ b/rose.c @@ -123,6 +123,14 @@ void load_changed(WebKitWebView *self, WebKitLoadEvent load_event, GtkNotebook * switch (load_event) { /* see */ case WEBKIT_LOAD_STARTED: + if(CUSTOM_STYLE_ENABLED){ + char* style_js = malloc(STYLE_N+1); + read_style_js(style_js); + webkit_web_view_run_javascript(notebook_get_webview(notebook), + style_js, + NULL, NULL, NULL); + free(style_js); + } if(LIBRE_REDIRECT_ENABLED){ redirect_if_annoying(self, webkit_web_view_get_uri(self)); } -- cgit v1.2.3