]> spindle.queued.net Git - midori/commitdiff
Don't consider scripts using GM_ functions as broken
authorChristian Dywan <christian@twotoasts.de>
Sun, 3 Apr 2011 23:50:53 +0000 (01:50 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 3 Apr 2011 23:50:53 +0000 (01:50 +0200)
There are cases where scripts check for the existence of such
functions and fall back to standard functions.

extensions/addons.c

index 91d782965fb6f2092b734071ed52ce0a6cbf5d77..9ebdec4f02424ff2d4eb1263abc55a807673bd01 100644 (file)
@@ -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;