rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (e.channelName[0].search(/[#&+!]/) != 0) e.channelName = "#" + e.channelName;
if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName;
function cmdJoin(e){ if (!("charset" in e)) { e.charset = null; } else if (e.charset && !checkCharset(e.charset)) { display (getMsg(MSG_ERR_INVALID_CHARSET, e.charset), MT_ERROR); return null; } if (e.channelName && (e.channelName.search(",") != -1)) { // We can join ...
{ var hostmask; if (e.user.host.match(/^[\d\.]*$/) != null) hostmask = e.user.host.replace(/[^.]+$/, "*"); else hostmask = e.user.host.replace(/^[^.]+/, "*"); e.server.sendData("MODE " + e.channel.encodedName + " +b *!" + e.user.name + "@" + hostmask + "\n"); }
e.sourceObject.dispatch("ban", { nickname: e.user.encodedName });
function cmdKick(e){ if (!e.user) e.user = e.channel.getUser(e.nickname); if (!e.user) { display(getMsg(MSG_ERR_UNKNOWN_USER, e.nickname), MT_ERROR); return; } if (e.command.name == "kick-ban") { var hostmask; if (e.user.host.match(/^[\d\.]*$/) != null) ho...
if (e.channelName[0].search(/[#&+!]/) != 0) e.channelName = "#" + e.channelName;
if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName;
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (e.channelName[0].search(/[#&+!]/) != 0) e.channelName = "#" + e.channelName; e.channelName = fromUnicode(e.channelName, e.network); var key = e...
display("Huh?", MT_ERROR);
display(getMsg(MSG_ERR_UNKNOWN_CHANNEL, e.channelName), MT_ERROR);
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } // FIXME: Smart param handling... // if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) { // No valid prefix character. Check they really...
if (e.channel && e.channel.active)
if (e.channel.active)
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } // FIXME: Smart param handling... // if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) { // No valid prefix character. Check they really...
if ("disablePlugin" in plugin.scope)
if ((plugin.API > 0) || ("disablePlugin" in plugin.scope))
function cmdListPlugins(e){ function listPlugin(plugin, i) { var enabled; if ("disablePlugin" in plugin.scope) enabled = plugin.enabled; else enabled = MSG_ALWAYS; display(getMsg(MSG_FMT_PLUGIN1, [i, plugin.url])); display(getMsg(MSG_FMT_PLUGIN2, ...
for (var i = 0; i < client.plugins.length; ++i) listPlugin(client.plugins[i], i);
if (client.plugins.length > 0) { for (var i = 0; i < client.plugins.length; ++i) listPlugin(client.plugins[i], i); } else { display(MSG_NO_PLUGINS); }
function cmdListPlugins(e){ function listPlugin(plugin, i) { var enabled; if ("disablePlugin" in plugin.scope) enabled = plugin.enabled; else enabled = MSG_ALWAYS; display(getMsg(MSG_FMT_PLUGIN1, [i, plugin.url])); display(getMsg(MSG_FMT_PLUGIN2, ...
description: "", status: MSG_LOADING, enabled: true};
description: "", status: MSG_LOADING, enabled: false, PluginAPI: 1, cwd: e.url.match(/^(.*?)[^\/]+$/)[1]};
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
e.scope.plugin.scope = e.scope;
plugin = e.scope.plugin; plugin.scope = e.scope;
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
if ("initPlugin" in e.scope) rv = rvStr = e.scope.initPlugin(e.scope);
var index;
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
if (!("plugin" in e.scope))
if ((index = removeOldPlugin(plugin.id)) == null) return null; if ("init" in plugin)
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_ERROR, enabled: true };
if (!("enable" in plugin) || !("disable" in plugin) || !("id" in plugin) || !(plugin.id.match(/^[A-Za-z-_]+$/))) { display (getMsg(MSG_ERR_PLUGINAPI, e.url)); display (getMsg(MSG_ERR_SCRIPTLOAD, e.url)); return null; } plugin.API = 1; plugin.prefary = [["enabled", true, ""]]; rv = rvStr = plugin.init(e.scope); var br...
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
e.scope.plugin.status = "loaded";
plugin.API = 0; if ("initPlugin" in e.scope) rv = rvStr = e.scope.initPlugin(e.scope); plugin.enabled = true;
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
e.scope.plugin.scope = e.scope;
plugin.status = "loaded";
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
if (!("__id" in e.scope)) e.scope.__id = null; if (!("__description" in e.scope)) e.scope.__description = null;
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
var i = getPluginIndexByURL(e.url); if (i != -1) client.plugins[i] = e.scope.plugin;
if (index != -1) client.plugins[index] = plugin;
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
client.plugins.push(e.scope.plugin);
index = client.plugins.push(plugin) - 1;
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
if ((plugin.API > 0) && plugin.prefs["enabled"]) dispatch("enable-plugin " + index);
function cmdLoad (e){ var ex; if (!e.scope) e.scope = new Object(); if (!("plugin" in e.scope)) { e.scope.plugin = { url: e.url, id: MSG_UNKNOWN, version: -1, description: "", status: MSG_LOADING, enabled: true}; } e.scope.plugin.scope = e.scope; try { ...
e.action = filterOutput (e.action, "ACTION", "ME!"); display (e.action, "ACTION", "ME!", e.sourceObject); e.sourceObject.act (e.action);
var msg = filterOutput(e.action, "ACTION", "ME!"); e.sourceObject.display(msg, "ACTION", "ME!", e.sourceObject); e.sourceObject.act(msg);
function cmdMe(e){ if (!("act" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "me"), MT_ERROR); return; } e.action = filterOutput (e.action, "ACTION", "ME!"); display (e.action, "ACTION", "ME!", e.sourceObject); e.sourceObject.act (e.action);}
client.munger.entries[".mailto"].enabled = false;
function cmdMe(e){ if (!("act" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "me"), MT_ERROR); return; } var msg = filterOutput(e.action, "ACTION", e.sourceObject); e.sourceObject.display(msg, "ACTION", "ME!", e.sourceObject); e.sourceObject.act(msg);}
var chan = fromUnicode(e.target, e.server);
var chan;
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server.channels))
if ((!e.target || /^[\+\-].+/.test(e.target)) && !(chan && e.server.getChannel(chan)))
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
chan = e.channel.canonicalName; if (e.param && e.modestr)
if (e.channel)
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
e.paramList.unshift(e.modestr);
chan = e.channel.canonicalName; if (e.param && e.modestr) { e.paramList.unshift(e.modestr); } else if (e.modestr) { e.paramList = [e.modestr]; e.param = e.modestr; } e.modestr = e.target;
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
else if (e.modestr)
else
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
e.paramList = [e.modestr]; e.param = e.modestr;
display(getMsg(MSG_ERR_REQUIRED_PARAM, "target"), MT_ERROR); return;
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
e.modestr = e.target;
} else { chan = fromUnicode(e.target, e.server);
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
if (!(/^([+-][a-z]+)+$/i).test(e.modestr))
if (!e.modestr) { e.modestr = ""; if (!e.channel && arrayContains(e.server.channelTypes, chan[0])) e.channel = new CIRCChannel(e.server, null, chan); if (e.channel) e.channel.pendingModeReply = true; } else if (!(/^([+-][a-z]+)+$/i).test(e.modestr))
function cmdMode(e){ // get our canonical channel name, so we know what channel we talk about var chan = fromUnicode(e.target, e.server); // Make sure the user can leave the channel name out from a channel view. if (e.channel && /^[\+\-].+/.test(e.target) && !(e.server.toLowerCase(chan) in e.server....
var usr = e.server.addUser(e.nickname);
var target = e.server.addTarget(e.nickname);
function cmdMsg(e){ var usr = e.server.addUser(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", "ME!"); usr.display(e.message, "PRIVMSG", "ME!", usr); usr.say(e.message, e.sourceObject);}
usr.display(e.message, "PRIVMSG", "ME!", usr); usr.say(e.message, e.sourceObject);
e.sourceObject.display(msg, "PRIVMSG", "ME!", target); target.say(msg, target);
function cmdMsg(e){ var usr = e.server.addUser(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", "ME!"); usr.display(e.message, "PRIVMSG", "ME!", usr); usr.say(e.message, e.sourceObject);}
client.munger.entries[".mailto"].enabled = false;
function cmdMsg(e){ var target = e.server.addTarget(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", target); e.sourceObject.display(msg, "PRIVMSG", "ME!", target); target.say(msg);}
network.displayHere(getMsg(MSG_NETWORK_OPENED, network.name));
network.displayHere(getMsg(MSG_NETWORK_OPENED, network.unicodeName));
function cmdNetwork(e){ if (!(e.networkName in client.networks)) { display (getMsg(MSG_ERR_UNKNOWN_NETWORK, e.networkName), MT_ERROR); return; } var network = client.networks[e.networkName]; if (!("messages" in network)) network.displayHere(getMsg(MSG_NETWORK_OPENED, network.name)); ...
this.mPropsBoxObject.beginUpdateBatch();
cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP...
this.mPropsBoxObject.endUpdateBatch();
this.mPropsBoxObject.invalidate();
cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP...
this.mPropsBoxObject.invalidate();
this.mPropsBoxObject.endUpdateBatch();
cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP...
e.nickname = prompt(MSG_NICK_PROMPT);
var curNick; if (e.network) curNick = e.network.prefs["nickname"]; else curNick = client.prefs["nickname"]; e.nickname = prompt(MSG_NICK_PROMPT, curNick);
function cmdNick(e){ if (!e.nickname) { e.nickname = prompt(MSG_NICK_PROMPT); if (e.nickname == null) return; } if (e.server) e.server.changeNick(e.nickname); if (e.network) e.network.prefs["nickname"] = e.nickname; else client.prefs["nickname"] = e.nickna...
if (!e.nickname) { e.nickname = prompt(MSG_NICK_PROMPT); if (e.nickname == null) return; }
function cmdNick(e){ if (e.server) e.server.changeNick(e.nickname); if (e.network) e.network.prefs["nickname"] = e.nickname; else client.prefs["nickname"] = e.nickname;}
client.munger.entries[".mailto"].enabled = false;
function cmdNotice(e){ var target = e.server.addTarget(e.nickname); var msg = filterOutput(e.message, "NOTICE", target); e.sourceObject.display(msg, "NOTICE", "ME!", target); target.notice(msg);}
console.sourceView.prettyPrint = !console.sourceView.prettyPrint; if (console.sourceView.details) cmdFindScript({scriptRec: console.sourceView.details});
setPrettyPrintState(!console.sourceView.prettyPrint);
function cmdPPrint (e){ console.sourceView.prettyPrint = !console.sourceView.prettyPrint; if (console.sourceView.details) cmdFindScript({scriptRec: console.sourceView.details}); return true;}
var ary = pm.listPrefs(e.prefName); if (ary.length == 0) { display (getMsg(MSG_ERR_UNKNOWN_PREF, [e.prefName]), MT_ERROR); return false; }
function cmdPref (e){ var msg; var pm; if (e.command.name == "network-pref") { pm = e.network.prefManager; msg = MSG_FMT_NETPREF; } else if (e.command.name == "channel-pref") { pm = e.channel.prefManager; msg = MSG_FMT_CHANPREF; } else if (e.command.name == "us...
if (!(e.prefName in console.prefs)) { display (getMsg(MSN_ERR_INVALID_PARAM, ["prefName", e.prefName]), MT_ERROR); return false; }
function cmdPref (e){ if (e.prefValue) { if (e.prefName[0] == "-") { console.prefs.prefBranch.clearUserPref(e.prefName.substr(1)); return true; } if (!(e.prefName in console.prefs)) { display (getMsg(MSN_ERR_INVALID_PARAM, ["prefName", e....
display (getMsg(MSN_FMT_PREFVALUE, [e.prefName, e.prefValue]));
feedback (e, getMsg(MSN_FMT_PREFVALUE, [e.prefName, e.prefValue]));
function cmdPref (e){ if (e.prefValue) { if (e.prefName[0] == "-") { console.prefs.prefBranch.clearUserPref(e.prefName.substr(1)); return true; } if (!(e.prefName in console.prefs)) { display (getMsg(MSN_ERR_INVALID_PARAM, ["prefName", e....
display (getMsg(MSN_FMT_PREFVALUE, [ary[i], console.prefs[ary[i]]]));
{ feedback (e, getMsg(MSN_FMT_PREFVALUE, [ary[i], console.prefs[ary[i]]])); }
function cmdPref (e){ if (e.prefValue) { if (e.prefName[0] == "-") { console.prefs.prefBranch.clearUserPref(e.prefName.substr(1)); return true; } if (!(e.prefName in console.prefs)) { display (getMsg(MSN_ERR_INVALID_PARAM, ["prefName", e....
if (e.prefName[0] == "-") { console.prefs.prefBranch.clearUserPref(e.prefName.substr(1)); return true; }
function cmdPref (e){ if (e.prefName) { if (!(e.prefName in console.prefs)) { display (getMsg(MSN_ERR_INVALID_PARAM, ["prefName", e.prefName]), MT_ERROR); return false; } if (e.prefValue) console.prefs[e.prefName] = e.prefVal...
return;
return false;
function cmdProps (e){ var v; var debuggerScope = (e.command.name == "propsd"); if (debuggerScope) { v = console.jsds.wrapValue(evalInDebuggerScope (e.expression)); } else { if (!("currentEvalObject" in console)) { display (MSG_ERR_NO_EVAL_OBJECT, MT_ERROR); ...
window.close(); return true;
goQuitApplication();
function cmdQuit (){ window.close(); return true;}
e.channel.dispatch("part", { reason: e.reason, noDelete: true });
e.channel.dispatch("part", { reason: e.reason, deleteWhenDone: false });
function cmdRejoin(e){ if (e.channel.joined) { if (!e.reason) e.reason = ""; e.channel.dispatch("part", { reason: e.reason, noDelete: true }); } e.channel.join(e.channel.mode.key);}
client.munger.entries[".mailto"].enabled = false;
function cmdSay(e){ if (!("say" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "say"), MT_ERROR); return; } var msg = filterOutput(e.message, "PRIVMSG", e.sourceObject); e.sourceObject.display(msg, "PRIVMSG", "ME!", e.sourceObject); e.sourceObject.say(msg);}
keys(server.channelTypes).join(MSG_COMMASP)));
server.channelTypes.join(MSG_COMMASP)));
function cmdSupports(e){ var server = e.server; var data = server.supports; if ("channelTypes" in server) display(getMsg(MSG_SUPPORTS_CHANTYPES, keys(server.channelTypes).join(MSG_COMMASP))); if ("channelModes" in server) { display(getMsg(MSG_SUPPORTS_CHANMODESA, ...
if (console.prefs["dbgContexts"])
if (eval(console.prefs["dbgContexts"]))
function cmdSyncDebug(){ if (console.prefs["dbgContexts"]) console.dbgContexts = true; else delete console.dbgContexts; if (console.prefs["dbgDispatch"]) console.dbgDispatch = true; else delete console.dbgDispatch; if (console.prefs["dbgRealize"]) console.dbgRealize = t...
if (console.prefs["dbgDispatch"])
if (eval(console.prefs["dbgDispatch"]))
function cmdSyncDebug(){ if (console.prefs["dbgContexts"]) console.dbgContexts = true; else delete console.dbgContexts; if (console.prefs["dbgDispatch"]) console.dbgDispatch = true; else delete console.dbgDispatch; if (console.prefs["dbgRealize"]) console.dbgRealize = t...
if (console.prefs["dbgRealize"])
if (eval(console.prefs["dbgRealize"]))
function cmdSyncDebug(){ if (console.prefs["dbgContexts"]) console.dbgContexts = true; else delete console.dbgContexts; if (console.prefs["dbgDispatch"]) console.dbgDispatch = true; else delete console.dbgDispatch; if (console.prefs["dbgRealize"]) console.dbgRealize = t...
var sampleChannel = {TYPE: "IRCChannel", name: "#mojo"};
var sampleChannel = {TYPE: "IRCChannel", name: "#mojo", displayName: "#mojo"};
function cmdTestDisplay(e){ display(MSG_TEST_HELLO, MT_HELLO); display(MSG_TEST_INFO, MT_INFO); display(MSG_TEST_ERROR, MT_ERROR); display(MSG_TEST_HELP, MT_HELP); display(MSG_TEST_USAGE, MT_USAGE); display(MSG_TEST_STATUS, MT_STATUS); if (e.server && e.server.me) { var me = e.server.me; ...
return;
return false;
function cmdThisExpr(e){ if (e.expression == "debugger") { rv = console.jsdConsole; } else if (console.currentEvalObject instanceof jsdIStackFrame) { rv = evalInTargetScope (e.expression); } else { rv = console.doEval.apply(console.currentEvalObject, ...
case EMODE_IGNORE:
case TMODE_IGNORE:
function cmdTMode (e){ if (e.mode != null) { e.mode = e.mode.toLowerCase(); if (e.mode == "cycle") { switch (console.throwMode) { case TMODE_IGNORE: e.mode = "trace"; break; case TMODE_TRACE: ...
case EMODE_TRACE:
case TMODE_TRACE:
function cmdTMode (e){ if (e.mode != null) { e.mode = e.mode.toLowerCase(); if (e.mode == "cycle") { switch (console.throwMode) { case TMODE_IGNORE: e.mode = "trace"; break; case TMODE_TRACE: ...
case EMODE_BREAK:
case TMODE_BREAK:
function cmdTMode (e){ if (e.mode != null) { e.mode = e.mode.toLowerCase(); if (e.mode == "cycle") { switch (console.throwMode) { case TMODE_IGNORE: e.mode = "trace"; break; case TMODE_TRACE: ...
{ var currentState = console.prefs["services.source.sourceColoring"]; if (currentState == "true") e.toggle = false; else e.toggle = true; if (e.toggle) console.prefs["services.source.sourceColoring"] = "true"; else console.prefs["services.source.sourceColoring"] = "false"; } }
e.toggle = !console.prefs["services.source.colorize"]; console.prefs["services.source.colorize"] = e.toggle; }
function cmdToggleColoring (e){ if (e.toggle != null) { if (e.toggle == "toggle") { var currentState = console.prefs["services.source.sourceColoring"]; if (currentState == "true") e.toggle = false; else e.toggle = true; ...
feedback (e, "pref services.source.sourceColoring");
if ("isInteractive" in e && e.isInteractive) dispatch("pref services.source.colorize", { isInteractive: true });
function cmdToggleColoring (e){ if (e.toggle != null) { if (e.toggle == "toggle") { var currentState = console.prefs["services.source.sourceColoring"]; if (currentState == "true") e.toggle = false; else e.toggle = true; ...
if ((e.thing == "userlist") && (sourceObject.TYPE == "IRCChannel")) { var rv = getSelectedNicknames(document.getElementById("user-list")); sourceObject.userlistSelection = rv; }
function cmdToggleUI(e){ var ids = new Array(); switch (e.thing) { case "tabstrip": ids = ["view-tabs"]; break; case "userlist": ids = ["main-splitter", "user-list-box"]; break; case "header": client.currentObject.prefs["displayHeader"...
return;
return null;
function cmdWatchExpr (e){ if (!e.expression) { var watches = console.views.watches.childData; var len = watches.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i) { display (getMsg(MSN_FMT_WATCH_ITEM, [i, watches[i].displayName, ...
e.server.who(e.pattern);
e.server.who(e.rest);
function cmdWho(e){ e.network.pendingWhoReply = true; e.server.LIGHTWEIGHT_WHO = false; e.server.who(e.pattern);}
key.setAttribute ("modifiers", ary[1]);
if (ary[1]) key.setAttribute ("modifiers", ary[1]);
function cmgr_instkey (parentElem, command){ if (!command.keystr) return; var ary = command.keystr.match (/(.*\s)?([\S]+)$/); if (!ASSERT(ary, "couldn't parse key string ``" + command.keystr + "'' for command ``" + command.name + "''")) { return; } var key = document.c...
if ("eval" in this.commands && typeof this.commands.eval == "object") commandNames.push ("eval");
if (("eval" in this.commands) && (typeof this.commands.eval == "object") && !arrayContains(commandNames, "eval")) { commandNames.push("eval"); }
function cmgr_list (partialName, flags){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ function compare (a, b) { a = a.labelstr.toLowerCase(); b = b.labelstr.toLowerCase(); if (a == b) return 0; ...
return cmdNames.sort();
cmdNames.sort(); return cmdNames;
function cmgr_listnames (partialName, flags){ var cmds = this.list(partialName, flags); var cmdNames = new Array(); for (var c in cmds) cmdNames.push (cmds[c].name); return cmdNames.sort();}
function CMungerEntry (name, regex, className, tagName)
function CMungerEntry (name, regex, className, enable, tagName)
function CMungerEntry (name, regex, className, tagName){ this.name = name; this.tagName = (tagName) ? tagName : "html:span"; if (regex instanceof RegExp) this.regex = regex; else this.lambdaMatch = regex; if (typeof className == "function") this.lambdaReplace = className; ...
this.description = getMsg("rule_" + name); this.enabled = (typeof enable == "undefined" ? true : enable);
function CMungerEntry (name, regex, className, tagName){ this.name = name; this.tagName = (tagName) ? tagName : "html:span"; if (regex instanceof RegExp) this.regex = regex; else this.lambdaMatch = regex; if (typeof className == "function") this.lambdaReplace = className; ...
var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); var pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3...
gDuration = gEndDate.getTime() - gStartDate.getTime();
function commandAllDay(){ //user enddate == ical enddate - 1 (for allday events) if( getFieldValue( "all-day-event-checkbox", "checked" ) ) { gEndDate.setDate( gEndDate.getDate() + 1 ); } else { gEndDate.setDate( gEndDate.getDate() - 1 ); } updateStartEndItemEnabled(); updateOKButton();}
this.currentDispatchDepth = 0; this.maxDispatchDepth = 10; this.dispatchUnwinding = false;
function CommandManager (defaultBundle){ this.commands = new Object(); this.defaultBundle = defaultBundle;}
goUpdateCommand('cmd_newlist');
function CommandUpdate_AddressBook(){ goUpdateCommand('cmd_delete'); goUpdateCommand('button_delete');}
document.getElementById("messagepanebox").setAttribute("focusring","false"); document.getElementById("threadTree").setAttribute("focusring","false") document.getElementById("folderTree").setAttribute("focusring","false") if ( MessagePaneHasFocus() ) { document.getElementById("messagepanebox").setAttribute("focusring...
function CommandUpdate_Mail(){ //var messagePane = top.document.getElementById('messagePane'); //var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); document.getElementById("messagepanebox").setAttribute("focusring","false"); document.getElementById("threadTree").setAttribute("focusring","false") do...
document.getElementById("threadTree").setAttribute("focusring","false") document.getElementById("folderTree").setAttribute("focusring","false")
function CommandUpdate_Mail(){ //var messagePane = top.document.getElementById('messagePane'); //var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { //if ( !drawFocusBorder ) // messagePane.setAttribute('draw-focus-border', 'true'); document.getElementById("messagepan...
document.getElementById("messagepanebox").setAttribute("focusring","false");
function CommandUpdate_Mail(){ //var messagePane = top.document.getElementById('messagePane'); //var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { //if ( !drawFocusBorder ) // messagePane.setAttribute('draw-focus-border', 'true'); document.getElementById("messagepan...
document.getElementById("folderTree").setAttribute("focusring","false")
function CommandUpdate_Mail(){ //var messagePane = top.document.getElementById('messagePane'); //var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { //if ( !drawFocusBorder ) // messagePane.setAttribute('draw-focus-border', 'true'); document.getElementById("messagepan...
document.getElementById("threadTree").setAttribute("focusring","false")
if(WhichPaneHasFocus()=="folderTree")
function CommandUpdate_Mail(){ //var messagePane = top.document.getElementById('messagePane'); //var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { //if ( !drawFocusBorder ) // messagePane.setAttribute('draw-focus-border', 'true'); document.getElementById("messagepan...
goUpdateCommand('button_reply'); goUpdateCommand('button_replyall'); goUpdateCommand('button_forward');
function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message...
goUpdateCommand("cmd_sendNow"); goUpdateCommand("cmd_sendLater");
goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_attachPage"); goUpdateCommand("cmd_close");
function CommandUpdate_MsgCompose(){ goUpdateCommand("cmd_sendNow"); goUpdateCommand("cmd_sendLater"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsDraft"); goUpdateCommand("cmd_saveAsTemplate"); goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_selectAddress");}
goUpdateCommand("cmd_attachFile");
goUpdateCommand("cmd_sendNow"); goUpdateCommand("cmd_sendLater"); goUpdateCommand("cmd_quit"); goUpdateCommand("cmd_pasteQuote"); goUpdateCommand("cmd_find"); goUpdateCommand("cmd_findNext"); goUpdateCommand("cmd_account"); goUpdateCommand("cmd_preferences"); goUpdateCommand("cmd_showComposeToolbar"); goUpdateComma...
function CommandUpdate_MsgCompose(){ goUpdateCommand("cmd_sendNow"); goUpdateCommand("cmd_sendLater"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsDraft"); goUpdateCommand("cmd_saveAsTemplate"); goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_selectAddress");}
goUpdateCommand("cmd_outputFormat");
function CommandUpdate_MsgCompose(){ goUpdateCommand("cmd_sendNow"); goUpdateCommand("cmd_sendLater"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsDraft"); goUpdateCommand("cmd_saveAsTemplate"); goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_selectAddress");}
goUpdateCommand("cmd_saveAsFile");
function CommandUpdate_MsgCompose(){// dump("\nCommandUpdate_MsgCompose\n"); try { //File Menu goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_attachPage"); goUpdateCommand("cmd_close"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsDraft"); goUpdateCommand("cmd_saveAsTemplate"); go...
try { goUpdateCommand("cmd_close"); goUpdateCommand("cmd_print"); goUpdateCommand("cmd_quit"); goUpdateCommand("cmd_pasteQuote"); goUpdateCommand("cmd_find"); goUpdateCommand("cmd_findNext"); goUpdateCommand("cmd_preferences"); if (msgCompose && msgCompose.composeHTML) { goUpdateCommand("cmd_insert...
window.setTimeout("updateComposeItems()", 0);
function CommandUpdate_MsgCompose(){// dump("\nCommandUpdate_MsgCompose\n"); try { //File Menu// goUpdateCommand("cmd_attachFile");// goUpdateCommand("cmd_attachPage"); goUpdateCommand("cmd_close");// goUpdateCommand("cmd_saveDefault");// goUpdateCommand("cmd_saveAsFile");// goUpdateCommand("cmd_saveAsDraft"...
var dayRange = dayRangeNode.selectedItem.getAttribute("data");
var dayRange = dayRangeNode.selectedItem.getAttribute("value");
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (field) { // Get the new val...
var startHourRange = startHourRangeNode.selectedItem.getAttribute("data");
var startHourRange = startHourRangeNode.selectedItem.getAttribute("value");
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (field) { // Get the new val...
var endHourRange = endHourRangeNode.selectedItem.getAttribute("data");
var endHourRange = endHourRangeNode.selectedItem.getAttribute("value");
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (field) { // Get the new val...
var oldvalue = gBookmarks.GetTarget(RDF.GetResource(gBookmarkID), RDF.GetResource(gProperties[i]), true);
var oldvalue = BMDS.GetTarget(RDF.GetResource(gBookmarkID), RDF.GetResource(gProperties[i]), true);
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (field) { // Get the new val...
oldvalue = gBookmarks.GetTarget(RDF.GetResource(gBookmarkID), RDF.GetResource(scheduleRes), true);
oldvalue = BMDS.GetTarget(RDF.GetResource(gBookmarkID), RDF.GetResource(scheduleRes), true);
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (field) { // Get the new val...
var remote = gBookmarks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
var remote = BMDS.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (field) { // Get the new val...
window.arguments[1].ok = true;
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i=0; i<gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (! field) continue // Get the...
var firstButton = document.documentElement.getButton("accept");
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
setLabelForNode(firstButton, string);
setLabelForNode(document.documentElement.getButton("accept"), string);
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
firstButton.focus();
{ var dButton; var defaultButton = gCommonDialogParam.GetInt(5); switch (defaultButton) { case 3: dButton = document.documentElement.getButton("extra2"); break; case 2: dButton = document.documentElement.getButton("extra1"); break; case 1: dButton = document.documentElement.getButton("cancel"); break; default: case 0: ...
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
focus(); GetAttention();
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = gCommonDialogParam.GetString(0); var mes...
element.setAttribute("style","display: none;" );
element.setAttribute("style","visibility: collapse;" );
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
addEventListener("blur", commonDialogBlur, false); addEventListener("focus", commonDialogFocus, false);
function commonDialogOnLoad(){ // set the document title document.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; br...
var element = document.getElementById("dialog.password2"); element.value = param.GetString( 7 ); var editMsg = param.GetString( 5 ); if (editMsg) { SetElementText("password2.text", editMsg ); } var editfield1Password = param.GetInt( 4 ); if ( editfield1Password == 1 ) { var element = document.getElementById("dialog.p...
var element = document.getElementById("dialog.loginname"); element.focus();
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("dialog.password1"); element.value = param.GetString( 6 ); var element = document.getElementById("password1.text"); element.setAttribute("style", "display:none;" );
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("password2EditField"); element.setAttribute("style","display: none;" ); var element = document.getElementById("dialog.password1");
var element = document.getElementById("password.text"); element.setAttribute("style", "display:none;" ); var element = document.getElementById("dialog.password");
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("dialog.loginname"); element.value = param.GetString( 6 ); var editMsg1 = param.GetString( 4 ); if (editMsg1) { SetElementText("login.text", editMsg1 ); }
var element = document.getElementById("passwordEditfield"); element.setAttribute("style","display: none;" );
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("password1EditField"); element.setAttribute("style","display: none;" ); var element = document.getElementById("password2EditField"); element.setAttribute("style","display: none;" ); var element = document.getElementById("dialog.loginname"); element.focus();
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...