rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}
function initPrefs(){ console.prefs = new Object(); console.prefs.prefService = Components.classes[PREF_CTRID].getService(nsIPrefService); console.prefs.prefBranch = console.prefs.prefService.getBranch("extensions.venkman."); console.prefs.prefNames = new Array(); // console.addPref...
printEngine.SetWindow(window);
printEngine.setWindow(window);
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.SetWindow(window); // See if we got arguments. // Window was opened via window.openDialog. Copy argument // and perform compose initialization // if ( window.arguments && window.arguments[0] !=...
if ( window.arguments && window.arguments[0] != null ) {
printEngine.showWindow(false); if ( window.arguments && window.arguments[0] != null ) {
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.SetWindow(window); // See if we got arguments. // Window was opened via window.openDialog. Copy argument // and perform compose initialization // if ( window.arguments && window.arguments[0] !=...
printEngine.SetStatusFeedback(statusFeedback);
printEngine.setStatusFeedback(statusFeedback);
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.SetWindow(window); // See if we got arguments. // Window was opened via window.openDialog. Copy argument // and perform compose initialization // if ( window.arguments && window.arguments[0] !=...
if (numSelected > 0) { printEngine.SetPrintURICount(numSelected); for(var i = 0; i < numSelected; i++) { dump(uriArray[i]); printEngine.AddPrintURI(uriArray[i]); dump("\n"); } }
if (numSelected > 0) { printEngine.setPrintURICount(numSelected); for (var i = 0; i < numSelected; i++) { printEngine.addPrintURI(uriArray[i]); } }
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.SetWindow(window); // See if we got arguments. // Window was opened via window.openDialog. Copy argument // and perform compose initialization // if ( window.arguments && window.arguments[0] !=...
if (printSettings) { printSettings.isCancelled = false; }
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.setWindow(window); /* hide the printEngine window. see bug #73995 */ printEngine.showWindow(false); /* See if we got arguments. * Window was opened via window.openDialog. Copy argument * and ...
document.getElementById('mustagree').collapsed = true;
function initPrivacyNotice(){ // If they agreed, we continue on var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) .getBranch("extensions.reporter."); try { if (prefs.getBoolPref("hidePrivacyStatement")...
reportWizard.canAdvance = false;
function initPrivacyNotice() { var reportWizard = document.getElementById('reportWizard'); // If they agreed, we continue on if (getBoolPref("hidePrivacyStatement", false)) { reportWizard.advance(); } else { // Don't let users rewind reportWizard.canRewind = false; // Load Privacy Policy var privacyU...
var strbundle=document.getElementById("strings"); document.getElementById("privacyStatement").setAttribute("src", strbundle.getString("privacyStatementURL"));
var privacyURL try { privacyURL = prefs.getCharPref("privacyURL"); } catch (e) { privacyURL = "http: } document.getElementById("privacyStatement").setAttribute("src", privacyURL);
function initPrivacyNotice(){ // If they agreed, we continue on var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) .getBranch("extensions.reporter."); try { if (prefs.getBoolPref("hidePrivacyStatement")...
["profile.forceScriptLoad", false],
function initProfiler (){ var prefs = [ ["profile.template.xml", "chrome://venkman/locale/profile.xml.tpl"], ["profile.template.html", "chrome://venkman/locale/profile.html.tpl"], ["profile.template.csv", "chrome://venkman/locale/profile.csv.tpl"], ["profile.template.txt", "chr...
["profile.ranges.default", "1000000, 5000, 2500, 1000, 750, 500, 250," + "100, 75, 50, 25, 10, 7.5, 5, 2.5, 1, 0.75, 0.5, 0.25"]
["profile.ranges.default", "1000000, 5000, 2500, 1000, 750, 500, " + "250, 100, 75, 50, 25, 10, 7.5, 5, 2.5, 1, 0.75, 0.5, 0.25"]
function initProfiler (){ var prefs = [ ["profile.template.xml", "chrome://venkman/locale/profile.xml.tpl"], ["profile.template.html", "chrome://venkman/locale/profile.html.tpl"], ["profile.template.csv", "chrome://venkman/locale/profile.csv.tpl"], ["profile.template.txt", "chr...
if (gSearchInput.searchMode == 4 )
if (gSearchInput.searchMode == 4 || gSearchInput.value == "" || gSearchInput.showingSearchCriteria)
function InitQuickSearchPopup(){ // disable the create virtual folder menu item if the current radio // value is set to Find in message since you can't really create a VF from find // in message if (gSearchInput.searchMode == 4 /* find in page */) document.getElementById('quickSearchSaveAsVirtualFolder').setAtt...
var namedAnchorsItem = document.getElementById(removeNamedAnchorsId);
function InitRemoveStylesMenuitems(removeStylesId, removeLinksId, removeNamedAnchorsId){ // Change wording of menuitems depending on selection var stylesItem = document.getElementById(removeStylesId); var linkItem = document.getElementById(removeLinksId); var namedAnchorsItem = document.getElementById(removeNamedAn...
DisableItem(removeLinksId, isCollapsed && !window.editorShell.GetElementOrParentByTagName("href", null));
SetElementEnabled(linkItem, !isCollapsed || window.editorShell.GetElementOrParentByTagName("href", null));
function InitRemoveStylesMenuitems(removeStylesId, removeLinksId, removeNamedAnchorsId){ // Change wording of menuitems depending on selection var stylesItem = document.getElementById(removeStylesId); var linkItem = document.getElementById(removeLinksId); var namedAnchorsItem = document.getElementById(removeNamedAn...
if (namedAnchorsItem) { DisableItem(removeNamedAnchorsId, isCollapsed); }
SetElementEnabledById(removeNamedAnchorsId, !isCollapsed);
function InitRemoveStylesMenuitems(removeStylesId, removeLinksId, removeNamedAnchorsId){ // Change wording of menuitems depending on selection var stylesItem = document.getElementById(removeStylesId); var linkItem = document.getElementById(removeLinksId); var namedAnchorsItem = document.getElementById(removeNamedAn...
document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDates;
document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDays;
function initRetentionSettings(){ var retentionSettings = gIncomingServer.retentionSettings; document.getElementById("nntp.keepUnread").checked = retentionSettings.keepUnreadMessagesOnly; document.getElementById("nntp.removeBody").checked = retentionSettings.cleanupBodiesByDates; document.getElementById...
this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage )); this.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage ));
this.showItem( "context-savepage", !( this.inDirList || this.isContentSelected || this.onTextInput || this.onLink || this.onImage )); this.showItem( "context-sendpage", !( this.inDirList || this.isContentSelected || this.onTextInput || this.onLink || this.onImage ));
initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage )); this.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage )); // ...
onLockPreference();
function initServerSettings(){ document.getElementById("offline.notDownload").checked = gIncomingServer.limitMessageSize; if(gIncomingServer.maxMessageSize > 0) document.getElementById("offline.notDownloadMin").setAttribute("value", gIncomingServer.maxMessageSize); else document.getElementByI...
verboseName = "POP Mail server";
verboseName = "POP Mail Server";
function initServerType() { var serverType = document.getElementById("server.type").value; var verboseName; var index; if (serverType == "pop3") { verboseName = "POP Mail server"; index = 0; } else if (serverType == "imap") { verboseName = "IMAP Mail server"; index = 1; } else if (serverType...
verboseName = "IMAP Mail server";
verboseName = "IMAP Mail Server";
function initServerType() { var serverType = document.getElementById("server.type").value; var verboseName; var index; if (serverType == "pop3") { verboseName = "POP Mail server"; index = 0; } else if (serverType == "imap") { verboseName = "IMAP Mail server"; index = 1; } else if (serverType...
dump("deck index was " + deck.getAttribute("index") + "\n");
function initServerType() { var serverType = document.getElementById("server.type").value; var verboseName; var index; if (serverType == "pop3") { verboseName = "POP Mail server"; index = 0; } else if (serverType == "imap") { verboseName = "IMAP Mail server"; index = 1; } else if (serverType...
var isSecureSelected = document.getElementById("server.isSecure").checked;
var isSecureSelected; if (document.getElementById("server.isSecure").hidden == true) isSecureSelected = document.getElementById("server.socketType").value == 3; else isSecureSelected = document.getElementById("server.isSecure").checked;
function initServerType() { var serverType = document.getElementById("server.type").getAttribute("value"); var propertyName = "serverType-" + serverType; var messengerBundle = document.getElementById("bundle_messenger"); var verboseName = messengerBundle.getString(propertyName); setDivText("servertype.verbose", ...
var hostname = document.getElementById("server.hostName").getAttribute("value"); var username = document.getElementById("server.username").getAttribute("value");
function initServerType() { var serverType = document.getElementById("server.type").getAttribute("value"); var verboseName; var propertyName = "serverType-" + serverType; verboseName = stringBundle.GetStringFromName(propertyName); var hostname = document.getElementById("server.hostName").getAttribute("value"); ...
setDivText("servername.verbose", hostname); setDivText("username.verbose", username);
function initServerType() { var serverType = document.getElementById("server.type").getAttribute("value"); var verboseName; var propertyName = "serverType-" + serverType; verboseName = stringBundle.GetStringFromName(propertyName); var hostname = document.getElementById("server.hostName").getAttribute("value"); ...
PREF = Components.classes[kPREFContractID].getService(kPREFIID) .getBranch(null);
try { PREF = Components.classes[kPREFContractID].getService(kPREFIID) .getBranch(null); } catch (e) {}
function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; WEB_NS = "http://home.netscape.com/WEB-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "...
SOUND = Components.classes[kSOUNDContractID].createInstance(kSOUNDIID);
try { SOUND = Components.classes[kSOUNDContractID].createInstance(kSOUNDIID); } catch (e) {}
function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; WEB_NS = "http://home.netscape.com/WEB-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "...
WINDOWSVC = Components.classes[kWINDOWContractID].getService(kWINDOWIID);
try { WINDOWSVC = Components.classes[kWINDOWContractID].getService(kWINDOWIID); } catch (e) {}
function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; WEB_NS = "http://home.netscape.com/WEB-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "...
DS = Components.classes[kDSContractID].getService(kDSIID);
try { DS = Components.classes[kDSContractID].getService(kDSIID); } catch (e) {}
function initServices(){ NC_NS = "http://home.netscape.com/NC-rdf#"; WEB_NS = "http://home.netscape.com/WEB-rdf#"; RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; NC_NS_CMD = NC_NS + "command?cmd="; kRDFContractID = "...
kMICSUMContractID = "@mozilla.org/microsummary/service;1"; kMICSUMIID = Components.interfaces.nsIMicrosummaryService; MICSUMSVC = Components.classes[kMICSUMContractID].getService(kMICSUMIID);
function initServices(){ gNC_NS = "http://home.netscape.com/NC-rdf#"; gWEB_NS = "http://home.netscape.com/WEB-rdf#"; gRDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; gXUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; gNC_NS_CMD = gNC_NS + "command?cmd="; kRDFContractID...
if (!gPrefs) GetPrefsService();
if (!gMailOfflinePrefs) GetMailOfflinePrefs();
function InitServices(){ if (!gPrefs) GetPrefsService(); if (!gOfflineManager) GetOfflineMgrService();}
var o;
function InitSheetsTree(sheetsTree){ // remove all entries in the tree CleanSheetsTree(sheetsTree); // Look for the stylesheets attached to the current document // Get them from the STYLE and LINK elements because of async sheet loading : // the LINK element is always here while the corresponding sheet might be /...
if (ownerNode.nodeType == Node.ELEMENT_NODE) { var ownerTag = ownerNode.nodeName.toLowerCase() var relType = ownerNode.getAttribute("rel"); if (ownerTag == "style" || (ownerTag == "link" && (relType == "stylesheet" || relType == "alternate stylesheet"))) { var treeitem = document.createElementNS(XUL_NS, "treeitem"...
AddSheetEntryToTree(sheetsTree, ownerNode);
function InitSheetsTree(sheetsTree){ // remove all entries in the tree CleanSheetsTree(sheetsTree); // Look for the stylesheets attached to the current document // Get them from the STYLE and LINK elements because of async sheet loading : // the LINK element is always here while the corresponding sheet might be /...
dump("gSmtpAuthMethod = <" + gSmtpAuthMethod.localName + ">\n"); dump("gSmtpAuthMethod.value = " + gSmtpAuthMethod.getAttribute("value") + "\n");
function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu...
var elements = []; if (server.trySSL != "") elements = gSmtpTrySSL.getElementsByAttribute("data", server.trySSL);
var elements = gSmtpTrySSL.getElementsByAttribute("data", server.trySSL);
function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu...
} else { gSmtpTrySSL.selectedItem = gSmtpTrySSL.getElementsByAttribute("data", "1")[0];
function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu...
var elements = []; if (server.trySSL != "") elements = gSmtpTrySSL.getElementsByAttribute("data", server.trySSL); if (elements.length == 0) elements = gSmtpTrySSL.getElementsByAttribute("data", "1"); gSmtpTrySSL.selectedItem = elements[0];
function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu...
gSmtpAuthMethod.setAttribute("value", "1");
function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu...
document.getElementById("smtp.hostname").value = server.hostname; document.getElementById("smtp.useUsername").checked = server.alwaysUseUsername; document.getElementById("smtp.username").value = server.username; document.getElementById("smtp.savePassword").checked = server.savePassword;
gSmtpHostname.value = server.hostname; gSmtpUsername.value = server.username; gSmtpSavePassword.checked = server.savePassword;
function initSmtpSettings(server) { if (server) { document.getElementById("smtp.hostname").value = server.hostname; document.getElementById("smtp.useUsername").checked = server.alwaysUseUsername; document.getElementById("smtp.username").value = server.username; document.get...
onUseUsername(gSmtpUseUsername, false);
function initSmtpSettings(server) { if (server) { document.getElementById("smtp.hostname").value = server.hostname; document.getElementById("smtp.useUsername").checked = server.alwaysUseUsername; document.getElementById("smtp.username").value = server.username; document.get...
var suggestionsSeparator = document.getElementById("spell-suggestions-separator");
var suggestionsSeparator = document.getElementById("spell-add-to-dictionary");
initSpellingItems : function () { var canSpell = InlineSpellCheckerUI.canSpellCheck; var onMisspelling = InlineSpellCheckerUI.overMisspelling; this.showItem("spell-check-enabled", canSpell); this.showItem("spell-separator", canSpell); if (canSpell) document.getElementBy...
client.userAgent = getMsg(MSG_VERSION_REPLY, [ver, "Mozilla " + ary[1] + "/" + ary[2]]);
if (navigator.vendor) { client.userAgent = getMsg(MSG_VERSION_REPLY, [ver, navigator.vendor + " " + navigator.vendorSub + "/" + ary[2]]); } else { client.userAgent = getMsg(MSG_VERSION_REPLY, [ver, client.host + " " + ary[1] + "/" + ary[2]]); }
function initStatic(){ client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { dd("IO service failed to initalize: " + ex); } try { const ns...
client.lineEnd = "\n";
function initStatic(){ client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { dd("IO service failed to initalize: " + ex); } try { const ns...
CDCCChat.prototype.onRawData = my_dccchat_rawdata;
CIRCDCCChat.prototype.onRawData = my_dccchat_rawdata;
function initStatic(){ if (jsenv.HAS_RHINO) gc = java.lang.System.gc; CIRCNetwork.prototype.INITIAL_NICK = "jsbot"; CIRCNetwork.prototype.INITIAL_NAME = "XPJSBot"; CIRCNetwork.prototype.INITIAL_DESC = "XPCOM Javascript bot"; CIRCNetwork.prototype.INITIAL_CHANNEL = "#jsbot"; CIRCNetwork.prot...
client.display ("Currently implemented commands are: " + client.commands.listNames().join(", ") + ".", "INFO");
setCurrentObject (client); client.onInputCommands();
function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quicklistC...
setCurrentObject (client);
function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quicklistC...
client.uiState["toolbar"] = setMenuCheck ("menu-view-toolbar", isVisible("views-tbox")); client.uiState["info"] = setMenuCheck ("menu-view-info", isVisible("user-list")); client.uiState["status"] = setMenuCheck ("menu-view-status", isVisible("status-bar-tbox"));
function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quicklistC...
onSortCol ("usercol-nick");
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.display ("Welcome to ChatZilla", "HELP");
client.display ("More help is on the way!", "HELP"); client.display ("/nick, /join, /part, and /me may also be useful.", "HELP"); client.display ("Where <network-name> is one of [" + keys (client.networks) + "]", "HELP"); client.display ("Use /attach <network-name> connect to a network.", "HELP"); client.display ("Welc...
function initStatic(){ var obj; obj = document.getElementById("input"); obj.onkeyup = onInputKeyUp; obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); client.display ("Welcome to ChatZilla", "HELP"); setCurrentObject (client...
var obj;
CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window;
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE);
multilineInputMode(client.prefs["multiline"]);
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.userAgent = "ChatZilla " + client.version + " [Mozilla " +
{ client.userAgent = "ChatZilla " + __cz_version + " [Mozilla " +
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.userAgent = "ChatZilla " + client.version + " [" +
{ client.userAgent = "ChatZilla " + __cz_version + " [" +
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
obj = document.getElementById("input"); obj.addEventListener("keypress", onInputKeyPress, false); obj = document.getElementById("multiline-input"); obj.addEventListener("keypress", onMultilineInputKeyPress, false); obj = document.getElementById("channel-topicedit"); obj.addEventListener("keypress", onTopicKeyPress, fal...
}
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.statusBar["header-url"] = document.getElementById ("header-url"); client.statusBar["server-nick"] = document.getElementById ("server-nick"); client.statusBar["channel-mode"] = document.getElementById ("channel-mode"); client.statusBar["channel-users"] = document.getElementById ("channel-users"); client.statusBar...
client.statusBar["server-nick"] = document.getElementById ("server-nick");
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.defaultStatus = getMsg ("defaultStatus");
client.defaultStatus = MSG_DEFAULT_STATUS;
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.display (getMsg("welcome"), "HELLO"); setCurrentObject (client);
client.logFile = null; setInterval("onNotifyTimeout()", client.NOTIFY_TIMEOUT); client.defaultCompletion = client.COMMAND_CHAR + "help ";
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
var m = document.getElementById ("menu-settings-autosave"); m.setAttribute ("checked", String(client.SAVE_SETTINGS)); setInterval ("onNotifyTimeout()", client.NOTIFY_TIMEOUT); if (getBoolPref("logging", false, client.localPrefs)) client.startLogging(client);
client.deck = document.getElementById('output-deck');
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); multilineInputMode(client.MULTILINE); var ary = navigator.userAgent.mat...
client.uiState["toolbar"] = setMenuCheck ("menu-view-toolbar", isVisible("views-tbar"));
client.uiState["tabstrip"] = setMenuCheck ("menu-view-tabstrip", isVisible("view-tabs"));
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) client.userAgent = "ChatZilla " + client.ver...
var ary = client.INITIAL_URLS.split(";"); for (var i in ary) { ary[i] = stringTrim(ary[i]); if (ary[i]) { if (ary[i].indexOf("irc: ary[i] = "irc: gotoIRCURL (ary[i]); } }
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) client.userAgent = "ChatZilla " + client.ver...
if (document.location.search) gotoIRCURL (document.location.search.substr(1));
var wentSomewhere = false; if (window.arguments && window.arguments[0] && window.arguments[0].url) { url = window.arguments[0].url; if (url.search(/^irc:\/?\/?$/i) == -1) { var ary = client.INITIAL_URLS.split(";"); for (var i in ary) if ((ary[i] = stringTrim(ary[i]))) gotoIRCURL (ary[i]); }
function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) client.userAgent = "ChatZilla " + client.ver...
var template = this.mOutliner.getElementsByTagNameNS(kXULNSURI, "template")[0];
var template = this.mTree.getElementsByTagNameNS(kXULNSURI, "template")[0];
initTemplate: function() { var template = this.mOutliner.getElementsByTagNameNS(kXULNSURI, "template")[0]; this.mTemplate = template; this.clearChildren(template); var rule = document.createElementNS(kXULNSURI, "rule"); template.appendChild(rule); this.mRule = rule; this.createDefaultConditions(...
var lineHeight = getSpecifiedStyle("line-height"); if (!lineHeight || lineHeight == "") gDialog.lineHeightInput.value = ""; else gDialog.lineHeightInput.value = lineHeight;
function InitTextTabPanel(){ gDialog.selectedTab = TEXT_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT FONT-FAMILY */ var fontFamily = getSpecifiedStyle("font-family"); AddStyleToElement(gDialog.brownFoxLabel, "font-family", fontFamily); var fontFamilyChoice = "noFontF...
this.mDocPanel.addObserver("subjectChange", this);
this.mDocPanel.addObserver("subjectChange", this, false);
initViewerPanels: function() { this.mDocPanel = this.mPanelSet.getPanel(0); this.mDocPanel.addObserver("subjectChange", this); this.mObjectPanel = this.mPanelSet.getPanel(1); if (this.mInitTarget) { if (this.mInitTarget.nodeType == 9) this.setTargetDocument(this.mInitTarget); else if (th...
this.showItem( "context-fitimage", this.onStandaloneImage && _content.document.imageResizingEnabled ); if ( this.onStandaloneImage && _content.document.imageResizingEnabled ) { this.setItemAttr( "context-fitimage", "disabled", _content.document.imageIsOverflowing ? null : "true"); this.setItemAttr( "context-fitimage", ...
this.showItem( "context-fitimage", this.onStandaloneImage && content.document.imageResizingEnabled ); if ( this.onStandaloneImage && content.document.imageResizingEnabled ) { this.setItemAttr( "context-fitimage", "disabled", content.document.imageIsOverflowing ? null : "true"); this.setItemAttr( "context-fitimage", "ch...
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected && !this.onTextInput ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); var showVi...
this.showItem( "context-reloadimage", this.onImage);
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected && !this.onTextInput ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); var showVi...
this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) ); this.showItem( "c...
this.showItem( "context-viewpartialsource-selection", this.isContentSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected ); this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) ); this.sho...
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou...
this.showItem( "context-sep-properties", !( this.inDirList || this.isTextSelected || this.onTextInput ) );
this.showItem( "context-sep-properties", !( this.inDirList || this.isContentSelected || this.onTextInput ) );
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou...
this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) ); this.showItem( "context-sep-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) ); this.showItem( "context-sep-viewbgimage", !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || this.onTextInput ) );
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou...
function InitViewLayoutStyleMenu()
function InitViewLayoutStyleMenu(event)
function InitViewLayoutStyleMenu(){ var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); switch (paneConfig) { case kClassicMailLayout: id ="messagePaneClassic"; break; case kWideMailLayout: id = "messagePaneWide"; break; case kVerticalMailLayout: id = "messagePaneVertica...
switch (paneConfig) { case kClassicMailLayout: id ="messagePaneClassic"; break; case kWideMailLayout: id = "messagePaneWide"; break; case kVerticalMailLayout: id = "messagePaneVertical"; break; } var layoutStyleMenuitem = document.getElementById(id);
var layoutStyleMenuitem = event.target.childNodes[paneConfig];
function InitViewLayoutStyleMenu(){ var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); switch (paneConfig) { case kClassicMailLayout: id ="messagePaneClassic"; break; case kWideMailLayout: id = "messagePaneWide"; break; case kVerticalMailLayout: id = "messagePaneVertica...
gDialog.tree.selectItem(savedObject.treeItem); gDialog.tree.ensureElementIsVisible(savedObject.treeItem);
selectTreeItem(savedObject.treeItem);
function InsertBefore(parent, before, after){ var savedObject = currentObject; before.parentObject = parent; parent.element.insertBefore(before.element, after.element); parent.treeChildren.insertBefore(before.treeItem, after.treeItem); gDialog.tree.focus(); gDialog.tree.selectItem(savedObject.treeItem); gDialog....
kBMS.insertBookmarkInFolder(aURL, aTitle, aCharset, aFolderRes, aIndex);
kBMS.createBookmarkEx(aTitle, aURL, aCharset, aFolderRes, aIndex);
function insertBookmarkAt(aURL, aTitle, aCharset, aFolderRes, aIndex){ const kBMSContractID = "@mozilla.org/browser/bookmarks-service;1"; const kBMSIID = Components.interfaces.nsIBookmarksService; const kBMS = Components.classes[kBMSContractID].getService(kBMSIID); kBMS.insertBookmarkInFolder(aURL, aTitle, aCharset...
function insertBugzillaLink (matchText, containerTag)
function insertBugzillaLink (matchText, containerTag, eventData)
function insertBugzillaLink (matchText, containerTag){ var number = matchText.match (/(\d+)/)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", client.prefs["bugURL"].replace("%s", number)); anchor.set...
anchor.setAttribute ("href", client.prefs["bugURL"].replace("%s", number));
var bugURL; if (eventData.channel) bugURL = eventData.channel.prefs["bugURL"]; else if (eventData.network) bugURL = eventData.network.prefs["bugURL"]; else bugURL = client.prefs["bugURL"]; anchor.setAttribute ("href", bugURL.replace("%s", number));
function insertBugzillaLink (matchText, containerTag){ var number = matchText.match (/(\d+)/)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", client.prefs["bugURL"].replace("%s", number)); anchor.set...
var idOrAlias = matchText.match(/bug\s+#?(\d{3,6}|[^\s,]{1,20})/i)[1]; var anchor = document.createElementNS ("http: "html:a");
function insertBugzillaLink (matchText, containerTag, eventData){ var idOrAlias = matchText.match(/bug\s+#?(\d{3,6}|[^\s,]{1,20})/i)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); var bugURL; if (eventData.channel) bugUR...
anchor.setAttribute ("href", bugURL.replace("%s", idOrAlias)); anchor.setAttribute ("class", "chatzilla-link"); anchor.setAttribute ("target", "_content"); insertHyphenatedWord (matchText, anchor); containerTag.appendChild (anchor);
if (bugURL.length > 0) { var idOrAlias = matchText.match(/bug\s+#?(\d{3,6}|[^\s,]{1,20})/i)[1]; var anchor = document.createElementNS("http: "html:a");
function insertBugzillaLink (matchText, containerTag, eventData){ var idOrAlias = matchText.match(/bug\s+#?(\d{3,6}|[^\s,]{1,20})/i)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); var bugURL; if (eventData.channel) bugUR...
anchor.setAttribute("href", bugURL.replace("%s", idOrAlias)); anchor.setAttribute("class", "chatzilla-link"); anchor.setAttribute("target", "_content"); insertHyphenatedWord(matchText, anchor); containerTag.appendChild(anchor); } else { insertHyphenatedWord(matchText, containerTag); }
function insertBugzillaLink (matchText, containerTag, eventData){ var idOrAlias = matchText.match(/bug\s+#?(\d{3,6}|[^\s,]{1,20})/i)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); var bugURL; if (eventData.channel) bugUR...
anchor.setAttribute ("href", client.BUG_URL.replace("%s", number));
anchor.setAttribute ("href", client.prefs["bugURL"].replace("%s", number));
function insertBugzillaLink (matchText, containerTag){ var number = matchText.match (/(\d+)/)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", client.BUG_URL.replace("%s", number)); anchor.setAttr...
var encodedMatchText = fromUnicode(matchText + " "); encodedMatchText = encodedMatchText.substr(0, encodedMatchText.length - 1);
var bogusChannels = /^#(include|error|define|if|ifdef|else|elsif|endif|\d+)$/i;
function insertChannelLink (matchText, containerTag, eventData){ var encodedMatchText = fromUnicode(matchText + " "); /* bug 114923 */ encodedMatchText = encodedMatchText.substr(0, encodedMatchText.length - 1); if (!("network" in eventData) || matchText.search (/^#(include|error|define|if...
if (!("network" in eventData) || matchText.search (/^#(include|error|define|if|ifdef|else|elsif|endif|\d+)$/i) != -1)
if (!eventData.network || matchText.search(bogusChannels) != -1)
function insertChannelLink (matchText, containerTag, eventData){ var encodedMatchText = fromUnicode(matchText + " "); /* bug 114923 */ encodedMatchText = encodedMatchText.substr(0, encodedMatchText.length - 1); if (!("network" in eventData) || matchText.search (/^#(include|error|define|if...
if (client.smileyText) containerTag.appendChild (document.createTextNode (matchText));
function insertEar (matchText, containerTag){ if (client.smileyText) containerTag.appendChild (document.createTextNode (matchText)); var img = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:img"); img.setAttribute ("src", client.IMAGEDIR + "face-ea...
var wordParts = splitLongWord (longWord, console.prefs["output.wordbreak.length"]);
var wordParts = splitLongWord (longWord, MAX_WORD_LEN);
function insertHyphenatedWord (longWord, containerTag){ var wordParts = splitLongWord (longWord, console.prefs["output.wordbreak.length"]); containerTag.appendChild (htmlSpacer()); for (var i = 0; i < wordParts.length; ++i) { containerTag.appendChild (document.create...
img.setAttribute ("class", "spacer-image");
img.setAttribute ("style", "border: none; width: 0px; height: 0px;");
function insertHyphenatedWord (longWord, containerTag){ var wordParts = splitLongWord (longWord, client.MAX_WORD_DISPLAY); for (var i = 0; i < wordParts.length; ++i) { containerTag.appendChild (document.createTextNode (wordParts[i])); if (i != wordParts.length) { var img = docum...
function InsertionPoint(folderId, index) {
function InsertionPoint(folderId, index, orientation) {
function InsertionPoint(folderId, index) { this.folderId = folderId; this.index = index;}
this.orientation = orientation;
function InsertionPoint(folderId, index) { this.folderId = folderId; this.index = index;}
var anchor = document.createElement ("html:a");
var anchor = document.createElementNS ("http: "html:a");
function insertLink (matchText, containerTag){ var href; if (matchText.indexOf ("://") == -1) href = "http://" + matchText; else href = matchText; var anchor = document.createElement ("html:a"); anchor.setAttribute ("href", href); anchor.setAttribute ("target", "other_window"); ...
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();
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 (a...
anchor.setAttribute ("target", "_content");
function insertRheet (matchText, containerTag){ var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", "ftp://ftp.mozilla.org/pub/mozilla/libraries/bonus-tracks/rheet.wav"); anchor.setAttri...
if (!BookmarksUtils.all(transaction.isValid))
if (SOUND && !BookmarksUtils.all(transaction.isValid))
insertSelection: function (aAction, aSelection, aTarget) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "move") ...
if (BMSVC.isBookmarkedInternal(rSource))
if (BMSVC.isBookmarkedResource(rSource))
insertSelection: function (aAction, aSelection, aTarget) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "move") ...
if (emoticon.search(/\>[=:;][-^v]?[(|]/) != -1)
if (emoticon.search(/\>[-^v]?\)/) != -1) type = "face-alien"; else if (emoticon.search(/\>[=:;][-^v]?[(|]/) != -1)
function insertSmiley(emoticon, containerTag){ var type = "error"; if (emoticon.search(/\>[=:;][-^v]?[(|]/) != -1) type = "face-angry"; else if (emoticon.search(/[=:;][-^v]?[Ss\\\/]/) != -1) type = "face-confused"; else if (emoticon.search(/[B8][-^v]?[)\]]/) != -1) type = "face-cool"; ...
else if (emoticon.search(/[=:;]\~[-^v]?\(/) != -1)
else if (emoticon.search(/[=:;][~'][-^v]?\(/) != -1)
function insertSmiley(emoticon, containerTag){ var type = "error"; if (emoticon.search(/\>[=:;][-^v]?[(|]/) != -1) type = "face-angry"; else if (emoticon.search(/[=:;][-^v]?[Ss\\\/]/) != -1) type = "face-confused"; else if (emoticon.search(/[B8][-^v]?[)\]]/) != -1) type = "face-cool"; ...
else if (emoticon.search(/o[._]O|O[._]o/) != -1)
else if (emoticon.search(/o[._]O/) != -1)
function insertSmiley(emoticon, containerTag){ var type = "error"; if (emoticon.search(/\>[=:;][-^v]?[(|]/) != -1) type = "face-angry"; else if (emoticon.search(/[=:;][-^v]?[Ss\\\/]/) != -1) type = "face-confused"; else if (emoticon.search(/[B8][-^v]?[)\]]/) != -1) type = "face-cool"; ...
type = "face-lol";
type = "face-rofl";
function insertSmiley(emoticon, containerTag){ var type = "error"; if (emoticon.search(/\>[=:;][-^v]?[(|]/) != -1) type = "face-angry"; else if (emoticon.search(/[=:;][-^v]?[Ss\\\/]/) != -1) type = "face-confused"; else if (emoticon.search(/[B8][-^v]?[)\]]/) != -1) type = "face-cool"; ...
var img = document.createElement ("html:img");
var img = document.createElementNS ("http: "html:img");
function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[\-\^\v]?[\)\>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[\=\:\8][\-\^\v]?[\)\>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[\=\:\8][\-\^\v]?[\/\\]/) != -1) ...
* chatzilla-emote-txt { display: none; } turns off chatzilla-emote-txt:after * as well.*/
* chatzilla-emote-txt { display: none; } turns off * chatzilla-emote-txt:after as well.*/
function insertSmiley (emoticon, containerTag){ var type = "error"; if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) type = "face-wink"; else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) type = "face-smile"; else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) type = "face-screw"; ...
var src = "";
var type = "error";
function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) src = "face-screw.gif"...
src = "face-wink.gif";
type = "face-wink";
function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) src = "face-screw.gif"...
src = "face-smile.gif";
type = "face-smile";
function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) src = "face-screw.gif"...
src = "face-screw.gif";
type = "face-screw";
function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) src = "face-screw.gif"...