rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var wasChecked = element.checked; element.click(); if (isIE && isDefined(element.checked) && wasChecked != element.checked) { triggerEvent(element, 'change', true); }
*/ var wasChecked = element.checked; triggerEvent(element, 'click', false); element.click(); if (isIE && isDefined(element.checked) && wasChecked != element.checked) { triggerEvent(element, 'change', true);
function clickElement(element, loadCallback) { if (loadCallback) { var el = new SelfRemovingLoadListener(loadCallback); addLoadListener(getIframe(), el.invoke); } triggerEvent(element, 'focus', false); // If this is a javascript call ("javascript:foo()"), pull out the // function part and j...
if (target.getAttribute('href') != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target,'object')) return true;
if (target.href != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target, 'object')) return true;
function clicker(e) { number = undef; var target; if (window.event) { target = window.event.srcElement; e = window.event; } else target = e.target; if (target.getAttribute('href') != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(targ...
elt.className == 'x' ||
function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ...
var match = strField.match ( /[A-Z0-9_]*/i );
var match = strField.match ( /[\.A-Z0-9_]*/i );
function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ...
var strNamespace = getName (elt).toLowerCase ().replace ('.', '');
var re = /\./g ; var strNamespace = getName (elt).toLowerCase ().replace (re, '');
function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ...
SetCookie("org.apache.lenya.cms.info.target", documentid)
function clickOnLink(clickedId, target, windowName) { highlightObjLink(findObj(clickedId)); if (isLinked(target)) { window.open(target,windowName); documentid = target.substring(0,target.length() - 45); SetCookie("org.apache.lenya.cms.info.target", documentid) }}
SetCookie("org.apache.lenya.cms.info.target", target)
documentid = target.substring(0,target.length() - 45); SetCookie("org.apache.lenya.cms.info.target", documentid)
function clickOnLink(clickedId, target, windowName) { highlightObjLink(findObj(clickedId)); if (isLinked(target)) { window.open(target,windowName); SetCookie("org.apache.lenya.cms.info.target", target) }}
target.style.top = source.style.top; target.style.left = source.style.left;
target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px';
clone: function(source, target) { source = $(source); target = $(target); target.style.top = source.style.top; target.style.left = source.style.left; target.style.width = source.offsetWidth + 'px'; target.style.height = source.offsetHeight + 'px'; }
var parent = Position.offsetParent(target); var delta = Position.page(parent);
var delta = [0, 0]; var parent = null; if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target); delta = Position.page(parent); }
Position.clone = function(source, target) { var options = Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] || {}) // find page position of source source = $(source); var p = Position.page(source); // find coord...
target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; target.style.width = source.offsetWidth + 'px'; target.style.height = source.offsetHeight + 'px'; }
var delta = [0, 0]; var parent = null; if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target); delta = Position.page(parent); } if (parent == document.body) { delta[0] -= document.body.offsetLeft; delta[1] -= document.body.offsetTop; } if(options.setLeft) target.style.le...
clone: function(source, target) { source = $(source); target = $(target); target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; target.style.width = source.offsetWidth + 'px'; target.s...
obj.grid = null;
obj.grid = new Array();
clone: function (obj) { if (obj == null) { obj = new OpenLayers.Layer.Grid(this.name, this.url, this.params, this.options); } //get all additions f...
this.logWindow.close();
try { this.logWindow.close(); } catch (e) { }
close: function(message) { if (this.logWindow != null) { this.logWindow.close(); this.logWindow = null; } },
if (w.location.href == "chrome:
if ((w.location.href == "chrome: (w.location.href == "chrome:
function closeDownloadManager() { var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator); var en = wm.getEnumerator(""); var n = 0; var dlm = null; while (en.hasMoreElements()) { var w = en.getNext(); if (w.location....
window.location = "index.jsp";
window.location = "index.htm";
function closeTaskPane() { window.location = "index.jsp";}
if(system.node_list[i].status & NODE_WFC) nodes_wfc++; if(system.node_list[i].status & NODE_INUSE) nodes_inuse++;
switch(system.node_list[i].status) { case NODE_WFC: NODES_WFC++; break; case NODE_LOGON: case NODE_NEWUSER: case NODE_INUSE: case NODE_QUIET: NODES_INUSE++; break; }
function cntnodes(){ var i; nodes_inuse=0 nodes_wfc=0 for(i=0; i<system.nodes; i++) { if(system.node_list[i].status & NODE_WFC) nodes_wfc++; if(system.node_list[i].status & NODE_INUSE) nodes_inuse++; } writeln("Nodes in use="+nodes_inuse+" Waiting for Caller="+nodes_wfc);}
writeln("Nodes in use="+nodes_inuse+" Waiting for Caller="+nodes_wfc);
writeln("Nodes in use="+NODES_INUSE+" Waiting for Caller="+NODES_WFC);
function cntnodes(){ var i; nodes_inuse=0 nodes_wfc=0 for(i=0; i<system.nodes; i++) { if(system.node_list[i].status & NODE_WFC) nodes_wfc++; if(system.node_list[i].status & NODE_INUSE) nodes_inuse++; } writeln("Nodes in use="+nodes_inuse+" Waiting for Caller="+nodes_wfc);}
if (typeof textAreaInit != 'undefined') {
if (typeof textAreaAutoAttach != 'undefined') {
function collapseAutoAttach() { var fieldsets = document.getElementsByTagName('fieldset'); var legend, fieldset; for (var i = 0; fieldset = fieldsets[i]; i++) { if (!hasClass(fieldset, 'collapsible')) { continue; } legend = fieldset.getElementsByTagName('legend'); if (legend.length == 0) { cont...
Element.collectTextNodes(node) : ''));
Element.collectTextNodesIgnoreClass(node, className) : ''));
Element.collectTextNodesIgnoreClass = function(element, className) { return $A($(element).childNodes).collect( function(node) { return (node.nodeType==3 ? node.nodeValue : ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? Element.collectTextNodes(node) : '')); }).flatten().join('')...
var y = (event.clientY - getTargetY(event)) * 2;
var y = (event.clientY - getTargetY(event) + scroll) * 2;
function colsel_click(event, prefix, h, s, v, in_bar, in_cross){ var x = (event.clientX - getTargetX(event)) * 2; var y = (event.clientY - getTargetY(event)) * 2; // Kludge to get correct coordinates. Only needed in MSIE browsers for // unknown reasons. if (isIE4) { x -= 4; y -= 4; } if (x < 0) x = 0; ...
mark_x_img.style.left = 5 + Math.floor(h / 2);
mark_x_img.style.left = 5 + Math.floor(h / 2) + "px";
function colsel_update(prefix, h, s, v, update_field, force_color){ var color_str = force_color ? force_color : ("#" + hsv_to_rgb_string(h, s, v)); var bar_img = getObject(prefix + "colorbar"); if (bar_img) { var bar_url = "/internal-roxen-colorbar-small:" + h + "," + v + ",-1"; bar_img.src = bar_url; } ...
mark_y_img.style.top = 5 + Math.floor((255 - v) / 2);
mark_y_img.style.top = 5 + Math.floor((255 - v) / 2) + "px";
function colsel_update(prefix, h, s, v, update_field, force_color){ var color_str = force_color ? force_color : ("#" + hsv_to_rgb_string(h, s, v)); var bar_img = getObject(prefix + "colorbar"); if (bar_img) { var bar_url = "/internal-roxen-colorbar-small:" + h + "," + v + ",-1"; bar_img.src = bar_url; } ...
mark_y_small_img.style.top = 5 + Math.floor((255 - s) / 2);
mark_y_small_img.style.top = 5 + Math.floor((255 - s) / 2) + "px";
function colsel_update(prefix, h, s, v, update_field, force_color){ var color_str = force_color ? force_color : ("#" + hsv_to_rgb_string(h, s, v)); var bar_img = getObject(prefix + "colorbar"); if (bar_img) { var bar_url = "/internal-roxen-colorbar-small:" + h + "," + v + ",-1"; bar_img.src = bar_url; } ...
element.dragLastX = x;
function columnResizerDrag(event) { var element = document.getElementById("variableColumnResizer"); if (element.dragging == true) { var main = document.getElementById("rightPane"); var variableColumn = document.getElementById("variable"); var x = event.clientX + window.scrollX; var del...
variableColumn.style.width = newWidth + "px";
columnRule.style.width = newWidth + "px";
function columnResizerDrag(event) { var element = document.getElementById("variableColumnResizer"); if (element.dragging == true) { var main = document.getElementById("rightPane"); var variableColumn = document.getElementById("variable"); var x = event.clientX + window.scrollX; var del...
dividerDragStart(document.getElementById("variableColumnResizer"), columnResizerDrag, columnResizerDragEnd, event);
dividerDragStart(document.getElementById("variableColumnResizer"), columnResizerDrag, columnResizerDragEnd, event, "col-resize");
function columnResizerDragStart(event) { isResizingColumn = true; dividerDragStart(document.getElementById("variableColumnResizer"), columnResizerDrag, columnResizerDragEnd, event);}
file_crc32=format("%lx",file.crc32); if(obj.crc32!=file_crc32) {
file_crc32=file.crc32; crc32=parseInt(obj.crc32,16); if(crc32!=file_crc32) {
function combine_parts(list,attachment_dir){ var li; for(li=0; li<list.length; li++) { if(list[li].parts!=list[li].total) continue; var obj=list[li]; var sub_code; printf("File complete: %s (%u parts)\r\n", obj.name, obj.parts); file = new File(system.temp_dir + "binary.tmp"); if(!file.open("w+b")) { printf("...
printf(!"CRC-32 failure, actual: %s, expected: %s\r\n" ,file_crc32, obj.crc32);
printf("!CRC-32 failure, actual: %08lx, expected: %08lx\r\n" ,file_crc32, crc32);
function combine_parts(list,attachment_dir){ var li; for(li=0; li<list.length; li++) { if(list[li].parts!=list[li].total) continue; var obj=list[li]; var sub_code; printf("File complete: %s (%u parts)\r\n", obj.name, obj.parts); file = new File(system.temp_dir + "binary.tmp"); if(!file.open("w+b")) { printf("...
list[li]=undefined;
list.splice(li--,1); parts_list_modified=true;
function combine_parts(list,attachment_dir){ var li; for(li=0; li<list.length; li++) { if(list[li].parts!=list[li].total) continue; var obj=list[li]; var sub_code; printf("File complete: %s (%u parts)\r\n", obj.name, obj.parts); file = new File(system.temp_dir + "binary.tmp"); if(!file.open("w+b")) { printf("...
file.remove();
function combine_parts(list,attachment_dir){ var li; for(li=0; li<list.length; li++) { if(list[li].parts!=list[li].total) continue; var obj=list[li]; var sub_code; printf("File complete: %s (%u parts)\r\n", obj.name, obj.parts); file = new File(system.temp_dir + "binary.tmp"); if(!file.open("w+b")) { printf("...
file.remove();
function combine_parts(list,attachment_dir){ var li; for(li=0; li<list.length; li++) { if(list[li].parts!=list[li].total) continue; var obj=list[li]; var sub_code; printf("File complete: %s (%u parts)\r\n", obj.name, obj.parts); file = new File(system.temp_dir + "binary.tmp"); if(!file.open("w+b")) { printf("...
printf("File complete: %s (%lu parts)\r\n",list[li].name,list[li].parts); console.pause();
printf("File complete: %s (%s parts)\r\n" ,list[li].name,list[li].parts.toString());
function combine_parts(list){ for(li=0; li<list.length; li++) { if(list[li].parts!=list[li].total) continue; printf("File complete: %s (%lu parts)\r\n",list[li].name,list[li].parts); console.pause(); }}
testCase.debugContext.failed = true;
currentTest.commandComplete = function(result) { if (result.failed) { testCase.debugContext.currentCommand().result = 'failed'; } else if (result.passed) { testCase.debugContext.currentCommand().result = 'passed'; } else { testCase.debugContext.currentCommand().result = 'done'; } editor.view.rowUpdated(test...
this._checkExpectedFailure(result);
commandComplete : function(result) { if (result.failed) { this.metrics.numCommandFailures += 1; this._recordFailure(result.failureMessage); } else if (result.passed) { this.metrics.numCommandPasses += 1; this.currentRow.markPassed(); } else { ...
testCase.debugContext.failed = true;
currentTest.commandError = function() { LOG.debug("commandError"); testCase.debugContext.currentCommand().result = 'failed'; editor.view.rowUpdated(testCase.debugContext.debugIndex); }
var tempResult = {}; tempResult.passed = false; tempResult.failed = false; tempResult.failureMessage = errorMessage; this._checkExpectedFailure(tempResult); if (tempResult.passed) { this.currentRow.markDone(); return true; }
commandError : function(errorMessage) { this.metrics.numCommandErrors += 1; this._recordFailure(errorMessage); },
errorMessage = tempResult.failureMessage;
commandError : function(errorMessage) { var tempResult = {}; tempResult.passed = false; tempResult.failed = false; tempResult.failureMessage = errorMessage; this._checkExpectedFailure(tempResult); if (tempResult.passed) { this.currentRow.markDone(); re...
tempResult.failed = false;
tempResult.failed = true; tempResult.error = true;
commandError : function(errorMessage) { var tempResult = {}; tempResult.passed = false; tempResult.failed = false; tempResult.failureMessage = errorMessage; this._checkExpectedFailure(tempResult); if (tempResult.passed) { this.currentRow.markDone(); re...
this.registerAction = function(name, action) {
this.registerAction = function(name, action, wait) {
function CommandFactory() { this.actions = {}; this.asserts = {}; var self = this; this.registerAction = function(name, action) { var handler = new CommandHandler("action", true, action); this.actions[name] = handler; } this.registerAssert = function(name, assertion, haltOnFailure) { ...
this.registerAction(actionName, action);
this.registerAction(actionName, action, false); var waitActionName = actionName + "AndWait"; this.registerAction(waitActionName, action, true);
function CommandFactory() { this.actions = {}; this.asserts = {}; var self = this; this.registerAction = function(name, action) { var handler = new CommandHandler("action", true, action); this.actions[name] = handler; } this.registerAssert = function(name, assertion, haltOnFailure) { ...
document.GM_registerMenuCommand =
e.view.GM_registerMenuCommand =
function CommandManager() { var nextDocId = 1; var docIdsInUse = []; var docMenuCommands = {}; this.loadDoc = function(e) { var docId; var document = e.originalTarget; if (!document.__gmId) { document.__gmId = nextDocId++; } docMenuCommands[document.__gmId] = window.document.createElemen...
function(commandName, commandCallback) { registerMenuCommand(docId, commandName, commandCallback);
function(commandName, commandCallback, accel, access) { registerMenuCommand(docId, commandName, commandCallback, accel, access);
function CommandManager() { var nextDocId = 1; var docIdsInUse = []; var docMenuCommands = {}; this.loadDoc = function(e) { var docId; var document = e.originalTarget; if (!document.__gmId) { document.__gmId = nextDocId++; } docMenuCommands[document.__gmId] = window.document.createElemen...
function registerMenuCommand(docId, commandName, commandFunc) {
function registerMenuCommand(docId, commandName, commandFunc, accel, access) {
function CommandManager() { var nextDocId = 1; var docIdsInUse = []; var docMenuCommands = {}; this.loadDoc = function(e) { var docId; var document = e.originalTarget; if (!document.__gmId) { document.__gmId = nextDocId++; } docMenuCommands[document.__gmId] = window.document.createElemen...
if (accel && typeof(accel.key) == "string") { var accelText = ""; if (accel.accel) { accelText += "<accel> + "; accel.accel = true; } else { accel.accel = false; } if (accel.ctrl) { accelText += "<ctrl> + "; accel.ctrl = true; } else { accel.ctrl = false; } if (accel.meta) { accelText += "<meta> + "; accel.meta = true...
function CommandManager() { var nextDocId = 1; var docIdsInUse = []; var docMenuCommands = {}; this.loadDoc = function(e) { var docId; var document = e.originalTarget; if (!document.__gmId) { document.__gmId = nextDocId++; } docMenuCommands[document.__gmId] = window.document.createElemen...
focusOnElement(inputTableRows[currentCommandRow].cells[0]);
scrollIntoView(inputTableRows[currentCommandRow].cells[0]);
function commandStarted() { inputTableRows[currentCommandRow].bgColor = workingColor; focusOnElement(inputTableRows[currentCommandRow].cells[0]); printMetrics();}
$('commentform').elements[2].value = ''; $('commentform').elements[2].focus();
$('commentform').elements[3].value = ''; $('commentform').elements[3].focus();
function commentAdded(request) { new Effect.BlindDown($('commentList').lastChild); $('commentform').elements[2].value = ''; $('commentform').elements[2].focus();}
var left = Convert (ctrl_value, DataType);
var left = Convert (ctrl_value, DataType, validator);
function CompareValidatorEvaluateIsValid (validator){ var ControlToCompare = validator.getAttribute ("controltocompare"); var ValueToCompare = validator.getAttribute ("valuetocompare"); var Operator = validator.getAttribute ("operator").toLowerCase(); var ControlToValidate = validator.getAttribute ("controltovalidate")...
var right = Convert (compare, DataType);
var right = compare != null ? Convert (compare, DataType, validator) : null;
function CompareValidatorEvaluateIsValid (validator){ var ControlToCompare = validator.getAttribute ("controltocompare"); var ValueToCompare = validator.getAttribute ("valuetocompare"); var Operator = validator.getAttribute ("operator").toLowerCase(); var ControlToValidate = validator.getAttribute ("controltovalidate")...
$(fieldset.contentWrapper).css('height', 'auto'); Drupal.collapseScrollIntoView(fieldset); fieldset.animating = false; },
$(this).css('height', 'auto'); Drupal.collapseScrollIntoView(this.parentNode); this.parentNode.animating = false; },
complete: function() { $(fieldset.contentWrapper).css('height', 'auto'); Drupal.collapseScrollIntoView(fieldset); fieldset.animating = false; },
crc_list.push(format("%lx %s",crc32,fname));
crc_list.push(format("%08lx %s",crc32,fname));
function complete_file(file, fname, attachment_dir){ printf("Completing attachment: %s\r\n",fname); md5=file.md5_hex; crc32=file.crc32; file.close(); for(mi=0;mi<md5_list.length;mi++) if(md5_list[mi].substr(0,32)==md5) break; if(mi<md5_list.length) { printf("Duplicate MD5 digest found: %s\r\n",md5_list[mi]); retur...
'path-info-check', 'zts', 'ipv6', 'memory-limit'
'path-info-check', 'zts', 'ipv6', 'memory-limit', 'zend-multibyte'
function conf_process_args(){ var i, j; var configure_help_mode = false; var analyzed = false; var nice = "cscript /nologo configure.js "; var disable_all = false; args = WScript.Arguments; for (i = 0; i < args.length; i++) { arg = args(i); nice += ' "' + arg + '"'; if (arg == "--help") { configure_help_mode = tr...
if (nice.length + arg.length < 2045) { nice += ' "' + arg + '"'; }
nice += ' "' + arg + '"';
function conf_process_args(){ var i, j; var configure_help_mode = false; var analyzed = false; var nice = "cscript /nologo configure.js "; var disable_all = false; args = WScript.Arguments; for (i = 0; i < args.length; i++) { arg = args(i); if (nice.length + arg.length < 2045) { // The max string length for CONFIGUR...
if (!base) { base = "gm_script"; }
function Config() { this.onload = null; this.scripts = null; this.find = function(namespace, name) { namespace = namespace.toLowerCase(); name = name.toLowerCase(); for (var i = 0, script = null; (script = this.scripts[i]); i++) { if (script.namespace.toLowerCase() == namespace && script.name.toLowerCa...
doc.load(getScriptChrome("config.xml"));
try { doc.load(getScriptChrome("config.xml")); } catch (exc) { doc.load(getScriptChrome("default-config.xml")); }
function Config() { this.onload = null; this.scripts = null; this.find = function(namespace, name) { namespace = namespace.toLowerCase(); name = name.toLowerCase(); for (var i = 0, script = null; (script = this.scripts[i]); i++) { if (script.namespace.toLowerCase() == namespace && script.name.toLowerCase() == name...
function Config() {
function Config(configFile) {
function Config() { this.onload = null; this.scripts = null; this.find = function(namespace, name) { namespace = namespace.toLowerCase(); name = name.toLowerCase(); for (var i = 0, script = null; (script = this.scripts[i]); i++) { if (script.namespace.toLowerCase() == namespace && script.name.toLowerCa...
try { doc.load(getScriptChrome("config.xml")); } catch (exc) { doc.load(getScriptChrome("default-config.xml")); }
doc.load(configURI.spec);
function Config() { this.onload = null; this.scripts = null; this.find = function(namespace, name) { namespace = namespace.toLowerCase(); name = name.toLowerCase(); for (var i = 0, script = null; (script = this.scripts[i]); i++) { if (script.namespace.toLowerCase() == namespace && script.name.toLowerCa...
var configStream = getWriteStream(getScriptFile("config.xml"));
var configStream = getWriteStream(this.configFile);
function Config() { this.onload = null; this.scripts = null; this.find = function(namespace, name) { namespace = namespace.toLowerCase(); name = name.toLowerCase(); for (var i = 0, script = null; (script = this.scripts[i]); i++) { if (script.namespace.toLowerCase() == namespace && script.name.toLowerCa...
document.location = "/cgi-bin/setConfigSwapFile?swap="+swapfileconfig.swap.value+"&swapfile="+swapfileconfig.swapfile.value;
var activate = "off"; if (swapfileconfig.swap.checked) activate = "on"; document.location = "/cgi-bin/setConfigSwapFile?swap="+activate+"&swapfile="+swapfileconfig.swapfile.value; setTimeout("reload()", 500);
function configSwapFile(){ document.location = "/cgi-bin/setConfigSwapFile?swap="+swapfileconfig.swap.value+"&swapfile="+swapfileconfig.swapfile.value;}
if (defval == "yes") {
if (defval == "yes" || defval == "yes,shared") {
function ConfigureArg(type, optname, helptext, defval){ var opptype = type == "enable" ? "disable" : "without"; if (defval == "yes") { this.arg = "--" + opptype + "-" + optname; this.imparg = "--" + type + "-" + optname; } else { this.arg = "--" + type + "-" + optname; this.imparg = "--" + opptype + "-" + optname; ...
this.relayBotToRC("browserbot.recordedConfirmations");
self.relayBotToRC("browserbot.recordedConfirmations");
windowToModify.confirm = function(message) { browserBot.recordedConfirmations.push(message); var result = browserBot.nextConfirmResult; browserBot.nextConfirmResult = true; this.relayBotToRC("browserbot.recordedConfirmations"); return result; };
relayBotToRC("browserbot.recordedConfirmations");
windowToModify.confirm = function(message) { browserBot.recordedConfirmations.push(message); var result = browserBot.nextConfirmResult; browserBot.nextConfirmResult = true; relayBotToRC("browserbot.recordedConfirmations"); return result; };
var elm = tinyMCE.isMSIE ? event.srcElement : e.target;
var elm = tinyMCE.isIE ? event.srcElement : e.target;
confirmAdd : function(e, settings) { var elm = tinyMCE.isMSIE ? event.srcElement : e.target; var elementId = elm.name ? elm.name : elm.id; tinyMCE.settings = settings; if (tinyMCE.settings['convert_on_click'] || (!elm.getAttribute('mce_noask') && confirm(tinyMCELang['lang_edit_confirm']))) tinyMCE.addMCEControl(...
Unregistered[new_id].sentps = true;
Unregistered[new_id].sendps = false;
function connect_to_server(this_cline,the_port) { var connect_sock; var new_id; if (!the_port && this_cline.port) the_port = this_cline.port; else if (!the_port) the_port = default_port; // try a safe default. connect_sock = new Socket(); connect_sock.bind(0,server.interface_ip_address); connect_sock.connect(this_cli...
Unregistered[new_id].outgoing = true;
function connect_to_server(this_cline,the_port) { var connect_sock; var new_id; if (!the_port && this_cline.port) the_port = this_cline.port; else if (!the_port) the_port = default_port; // try a safe default. connect_sock = new Socket(); connect_sock.bind(0,server.interface_ip_address); connect_sock.connect(this_cli...
server_wallops("Connected! Sending info..");
oper_notice("Routing","Connected! Sending info...");
function connect_to_server(this_cline,the_port) { if (!the_port && this_cline.port) the_port = this_cline.port; else if (!the_port) the_port = "6667"; // try a safe default. connect_sock = new Socket(); connect_sock.connect(this_cline.host,the_port,ob_sock_timeout); if (connect_sock.is_connected) { server_wallops("C...
log("Connecting to server: " + this_cline.host);
var connect_sock; var new_id;
function connect_to_server(this_cline,the_port) { log("Connecting to server: " + this_cline.host); if (!the_port && this_cline.port) the_port = this_cline.port; else if (!the_port) the_port = default_port; // try a safe default. connect_sock = new Socket(); connect_sock.connect(this_cline.host,the_port,ob_sock_timeou...
oper_notice("Routing","Connected! Sending info...");
umode_notice(USERMODE_ROUTING,"Routing", "Connected! Sending info...");
function connect_to_server(this_cline,the_port) { var connect_sock; var new_id; if (!the_port && this_cline.port) the_port = this_cline.port; else if (!the_port) the_port = default_port; // try a safe default. connect_sock = new Socket(); connect_sock.connect(this_cline.host,the_port,ob_sock_timeout); if (connect_soc...
function constrainedWidthFromElement(width, element) { if (width < element.clientWidth * 0.25) width = element.clientWidth * 0.25; else if (width > element.clientWidth * 0.75) width = element.clientWidth * 0.75;
function constrainedWidthFromElement(width, element, constrainLeft, constrainRight) { if (constrainLeft === undefined) constrainLeft = 0.25; if (constrainRight === undefined) constrainRight = 0.75; if (width < element.clientWidth * constrainLeft) width = element.clientWidth * constrainLeft; else if (width > element.cl...
function constrainedWidthFromElement(width, element) { if (width < element.clientWidth * 0.25) width = element.clientWidth * 0.25; else if (width > element.clientWidth * 0.75) width = element.clientWidth * 0.75; return width;}
GM_log("> GM_BrowserUI.contentLoad");
GM_log("> GM_BrowserUI.contentLoad: " + e.target.defaultView.location.href);
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad"); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, exiting") return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on document, existing") return; } if (this.getHandle...
GM_log("* Greasemonkey disabled, exiting")
GM_log("* Greasemonkey disabled, skipping contentLoad");
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad"); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, exiting") return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on document, existing") return; } if (this.getHandle...
if (this.getHandler(win)) { GM_log("* document has already been greased, exiting") return;
GM_log("win == win.top: " + (win == win.top)); if (win == win.top) { this.currentMenuCommander = new GM_MenuCommander(win); this.menuCommanders.push(this.currentMenuCommander); this.currentMenuCommander.attach();
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad"); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, exiting") return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on document, existing") return; } if (this.getHandle...
this.currentHandler = new GM_DocHandler(win, window); this.currentHandler.menuCommander.attach(); this.handlers.push(this.currentHandler);
new GM_DocHandler(win, window, this.currentMenuCommander);
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad"); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, exiting") return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on document, existing") return; } if (this.getHandle...
GM_log("win == win.top: " + (win == win.top));
var commander;
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad: " + e.target.defaultView.location.href); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, skipping contentLoad"); return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on d...
this.currentMenuCommander = new GM_MenuCommander(win); this.menuCommanders.push(this.currentMenuCommander);
commander = new GM_MenuCommander(win); this.menuCommanders.push(commander); } else { commander = this.getCommander(win.top); } if (win == this.tabBrowser.selectedBrowser.contentWindow) { this.currentMenuCommander = commander;
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad: " + e.target.defaultView.location.href); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, skipping contentLoad"); return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on d...
new GM_DocHandler(win, window, this.currentMenuCommander);
new GM_DocHandler(win, window, commander);
GM_BrowserUI.contentLoad = function(e) { GM_log("> GM_BrowserUI.contentLoad: " + e.target.defaultView.location.href); if (!this.getEnabled()) { GM_log("* Greasemonkey disabled, skipping contentLoad"); return; } var win = e.target.defaultView; var doc = win.document; if(!doc.body) { GM_log("* no body on d...
var handler = null;
var commander = null;
GM_BrowserUI.contentUnload = function(e) { GM_log("> GM_BrowserUI.contentUnload"); // remove the handler for this document var handler = null; //looping over handlers rather than using getHandler because we need //the index into handlers.splice. for (var i = 0; i < this.handlers.length; i++) { if (this.han...
for (var i = 0; i < this.handlers.length; i++) { if (this.handlers[i].contentWindow == e.currentTarget) { handler = this.handlers[i]; handler.menuCommander.detach();
for (var i = 0; commander = this.menuCommanders[i]; i++) { if (commander.contentWindow == e.currentTarget) { GM_log("* Found corresponding commander. Is currentMenuCommander: " + (commander == this.currentMenuCommander)); if (commander == this.currentMenuCommander) { this.currentMenuCommander.detach(); this.currentMe...
GM_BrowserUI.contentUnload = function(e) { GM_log("> GM_BrowserUI.contentUnload"); // remove the handler for this document var handler = null; //looping over handlers rather than using getHandler because we need //the index into handlers.splice. for (var i = 0; i < this.handlers.length; i++) { if (this.han...
if (handler == this.currentHandler) { this.currentHandler = null; }
this.menuCommanders.splice(i, 1);
GM_BrowserUI.contentUnload = function(e) { GM_log("> GM_BrowserUI.contentUnload"); // remove the handler for this document var handler = null; //looping over handlers rather than using getHandler because we need //the index into handlers.splice. for (var i = 0; i < this.handlers.length; i++) { if (this.han...
this.handlers.splice(i, 1); GM_log("* Found and removed corresponding handler")
GM_log("* Found and removed corresponding commander")
GM_BrowserUI.contentUnload = function(e) { GM_log("> GM_BrowserUI.contentUnload"); // remove the handler for this document var handler = null; //looping over handlers rather than using getHandler because we need //the index into handlers.splice. for (var i = 0; i < this.handlers.length; i++) { if (this.han...
var culprit = document.popupNode;
GM_BrowserUI.contextMenuShowing = function() { GM_log('> contextMenuShowing'); var culprit = document.popupNode; var contextItem = ge("install-userscript"); var contextSep = ge("install-userscript-sep"); contextItem.hidden = contextSep.hidden = !(culprit.tagName.toLowerCase() == "a" && culprit.href.match(/...
!(culprit.tagName.toLowerCase() == "a" && culprit.href.match(/\.user\.js(\?|$)/i) != null);
!(culprit && culprit.href.match(/\.user\.js(\?|$)/i) != null); );
GM_BrowserUI.contextMenuShowing = function() { GM_log('> contextMenuShowing'); var culprit = document.popupNode; var contextItem = ge("install-userscript"); var contextSep = ge("install-userscript-sep"); contextItem.hidden = contextSep.hidden = !(culprit.tagName.toLowerCase() == "a" && culprit.href.match(/...
contextItem.hidden = contextSep.hidden = !(culprit && culprit.href.match(/\.user\.js(\?|$)/i) != null); );
contextItem.hidden = contextSep.hidden = !(culprit && culprit.href.match(/\.user\.js(\?|$)/i) != null);
GM_BrowserUI.contextMenuShowing = function() { GM_log('> contextMenuShowing'); var contextItem = ge("install-userscript"); var contextSep = ge("install-userscript-sep"); var culprit = document.popupNode; while (culprit && culprit.tagName.toLowerCase() != "a") { culprit = culprit.parentNode; } contextItem.hid...
while (culprit && culprit.tagName.toLowerCase() != "a") {
while (culprit && culprit.tagName && culprit.tagName.toLowerCase() != "a") {
GM_BrowserUI.contextMenuShowing = function() { GM_log('> contextMenuShowing'); var contextItem = ge("install-userscript"); var contextSep = ge("install-userscript-sep"); var culprit = document.popupNode; while (culprit && culprit.tagName.toLowerCase() != "a") { culprit = culprit.parentNode; } contextItem.hid...
contextItem.hidden = contextSep.hidden = !(culprit && culprit.href.match(/\.user\.js(\?|$)/i) != null);
contextItem.hidden = contextSep.hidden = !(culprit && culprit.href && culprit.href.match(/\.user\.js(\?|$)/i) != null);
GM_BrowserUI.contextMenuShowing = function() { GM_log('> contextMenuShowing'); var contextItem = ge("install-userscript"); var contextSep = ge("install-userscript-sep"); var culprit = document.popupNode; while (culprit && culprit.tagName.toLowerCase() != "a") { culprit = culprit.parentNode; } contextItem.hid...
case "r": p.x += el.offsetWidth - w; break; case "l": break;
case "l": p.x += el.offsetWidth - w; break; case "r": break;
Calendar.continuation_for_the_fucking_khtml_browser = function() { var w = self.element.offsetWidth; var h = self.element.offsetHeight; self.element.style.display = "none"; var valign = opts.substr(0, 1); var halign = "l"; if (opts.length > 1) { halign = opts.substr(1, 1); } // vertical alignment switch (va...
if (interval >= 0) {
if (interval < 0) { this.waitingForNext(); } else {
this.continueCommandExecutionWithDelay = function() { // Get the interval to use for this command execution, using the pauseInterval is // specified. Reset the pause interval, since it's a one-off thing. var interval = this.pauseInterval || this.getCommandInterval(); this.pauseInterval =...
this.runInterval = this.speedController.value;
this.reset();
continueCurrentTest: function () { this.runInterval = this.speedController.value; currentTest.resume(); this._switchContinueButtonToPause(); },
this._switchContinueButtonToPause();
continueCurrentTest: function () { this.runInterval = this.speedController.value; currentTest.resume(); this._switchContinueButtonToPause(); },
document.getElementById('continueTest').disabled = true;
function continueCurrentTest() { testLoop.finishCommandExecution();}
LOG.debug("testLoop.continueTest() - acquire the next command");
this.continueTest = function() { if (! this.aborted) { this.currentCommand = this.nextCommand(); } if (! this.requiresCallBack) { this.beginNextTest(); } // otherwise, just finish and let the callback invoke beginNextTest() };
if (this.waitForCondition == null || this.waitForCondition()) {
if (this.waitForCondition == null) { LOG.debug("null condition; let's continueTest()"); LOG.debug("Command complete"); this.commandComplete(this.result); this.continueTest(); } else if (this.waitForCondition()) {
continueTestWhenConditionIsTrue: function () { /** * Busy wait for waitForCondition() to become true, and then carry * on with test. Fail the current test if there's a timeout or an * exception. */ //LOG.debug("currentTest.continueTestWhenConditionIsTrue()"); se...
var lastResult = {}; lastResult.failed = true; lastResult.failureMessage = extractExceptionMessage(e); this.commandComplete(lastResult); this.testComplete();
this.result = {}; this.result.failed = true; this.result.failureMessage = extractExceptionMessage(e); this.commandComplete(this.result); this.continueTest();
continueTestWhenConditionIsTrue: function () { /** * Busy wait for waitForCondition() to become true, and then carry * on with test. Fail the current test if there's a timeout or an * exception. */ //LOG.debug("currentTest.continueTestWhenConditionIsTrue()"); se...
window.setTimeout(this.continueTestWhenConditionIsTrue.bind(this), 100);
window.setTimeout(fnBind(this.continueTestWhenConditionIsTrue, this), 100);
continueTestWhenConditionIsTrue: function () { /** * Busy wait for waitForCondition() to become true, and then carry * on with test. Fail the current test if there's a timeout or an * exception. */ LOG.debug("currentTest.continueTestWhenConditionIsTrue()"); sele...
this.waitForConditionTimeout = null;
this.continueTestWhenConditionIsTrue = function () { try { if (this.waitForCondition == null || this.waitForCondition()) { this.waitForCondition = null; this.waitForConditionStart = null; this.waitForConditionTimeout = null; this.continueTest(); ...
LOG.debug("waitForCondition was false; keep waiting!");
this.continueTestWhenConditionIsTrue = function () { try { if (this.waitForCondition == null || this.waitForCondition()) { this.waitForCondition = null; this.waitForConditionStart = null; this.waitForConditionTimeout = null; this.continueTest(); ...
var tldRegExp = new RegExp("^(\\^(?:[^/]*)(?: var tldRes = res.match(tldRegExp); if (tldRes) { var gTLD = [ "arpa", "com", "edu", "int", "mil", "net", "org", "aero", "biz", "coop", "info", "museum", "name", "pro" ]; var ccTLD = [ "ac", "ad", "ae", "af", "ag", "ai", "al", "am", "an", "ao", "aq", "ar", "ar", "as", ...
function convert2RegExp( pattern ) { s = new String(pattern); res = new String("^"); for (var i = 0 ; i < s.length ; i++) { switch(s[i]) { case '*' : res += ".*"; break; case '.' : case '?' : case '^' : case '$' : case '+' : case '{' : case '[' :...
function Convert (s, ty)
function Convert (s, ty, validator)
function Convert (s, ty){ var cvt = this ["To" + ty]; if (typeof (cvt) == 'function') return cvt (s); else return null;}
return cvt (s);
return cvt (s, validator);
function Convert (s, ty){ var cvt = this ["To" + ty]; if (typeof (cvt) == 'function') return cvt (s); else return null;}
result[1] = result[1].replace(/%20/gi, " "); result[3] = result[3].replace(/%20/gi, " ");
WikiEditor.prototype.convertAttachmentInternal = function(regexp, result, content) { var str; if (result[1] == result[3]) str = "{attach:" + result[1] + "}"; else if ((result[1] == "undefined") || (this.trimString(result[1]) == "")) str = "{attach:" + result[3] + "}"; else str = "{attach:" + result[3] + "|...
var tag = "font";
var tag = "font", style = "", class = "", id = "", name = "";
WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font"; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, a...
var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, atts[i].length); if (att == "size") att = "font-size"; if (att == "face") att = "font-family"; if (i==0) { if (att == "type") { tag = value; str = "<" + tag + " "; } else { str = "<" + tag + " style=\"" + att +...
var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); var value = this.trimString(atts[i].substring(atts[i].indexOf("=") + 1, atts[i].length)); if (att == "class") class = value; else if (att == "id") id = value; else if (att == "name") name = value; else if (att == "type") tag = value; else style += a...
WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font"; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, a...