From b299608352e0a1c20416bed1e1d39dc71fc5742b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 4 Apr 2011 01:50:53 +0200 Subject: [PATCH] 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. --- extensions/addons.c | 6 ------ 1 file changed, 6 deletions(-) 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; -- 2.39.5