rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
dactyl.assert(!names.some(function (name) name in this._exMap, this), | memoize(this._exMap, name, function () Command.apply(null, args)); | dactyl.assert(!names.some(function (name) name in this._exMap, this), |
return request('http: try{ tags = JSON.parse(res.responseText)['tags']; } catch(e) { throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); | }).addCallback(function(res){ var doc = createHTML(res.responseText); if(!doc.getElementById('title')) throw new Error(getMessage('error.notLoggedin')); function getTags(part){ return $X('id("save-' + part + '-tags") | return request('http://b.hatena.ne.jp/'+user+'/tags.json').addCallback(function(res){ try{ tags = JSON.parse(res.responseText)['tags']; } catch(e) { throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return self.tags = items(tags).map(function(... |
return self.tags = items(tags).map(function(pair){ return { name : pair[0], frequency : pair[1].count } }); }); | return { editPage : editPage = 'http: form : { item : doc.getElementById('title').value, description : doc.getElementById('notes').value, tags : doc.getElementById('tags').value.split(' '), private : doc.getElementById('share').checked }, duplicated : !!doc.getElementById('delete'), recommended : getT... | return request('http://b.hatena.ne.jp/'+user+'/tags.json').addCallback(function(res){ try{ tags = JSON.parse(res.responseText)['tags']; } catch(e) { throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return self.tags = items(tags).map(function(... |
return this._exMap[name] || !full && this._exCommands.filter(function (cmd) cmd.hasName(name))[0] || null; | defaults = array(this.options).map(function (opt) [opt.names[0], opt.default]).toObject(); | return this._exMap[name] || !full && this._exCommands.filter(function (cmd) cmd.hasName(name))[0] || null; |
context.fork(dir, 0, this, function (context) { dir = dir.replace("/+$", "") + "/"; completion.file(context, true, dir + context.filter); context.title[0] = dir; context.keys.text = function (f) this.path.substr(dir.length); }); | context.filters.push(function (item) item.isdir || !wig.getKey(this.name)); | context.fork(dir, 0, this, function (context) { dir = dir.replace("/+$", "") + "/"; completion.file(context, true, dir + context.filter); context.title[0] = dir; context.keys.text = function (f) this.path.substr(dir.length); ... |
}, function(res){ func({ success: false, content: res }); }); | getSelected().addCallback(function(tab){ var ps = req.content; if(req.show){ TBRL.Popup.open(tab, ps); } else { var posters = Models.getDefaults(ps); if(!posters.length){ alert(chrome.i18n.getMessage('error_noPoster', ps.type.capitalize())); } else { TBRL.Service.post(ps, posters); } } func({}); }).addErrback(function(... | }, function(res){ func({ success: false, content: res }); }); |
context.filters.push(function ({ item }) item != window); | function (args) { dactyl.assert(args.length <= 2 && !args.some(function (i) !/^\d+$/.test(i)), "E488: Trailing characters"); let [winIndex, tabIndex] = args.map(parseInt); let win = dactyl.windows[winIndex - 1]; dactyl.assert(win, "Window " + winIndex + " does not exist"); dactyl.assert(win != window, "Can't reattach... | context.filters.push(function ({ item }) item != window); |
function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); | function () { commandline.resetCompletions(); return editor.expandAbbreviation(modes.COMMAND_LINE); }, | function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); |
mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ca:Ba,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ca:Ba)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"c... | "events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListene... | mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ca:Ba,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ca:Ba)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"c... |
[v for ([k, v] in Iterator(groups))].every(function (g) !g.validator || g.validator(val)) | function () { dactyl.help(); }); | [v for ([k, v] in Iterator(groups))].every(function (g) !g.validator || g.validator(val)) |
[v for ([k, v] in Iterator(groups))].every(function (g) !g.validator || g.validator(val)) | function () { liberator.help(); }); | [v for ([k, v] in Iterator(groups))].every(function (g) !g.validator || g.validator(val)) |
return this.getCurrentUser(user).addCallback(function(user){ return succeed().addCallback(function(){ return request('http: }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ if(tag){ memo.push({ name : tag, frequency : tags[tag] }); | return request('http: try{ tags = JSON.parse(res.responseText)['tags']; } catch(e) { throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return self.tags = items(tags).map(function(pair){ return { name : pair[0], frequency : pair[1].count | return this.getCurrentUser(user).addCallback(function(user){ // εζγ§γ¨γ©γΌγθ΅·γγͺγγγγ«γγ return succeed().addCallback(function(){ return request('http://feeds.delicious.com/v2/json/tags/' + user); }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(t... |
return memo; }, []); | }); | return this.getCurrentUser(user).addCallback(function(user){ // εζγ§γ¨γ©γΌγθ΅·γγͺγγγγ«γγ return succeed().addCallback(function(){ return request('http://feeds.delicious.com/v2/json/tags/' + user); }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(t... |
}); | return this.getCurrentUser(user).addCallback(function(user){ // εζγ§γ¨γ©γΌγθ΅·γγͺγγγγ«γγ return succeed().addCallback(function(){ return request('http://feeds.delicious.com/v2/json/tags/' + user); }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(t... | |
for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); | if (args.length) args = args[0]; else args = args.count || 0; | function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, |
}, | let m = /^(\d+)(:|$)/.exec(args || '1'); if (m) window.undoCloseTab(Number(m[1]) - 1); else if (args) { for (let [i, item] in Iterator(tabs.closedTabs)) if (item.state.entries[item.state.index - 1].url == args) { window.undoCloseTab(i); return; } dactyl.echoerr("Exxx: No matching closed tab"); } }, { | function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, |
this.each(function(value, index) { memo = iterator.call(context, memo, value, index); }); | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(... | this.each(function(value, index) { memo = iterator.call(context, memo, value, index); }); |
JavaScript.setCompleter(this.get, [function () ([c.name, c.description] for (c in commands))]); | [function () ([c.name, c.description] for (c in commands))]); | JavaScript.setCompleter(this.get, [function () ([c.name, c.description] for (c in commands))]); |
function (count) { editor.executeCommand("cmd_endLine", 1); modes.push(modes.INSERT); events.feedkeys("<Return>"); }); | function () { editor.executeCommand("cmd_deleteToEndOfLine"); }); | function (count) { editor.executeCommand("cmd_endLine", 1); modes.push(modes.INSERT); events.feedkeys("<Return>"); }); |
].filter(function (f) f[0] != "" && f[0].length < 200); | ].filter(function (f) f[0] !== "" && String(f[0]).length < 200); | ].filter(function (f) f[0] != "" && f[0].length < 200); |
function (resp) { if (resp == "yes") for (let pref in values(options.allPrefs())) options.resetPref(pref); }, | context.fork("default", 0, this, function (context) { context.title = ["Extra Completions"]; context.completions = [ [option.value, "Current value"], [option.defaultValue, "Default value"] ].filter(function (f) f[0] !== "" && String(f[0]).length < 200); context.quote = ["", util.identity, ""]; }); | function (resp) { if (resp == "yes") for (let pref in values(options.allPrefs())) options.resetPref(pref); }, |
[function () ([c.name, c.description] for (c in commands))]); | function (args) { let name = args[0]; if (commands.get(name)) commands.removeUserCommand(name); else dactyl.echoerr("E184: No such user-defined command: " + name); }, { | [function () ([c.name, c.description] for (c in commands))]); |
'"': ['"', Commands.quoteArg['"'], '"'], "'": ["'", Commands.quoteArg["'"], "'"], | '"': ['"', quote("", Commands.quoteArg['"'].list), '"'], "'": ["'", quote("", Commands.quoteArg["'"].list), "'"], | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", }; function quote(q, list, map) { map = map || Commands.quoteMap; let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; ... |
console.log('begin'); | test("callbacks should work properly with acceleration", function(){ stop(1000); var stopped = true; expect(3); var propertyNames = "top left scale".w(); console.log('begin'); SC.RunLoop.begin(); // We shouldn't have to use invokeLater, but it's the only way to get this to work! view.invokeLat... | |
console.log('end'); | test("callbacks should work properly with acceleration", function(){ stop(1000); var stopped = true; expect(3); var propertyNames = "top left scale".w(); console.log('begin'); SC.RunLoop.begin(); // We shouldn't have to use invokeLater, but it's the only way to get this to work! view.invokeLat... | |
data.systems.each(function(system) { var name = system.name; keyMap.set(name, ($A(system.keys))); ($("configuration_description")).insert(new Element("option", {"value": name}).update(name)); }); | ($$(".action_button")).each(function(el) { el.disabled = false; }); | data.systems.each(function(system) { var name = system.name; keyMap.set(name, ($A(system.keys))); ($("configuration_description")).insert(new Element("option", {"value": name}).update(name)); }); |
function (args) { dactyl.open(buffer.focusedFrame.document.documentURI); }, | function (file) { editor.editFileExternally({ file: file.path, line: callback }, function () { file.remove(false) }); return true; } | function (args) { dactyl.open(buffer.focusedFrame.document.documentURI); }, |
function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, | function () { dactyl.quit(true); }, | function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, |
function () { dactyl.quit(false); }); | tabs.tabBinding.enabled = Array.some(opts, function (k) k in this.opts, this); | function () { dactyl.quit(false); }); |
$$(".ddu_button").each( function(e) { e.disabled = false; }); | el.observe("click", function(ev) { window.location.href = URL + "/DDUFirmwareManager?crate=" + ev.element().readAttribute("crate"); }); | $$(".ddu_button").each( function(e) { e.disabled = false; }); |
Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { | ["commandbar", "statusbar"].forEach(function (nodeSet) { Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { | Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; }, this); |
}, this); | Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; }, this); | |
return self.tags = items(tags).map(function(pair){ return { name : pair[0], frequency : pair[1].count | suggestions : this.getCurrentUser().addCallback(function(user){ return request('http: queryString : { noui : 1, url : url | return self.tags = items(tags).map(function(pair){ return { name : pair[0], frequency : pair[1].count } }); |
}).addCallback(function(res){ | return self.tags = items(tags).map(function(pair){ return { name : pair[0], frequency : pair[1].count } }); | |
function () { dactyl.quit(false); }); | function () { dactyl.help(); }); | function () { dactyl.quit(false); }); |
var timer = setTimeout(function(){ fixture.endTime = new Date(); ret.errback(new Error("test timeout in "+fixture.name.toString())); }, fixture["timeout"]||1000); | var timer = setTimeout(function(){ timeoutFunction(); }, fixture["timeout"]||1000); | var timer = setTimeout(function(){ fixture.endTime = new Date(); ret.errback(new Error("test timeout in "+fixture.name.toString())); }, fixture["timeout"]||1000); |
function (args) { buffer.showPageInfo(true, args[0]); }, | options.withContext(function () { if (arg) { options.setPref("print.print_to_file", "true"); options.setPref("print.print_to_filename", io.File(arg.substr(1)).path); liberator.echomsg("Printing to file: " + arg.substr(1)); } else liberator.echomsg("Sending to printer..."); options.setPref("print.always_print_silent", ... | function (args) { buffer.showPageInfo(true, args[0]); }, |
let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; res.list = list; return res; | function quote(str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; quote.list = list; return quote; | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", }; function quote(q, list, map) { map = map || Commands.quoteMap; let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; ... |
AtD.counter--; if (AtD.counter == 0) AtD.restoreTextArea( id ); | jPrompt(AtD.getLang('dialog_replace_selection', "Replace selection with")+':', element.text(), AtD.getLang('dialog_replace', 'Replace'), function(text) { if (text != null && oldtext != text) { jQuery(element).html(text); AtD.core.removeParent(element); } }); | |
jPrompt(AtD.getLang('dialog_replace_selection', "Replace selection with")+':', element.text(), AtD.getLang('dialog_replace', 'Replace'), function(text) { if (text != null && oldtext != text) { jQuery(element).html(text); AtD.core.removeParent(element); AtD.counter--; if (AtD.counter == 0) AtD.restoreTextArea( id ); } }... | setTimeout(function() { var content; if (navigator.appName == 'Microsoft Internet Explorer') content = div.html().replace(/<BR.*?class.*?atd_remove_me.*?>/gi, "\n"); else content = div.html(); var temp = jQuery('<div></div>'); temp.html(content); AtD.core.removeWords(temp); hidden.val(temp.html().replace(/\<\;/g, ... | jPrompt(AtD.getLang('dialog_replace_selection', "Replace selection with")+':', element.text(), AtD.getLang('dialog_replace', 'Replace'), function(text) { if (text != null && oldtext != text) { jQuery(element).html(text); AtD.core.removeParent(element); AtD.counter--; if (AtD.counter == 0... |
this._activeTimeout = this.setTimeout(function () { this._processHints(true); }, timeout); | this.setTimeout(function () { if (modes.extended & modes.HINTS) modes.reset(); this._hintMode.action(elem, elem.href || "", this._extendedhintCount); }, timeout); | this._activeTimeout = this.setTimeout(function () { this._processHints(true); }, timeout); |
connect(tags, 'onblur', this, function(ev){ setTimeout(function(){ | setTimeout(function(){ | connect(tags, 'onblur', this, function(ev){ // FIXME γΏγ€γγ³γ°γγ γγ§ε€±ζγγε―θ½ζ§γγ setTimeout(function(){ self.popup.hidePopup(); }, 200); }); |
}); | connect(tags, 'onblur', this, function(ev){ // FIXME γΏγ€γγ³γ°γγ γγ§ε€±ζγγε―θ½ζ§γγ setTimeout(function(){ self.popup.hidePopup(); }, 200); }); | |
editor.executeCommand("cmd_beginLine", 1); | editor.executeCommand("cmd_endLine", 1); | function (count) { editor.executeCommand("cmd_beginLine", 1); modes.set(modes.INSERT, modes.TEXTAREA); events.feedkeys("<Return>"); editor.executeCommand("cmd_linePrevious", 1); }); |
editor.executeCommand("cmd_linePrevious", 1); | function (count) { editor.executeCommand("cmd_beginLine", 1); modes.set(modes.INSERT, modes.TEXTAREA); events.feedkeys("<Return>"); editor.executeCommand("cmd_linePrevious", 1); }); | |
ex.__defineGetter__(name, function () this._run(name)); | defaults = array(this.options).map(function (opt) [opt.names[0], opt.default]).toObject(); | ex.__defineGetter__(name, function () this._run(name)); |
return this._exCommands.filter(function (cmd) cmd.user && cmd.hasName(name))[0] || null; | io.withSavedValues(["readHeredoc", "sourcing"], function () { sourcing = sourcing || { file: "[Command Line]", line: 1 }; this.sourcing = update({}, sourcing); args = update({ setFrom: this.sourcing.file }, args || {}); if (tokens) string = commands.replaceTokens(string, tokens); let lines = string.split(/\r\n|[\r\n... | return this._exCommands.filter(function (cmd) cmd.user && cmd.hasName(name))[0] || null; |
completion.addUrlCompleter("f", "Local files", function (context, full) { let match = util.regexp(<![CDATA[ ^ ( ((chrome|resource):\/\/) [^\/]* ) (\/[^\/]*)? $ ]]>).exec(context.filter); if (match) { if (!match[4]) { context.key = match[2]; context.advance(match[2].length); context.generate = function () util.chromePac... | context.fork(dir, 0, this, function (context) { dir = dir.replace("/+$", "") + "/"; completion.file(context, true, dir + context.filter); context.title[0] = dir; context.keys.text = function (f) this.path.substr(dir.length); }); | completion.addUrlCompleter("f", "Local files", function (context, full) { let match = util.regexp(<![CDATA[ ^ ( ((chrome|resource):\/\/) [^\/]* ) (\/[^\/]*)? $ ]]>).exec(context... |
chrome.extension.onRequest.addListener(function(req, sender, func){ var handler = onRequestsHandlers[req.request]; handler && handler.apply(this, arguments); }); | }).addErrback(function(e){ }); | chrome.extension.onRequest.addListener(function(req, sender, func){ var handler = onRequestsHandlers[req.request]; handler && handler.apply(this, arguments);}); |
this.timeout(function () { firstElem.removeAttributeNS(NS.uri, "highlight"); }, timeout); | if (this._validHints.some(function (e) e.getAttribute("href") != firstHref)) | this.timeout(function () { firstElem.removeAttributeNS(NS.uri, "highlight"); }, timeout); |
function (args) { if (args.length) args = args[0]; else args = args.count || 0; let m = /^(\d+)(:|$)/.exec(args || '1'); if (m) window.undoCloseTab(Number(m[1]) - 1); else if (args) { for (let [i, item] in Iterator(tabs.closedTabs)) if (item.state.entries[item.state.index - 1].url == args) { window.undoCloseTab(i); re... | dactyl.assert(args.length <= 2 && !args.some(function (i) !/^\d+$/.test(i)), | function (args) { if (args.length) args = args[0]; else args = args.count || 0; let m = /^(\d+)(:|$)/.exec(args || '1'); if (m) window.undoCloseTab(Number(m[1]... |
}).addErrback(function(e){ }); | return request(url, opt).addCallbacks(function(res){ func({ success: true, content: res }); }, function(res){ | }).addErrback(function(e){ }); |
function () { dactyl.assert(this._lastMowOutput); this._echoMultiline(this._lastMowOutput, commandline.HL_NORMAL); }); | function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); | function () { dactyl.assert(this._lastMowOutput); this._echoMultiline(this._lastMowOutput, commandline.HL_NORMAL); }); |
function () { dactyl.help(); }); | function () { dactyl.quit(false); }); | function () { dactyl.help(); }); |
function () { liberator.help(); }); | function () { liberator.quit(false); }); | function () { liberator.help(); }); |
return succeed().addCallback(function(){ return request('http: }).addCallback(function(res){ | return self.tags = items(tags).map(function(pair){ return { name : pair[0], frequency : pair[1].count } }); | return succeed().addCallback(function(){ return request('http://feeds.delicious.com/v2/json/tags/' + user); }).addCallback(function(res){ |
function () { dactyl.quit(true); }, | function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, | function () { dactyl.quit(true); }, |
this.registerCallback("complete", modes.PROMPT, function (context) { if (self._input.complete) context.fork("input", 0, commandline, self._input.complete); }); | ["commandbar", "statusbar"].forEach(function (nodeSet) { Array.forEach(this.widgets[nodeSet].commandline.children, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; }, this); }, this); | this.registerCallback("complete", modes.PROMPT, function (context) { if (self._input.complete) context.fork("input", 0, commandline, self._input.complete); }); |
return this.map(function(value) { return value[method].apply(value, args); }); | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(... | return this.map(function(value) { return value[method].apply(value, args); }); |
editor.executeCommand("cmd_beginLine", 1); | editor.executeCommand("cmd_endLine", 1); | function (count) { editor.executeCommand("cmd_beginLine", 1); modes.push(modes.INSERT); events.feedkeys("<Return>"); editor.executeCommand("cmd_linePrevious", 1); }); |
editor.executeCommand("cmd_linePrevious", 1); | function (count) { editor.executeCommand("cmd_beginLine", 1); modes.push(modes.INSERT); events.feedkeys("<Return>"); editor.executeCommand("cmd_linePrevious", 1); }); | |
let arg = args[0]; dactyl.assert(!arg || arg[0] == ">" && !util.isOS("WINNT"), "E488: Trailing characters"); prefs.withContext(function () { if (arg) { prefs.set("print.print_to_file", "true"); prefs.set("print.print_to_filename", io.File(arg.substr(1)).path); dactyl.echomsg("Printing to file: " + arg.substr(1)); } ... | dactyl.open(buffer.focusedFrame.document.documentURI); | function (args) { let arg = args[0]; // FIXME: arg handling is a bit of a mess, check for filename dactyl.assert(!arg || arg[0] == ">" && !util.isOS("WINNT"), "E488: Trailing characters"); prefs.withContext(function () { ... |
].filter(function ([k]) k != null && k.length < 200); | ].filter(function (f) f[0] !== "" && String(f[0]).length < 200); | ].filter(function ([k]) k != null && k.length < 200); |
modes.reset(); | modes.pop(); | this.timeout(function () { if (modes.extended & modes.HINTS) modes.reset(); this._hintMode.action(elem, elem.href || "", this._extendedhintCount); }, timeout); |
function (count) { if (commands.repeat) { for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) dactyl.execute(commands.repeat); } else dactyl.echoerr("E30: No previous command line"); }, | [function () ([c.name, c.description] for (c in commands))]); | function (count) { if (commands.repeat) { for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) dactyl.execute(commands.repeat); } else dactyl.echoerr("E30: No previous command line"); ... |
function (args) { let arg = args[0]; dactyl.assert(!arg || arg[0] == ">" && !util.isOS("WINNT"), "E488: Trailing characters"); prefs.withContext(function () { if (arg) { prefs.set("print.print_to_file", "true"); prefs.set("print.print_to_filename", io.File(arg.substr(1)).path); dactyl.echomsg("Printing to file: " + ... | function (file) editor.editFileExternally(file.path, callback); | function (args) { let arg = args[0]; // FIXME: arg handling is a bit of a mess, check for filename dactyl.assert(!arg || arg[0] == ">" && !util.isOS("WINNT"), "E488: Trailing characters"); prefs.withContext(function () { ... |
keyMap.each(function(pair) { if (pair.key != keyName) return; pair.value.each(function(dbkey) { keySelect.insert(new Element("option", {"value": dbkey}).update(dbkey)); }); throw $break; | data.systems.each(function(system) { var name = system.name; keyMap.set(name, ($A(system.keys))); ($("configuration_description")).insert(new Element("option", {"value": name}).update(name)); | keyMap.each(function(pair) { if (pair.key != keyName) return; pair.value.each(function(dbkey) { keySelect.insert(new Element("option", {"value": dbkey}).update(dbkey)); }); throw $break; }); |
options.setPref("browser.download.lastDir", io.getCurrentDirectory().path); | options.setPref("browser.download.lastDir", io.cwd); | function (args) { let doc = window.content.document; let chosenData = null; let filename = args[0]; if (filename) { let file = io.File(filename); dactyl.assert(!file.exists() || args.bang, ... |
function () { dactyl.quit(true); }, | ["TabMove", "TabOpen", "TabClose"].forEach(function (event) { events.addSessionListener(tabContainer, event, this.closure._updateTabCount, false); }, this); | function () { dactyl.quit(true); }, |
$$(".ddu_button").each( function(e) { e.disabled = true; }); | ($$(".dcc_firmware")).each(function(el) { el.observe("click", function(ev) { window.location.href = URL + "/DCCFirmwareManager?crate=" + ev.element().readAttribute("crate"); }); }); | $$(".ddu_button").each( function(e) { e.disabled = true; }); |
let arg = args[0]; dactyl.assert(!arg || arg[0] == ">" && !util.OS.isWindows, "E488: Trailing characters"); prefs.withContext(function () { if (arg) { prefs.set("print.print_to_file", "true"); prefs.set("print.print_to_filename", io.File(arg.substr(1)).path); dactyl.echomsg("Printing to file: " + arg.substr(1)); } e... | dactyl.open(buffer.focusedFrame.document.documentURI); | function (args) { let arg = args[0]; // FIXME: arg handling is a bit of a mess, check for filename dactyl.assert(!arg || arg[0] == ">" && !util.OS.isWindows, "E488: Trailing characters"); prefs.withContext(function () { ... |
this.each(function(value, index) { value = iterator.call(context, value, index); if (result == null || value >= result) result = value; }); | CQ.each((classNames || "").split(checkforSpaceRegEx), function(i, className){ if ( elem.nodeType === 1 && !has( elem.className, className ) ) { elem.className += (elem.className ? " " : "") + className; } }); | this.each(function(value, index) { value = iterator.call(context, value, index); if (result == null || value >= result) result = value; }); |
try{ var json = JSON.parse(res.responseText); } catch(e) { throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return json; }); | var doc = createHTML(res.responseText); if(!doc.getElementById('title')) throw new Error(getMessage('error.notLoggedin')); function getTags(part){ return $X('id("save-' + part + '-tags") } return { editPage : editPage = 'http: form : { item : doc.getElementById('title').value, description : doc.getElementById('... | }).addCallback(function(res){ try{ var json = JSON.parse(res.responseText); } catch(e) { throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return json; }); |
function () { dactyl.quit(true); }); | function () { dactyl.quit(false); }); | function () { dactyl.quit(true); }); |
timeoutFunction = function(){}; | ret.addBoth(function(arg){ clearTimeout(timer); fixture.endTime = new Date(); retEnd(); }); | |
function (args) { let arg = args.literalArg; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); liberator.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(window.content, ar... | function (args) { buffer.showPageInfo(true, args[0]); }, | function (args) { let arg = args.literalArg; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); liberator.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options[... |
let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; | function quote(str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; | let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; |
item.url = decodeURIComponent(query.replace(/#.*/, "")); return item; | try { item.url = decodeURIComponent(query.replace(/#.*/, "")); return item; } catch (e) {} | context.fork("keyword/" + keyword, keyword.length + space.length, null, function (context) { context.format = history.format; context.title = [keyword + " Quick Search"]; // context.background = true; context.compare = Completio... |
return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length == 0) { $this.attr('id', 'AtD_' + parent.id++); } var id = $this.attr('id'); var node = jQuery('<span></span>'); node.attr('id', 'AtD_' + parent.id++); node... | jPrompt(AtD.getLang('dialog_replace_selection', "Replace selection with")+':', element.text(), AtD.getLang('dialog_replace', 'Replace'), function(text) { if (text != null && oldtext != text) { jQuery(element).html(text); AtD.core.removeParent(element); AtD.counter--; if (AtD.counter == 0) AtD.restoreTextArea( id ); } }... | return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length == 0) { $this.attr('id', 'AtD_' + parent.id++); } var id = $this.attr('id'); var node = jQuery('<span></span>'); node.attr('id', 'AtD_' + parent.id... |
"'": "''" | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", "'": "''" }; function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q... | |
function quote(q, list) { | function quote(q, list, map) { map = map || Commands.quoteMap; | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", "'": "''" }; function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q... |
let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q; | let res = function (str) q + String.replace(str, re, function ($0) $0 in map ? map[$0] : ("\\" + $0)) + q; | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", "'": "''" }; function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q... |
"'": ["'", quote("", "'"), "'"], | "'": ["'", quote("", "'", { "'": "''" }), "'"], | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", "'": "''" }; function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q... |
"'": quote("'", "'"), | "'": quote("'", "'", { "'": "''" }), | (function () { Commands.quoteMap = { "\n": "\\n", "\t": "\\t", "'": "''" }; function quote(q, list) { let re = RegExp("[" + list + "]", "g"); let res = function (str) q + String.replace(str, re, function ($0) $0 in Commands.quoteMap ? Commands.quoteMap[$0] : ("\\" + $0)) + q... |
memo.push({ name : tag, frequency : tags[tag] }); | if(tag){ memo.push({ name : tag, frequency : tags[tag] }); } | }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ memo.push({ name : tag, frequency : tags[tag] }); return memo; }, []); }); |
return function (linkText) { linkText = linkText.toLowerCase(); return tokens.every(function (token) indexOf(linkText, token) >= 0); }; | this._activeTimeout = this.setTimeout(function () { this._processHints(true); }, timeout); | return function (linkText) { linkText = linkText.toLowerCase(); return tokens.every(function (token) indexOf(linkText, token) >= 0); }; |
setTimeout(function(){ self.popup.hidePopup(); }, 200); | this.container.forEach(function(e){ e.setAttribute('style', 'display:none'); }); | setTimeout(function(){ self.popup.hidePopup(); }, 200); |
function (count) { editor.executeCommand("cmd_deleteCharBackward", count); }, | function (count) { editor.executeCommand("cmd_beginLine", 1); modes.set(modes.INSERT, modes.TEXTAREA); events.feedkeys("<Return>"); editor.executeCommand("cmd_linePrevious", 1); }); | function (count) { editor.executeCommand("cmd_deleteCharBackward", count); }, |
memoize(this._exMap, name, function () Command.apply(null, args)); | io.withSavedValues(["readHeredoc", "sourcing"], function () { sourcing = sourcing || this.sourcing || { file: "[Command Line]", line: 1 }; this.sourcing = update({}, sourcing); args = update({}, args || {}); if (tokens && !callable(string)) string = util.compileMacro(string, true); if (callable(string)) string = stri... | memoize(this._exMap, name, function () Command.apply(null, args)); |
return this._exCommands.filter(function (cmd) cmd.user); | return this._exMap[name] || !full && this._exCommands.filter(function (cmd) cmd.hasName(name))[0] || null; | return this._exCommands.filter(function (cmd) cmd.user); |
[function (context, obj, args) { context.quote[2] = ""; completion.file(context, true); }]); | completion.addUrlCompleter("f", "Local files", function (context, full) { let match = util.regexp(<![CDATA[ ^ ( ((chrome|resource):\/\/) [^\/]* ) (\/[^\/]*)? $ ]]>).exec(context.filter); if (match) { if (!match[4]) { context.key = match[2]; context.advance(match[2].length); context.generate = function () util.chromePac... | [function (context, obj, args) { context.quote[2] = ""; completion.file(context, true); }]); |
this.timeout(function () { if ((modes.extended & modes.HINTS) && !this._continue) modes.pop(); commandline._lastEcho = null; dactyl.trapErrors(this._hintMode.action, this._hintMode, elem, elem.href || elem.src || "", this._extendedhintCount, top); }, timeout); | else if (!this._validHints.some(function (h) h.elem == elem)) | this.timeout(function () { if ((modes.extended & modes.HINTS) && !this._continue) modes.pop(); commandline._lastEcho = null; // Hack. dactyl.trapErrors(this._hintMode.action, this._hintMode, elem, elem.href || elem.src || "", ... |
if (this._validHints.some(function (e) e.getAttribute("href") != firstHref)) | this.timeout(function () { if ((modes.extended & modes.HINTS) && !this._continue) modes.pop(); commandline._lastEcho = null; dactyl.trapErrors(this._hintMode.action, this._hintMode, elem, elem.href || elem.src || "", this._extendedhintCount, top); }, timeout); | if (this._validHints.some(function (e) e.getAttribute("href") != firstHref)) |
function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, | context.filters.push(function ({ item }) item != window); | function (args) { for (let i in Iterator(tabs.closedTabs)) window.undoCloseTab(0); }, |
return request(url, opt).addCallbacks(function(res){ | }, function(res){ | return request(url, opt).addCallbacks(function(res){ func({ success: true, content: res }); }, function(res){ |
success: true, | success: false, | return request(url, opt).addCallbacks(function(res){ func({ success: true, content: res }); }, function(res){ |
}, function(res){ | }); | return request(url, opt).addCallbacks(function(res){ func({ success: true, content: res }); }, function(res){ |
Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { | Array.forEach(this.widgets[nodeSet].commandline.children, function (node) { | ["commandbar", "statusbar"].forEach(function (nodeSet) { Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; }, this); }, this); |
storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp)); | function () { dactyl.assert(this._lastMowOutput); this._echoMultiline(this._lastMowOutput, commandline.HL_NORMAL); }); | storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp)); |
d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return pa("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,"keypress.specialSubmit"+(b?"."+b.guid:"")... | isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,... | d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return pa("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this,"keypress.specialSubmit"+(b?"."+b.guid:"")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.