Asking for an addon (Could this addon be created?)

 From:  Michael Gibson
11600.12 In reply to 11600.11 
Hi Mo, also maybe instead of looking at the URL it may be better to look for that global variable existing.

Something like this:

code:
    var uipanels = moi.ui.getUIPanels();

    for ( var i = 0; i < uipanels.length; ++i )
    {
        var uipanel = uipanels.item(i);
        
        /* uipanel is the HTML window object that holds global variables. */
        /* Find the one that has a global variable "LiteGraph". */
        if ( uipanel.LiteGraph )
        {
              moi.ui.alert( 'found it' );
        }
    }