add: var max = client.prefs["urls.store.max"]; if (client.prefs["urls.list"].unshift(href) > max) client.prefs["urls.list"].pop(); client.prefs["urls.list"].update();  
context: function insertLink (matchText, containerTag){    var href;    var linkText;    var trailing;    ary = matchText.match(/([.,?]+)$/);    if (ary)    {        linkText = RegExp.leftContext;        trailing = ary[1];    }    else    {        linkText = matchText;    }    var ary = linkText.match (/^(\w[\w-]+):/);    if (ary)    {        if (!("schemes" in client))        {            var pfx = "@mozilla.org/network/protocol;1?name=";            var len = pfx.length;            client.schemes = new Object();            for (var c in Components.classes)            {                if (c.indexOf(pfx) == 0)                    client.schemes[c.substr(len)] = true;            }        }        if (!(ary[1] in client.schemes))        {            insertHyphenatedWord(matchText, containerTag);            return;        }        href = linkText;    }    else    {        href = "http://" + linkText;    }    var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml",                                           "html:a");    anchor.setAttribute ("href", href);    anchor.setAttribute ("class", "chatzilla-link");    anchor.setAttribute ("target", "_content");    insertHyphenatedWord (linkText, anchor);    containerTag.appendChild (anchor);    if (trailing)        insertHyphenatedWord (trailing, containerTag);}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/39e5b90899fc599994113001cae2ce6d77440de1/static.js/buggy/xul/content/static.js