diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-02-15 03:24:47 +0100 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-02-15 03:24:47 +0100 |
commit | 25dedb09e1321ae70fe0598d98a3a6e4d15d1215 (patch) | |
tree | 8894952d15feb6133bdd4c3828de2d817eb33c2e /rose.c | |
parent | a27b4357af07c0eef7a28afe6dc8e9274e9d7e17 (diff) |
tweaks: around bloomberg webpage
Diffstat (limited to 'rose.c')
-rw-r--r-- | rose.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -123,6 +123,14 @@ void load_changed(WebKitWebView *self, WebKitLoadEvent load_event, GtkNotebook * switch (load_event) { /* see <https://webkitgtk.org/reference/webkit2gtk/2.5.1/WebKitWebView.html> */ 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)); } |