{
const char *page_uri;
- page_uri = webkit_web_view_get_uri (web_view);
+ page_uri = webkit_web_frame_get_uri (web_frame);
/* Don't add adblock css into speeddial and about: pages */
- if (midori_uri_is_blank (page_uri))
+ if (!midori_uri_is_http (page_uri))
return;
g_free (sokoke_js_script_eval (js_context, blockscript, NULL));
GSList* scripts, *styles;
struct AddonElement* script, *style;
struct AddonsList* scripts_list, *styles_list;
+ const gchar* page_uri;
+
+ page_uri = webkit_web_frame_get_uri (web_frame);
+ if (!midori_uri_is_http (page_uri))
+ return;
/* Not a main frame! Abort */
if (web_frame != webkit_web_view_get_main_frame (web_view))
JSObjectRef js_window)
{
gchar* script;
+ const gchar* page_uri;
+
+ page_uri = webkit_web_frame_get_uri (web_frame);
+ if (!midori_uri_is_http (page_uri))
+ return;
+
script = formhistory_build_js ();
sokoke_js_script_eval (js_context, script, NULL);
g_free (script);
JSObjectRef js_window,
MidoriView* view)
{
+ const gchar* page_uri;
+
+ page_uri = webkit_web_frame_get_uri (web_frame);
+ if (!midori_uri_is_http (page_uri))
+ return;
+
if (katze_object_get_boolean (view->settings, "enable-private-browsing"))
{
/* Mask language, architecture, no plugin list */