From 7504edaa11d87691279a53e8e9caf2bf1207c916 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Thu, 3 Feb 2011 23:34:52 +0100 Subject: [PATCH] Fix script name extraction and re-enable installer on userscripts.org "review" pages --- extensions/addons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/addons.c b/extensions/addons.c index 7604ab38..2828033e 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -129,7 +129,7 @@ addons_install_response (GtkWidget* infobar, web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view)); web_frame = webkit_web_view_get_main_frame (web_view); - js_script = "document.getElementById('heading').childNodes[3].childNodes[1].innerHTML"; + js_script = "document.getElementById('heading').childNodes[3].childNodes[1].textContent"; if (WEBKIT_IS_WEB_FRAME (web_frame)) { JSContextRef js_context = webkit_web_frame_get_global_context (web_frame); @@ -262,7 +262,7 @@ addons_notify_load_status_cb (MidoriBrowser* browser, gchar* subpage = split_uri[4]; /* userscripts.org script main (with desc) and "source view" pages */ - if (!g_strcmp0 (subpage, "show") /* || !g_strcmp0 (subpage, "review") */) + if (!g_strcmp0 (subpage, "show") || !g_strcmp0 (subpage, "review")) addons_uri_install (browser, MIDORI_VIEW (view), ADDONS_USER_SCRIPTS); g_strfreev (split_uri); -- 2.39.5