[Xfce4-commits] <midori:master> Fix script name extraction and re-enable installer on userscripts.org "review" pages

Christian Dywan noreply at xfce.org
Fri Feb 4 01:22:01 CET 2011


Updating branch refs/heads/master
         to 7504edaa11d87691279a53e8e9caf2bf1207c916 (commit)
       from 3b5a5052576b664f941ec459fcd622148fd0d606 (commit)

commit 7504edaa11d87691279a53e8e9caf2bf1207c916
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu Feb 3 23:34:52 2011 +0100

    Fix script name extraction and re-enable installer on userscripts.org "review" pages

 extensions/addons.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 7604ab3..2828033 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);



More information about the Xfce4-commits mailing list