From: Christian Dywan Date: Sun, 3 Apr 2011 23:50:53 +0000 (+0200) Subject: Don't consider scripts using GM_ functions as broken X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b299608352e0a1c20416bed1e1d39dc71fc5742b;p=midori Don't consider scripts using GM_ functions as broken There are cases where scripts check for the existence of such functions and fall back to standard functions. --- diff --git a/extensions/addons.c b/extensions/addons.c index 91d78296..9ebdec4f 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1245,12 +1245,6 @@ addons_update_elements (MidoriExtension* extension, if (!addons_get_element_content (fullpath, kind, &(element->script_content))) element->broken = TRUE; - if (element->script_content) - { - gchar* use_gm = g_strrstr_len (element->script_content , -1, "GM_"); - if (use_gm && *use_gm) - element->broken = TRUE; - } if (g_key_file_get_integer (keyfile, "scripts", fullpath, NULL) & 1) element->enabled = FALSE;