rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
connect(clone, 'onclick', this, function(){ self.tags.injectCandidates(cand.value, true); this.hidePopup(); }); | this.items = cands.map(function(item){ var li = this.createItem(item) this.element.appendChild(li); return li; }, this); | connect(clone, 'onclick', this, function(){ self.tags.injectCandidates(cand.value, true); this.hidePopup(); }); |
}).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.description, body : getFlavor(ps, 'html'), tags : joinText(... | tags : getTags('yourtags').map(function(tag){ return { name : tag, frequency : -1 } | }).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.... |
}); }); | }).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.... | |
}).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', | }).addCallback(function(res){ var doc = createHTML(res.responseText); if($X('id("login_form")', doc)[0]) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); | }).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.... |
url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.description, body : getFlavor(ps, 'html'), tags : joinText(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' }) }); | return { _sourcePage : $X(' __fp : $X(' noteBookGuide : $X(' }; | }).addCallback(function(token){ return request(self.POST_URL, { redirectionLimit : 0, sendContent : update(token, { saveQuicknote : 'save', format : 'microclip', url : ps.itemUrl || 'no url', title : ps.item || 'no title', comment : ps.... |
function (item, text) highlight.call(this, item, item.text, 0), | function (tok) contains(item.url, tok) || contains(item.title, tok))); | function (item, text) highlight.call(this, item, item.text, 0), |
c.find(a,this[f],b);if(f>0)for(var i=d;i<b.length;i++)for(var j=0;j<d;j++)if(b[j]===b[i]){b.splice(i--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Fa(this,a,false),"not",a)},filt... | gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else ... | c.find(a,this[f],b);if(f>0)for(var i=d;i<b.length;i++)for(var j=0;j<d;j++)if(b[j]===b[i]){b.splice(i--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Fa(this,a,false),"not",a)},filt... |
function (args) { Dactyl.showHelpIndex("ex-cmd-index", commands, args.bang); }, { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(contex... | function (args) { Dactyl.showHelpIndex("ex-cmd-index", commands, args.bang); }, { |
function () { liberator.restart(); }, | function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, { | function () { liberator.restart(); }, |
return Twitter.getToken().addCallback(function(ps){ ps._method = 'delete'; return request(self.URL + '/status/destroy/' + id, { referrer : self.URL + '/', sendContent : ps }); }); | return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ | return Twitter.getToken().addCallback(function(ps){ ps._method = 'delete'; return request(self.URL + '/status/destroy/' + id, { //denyRedirection: true, referrer : self.URL + '/', sendContent : ps }); }); |
function (args) { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { | function (args) { liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { |
argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); | function (args) { liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { | |
function () { events.feedkeys("<S-Down>"); }); | function () { commandline.open(":", "", modes.EX); }); | function () { events.feedkeys("<S-Down>"); }); |
options.onComplete = (function(response, json) { this.updateContent(response.responseText); if (Object.isFunction(onComplete)) onComplete(response, json); }).bind(this); | 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(... | options.onComplete = (function(response, json) { this.updateContent(response.responseText); if (Object.isFunction(onComplete)) onComplete(response, json); }).bind(this); |
this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0); | commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0); |
ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); | $$(".dcc_registers_checkbox").each(function(element) { element.checked = false; | ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); |
function (item) item.item.collapsed); | function (args) { if (args.bang) { liberator.open("chrome: { from: "javascript" }); } else { try { liberator.eval(args.string); } catch (e) { liberator.echoerr(e); } } }, { | function (item) item.item.collapsed); |
function (args) { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { | function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { |
argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); | function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { | |
}).addCallback(function(res){ | .addCallback(function(res){ | }).addCallback(function(res){ var doc = createHTML(res.responseText); if($X('id("login_form")', doc)[0]) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { _sourcePage : $X('//input[@name="_sourcePage"]/@value', doc)[0], __fp : $X('//inpu... |
if($X('id("login_form")', doc)[0]) | if($X('descendant::span[child::a[@href="http: | }).addCallback(function(res){ var doc = createHTML(res.responseText); if($X('id("login_form")', doc)[0]) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { _sourcePage : $X('//input[@name="_sourcePage"]/@value', doc)[0], __fp : $X('//inpu... |
return { _sourcePage : $X(' __fp : $X(' noteBookGuide : $X(' }; | } return $X('descendant::input[contains(concat(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; | }).addCallback(function(res){ var doc = createHTML(res.responseText); if($X('id("login_form")', doc)[0]) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { _sourcePage : $X('//input[@name="_sourcePage"]/@value', doc)[0], __fp : $X('//inpu... |
context.filters.push(function (item) tags. every(function (tag) (item.tags || []). some(function (t) !compare(tag, t)))); | some(function (t) !compare(tag, t)))); | context.filters.push(function (item) tags. every(function (tag) (item.tags || []). some(function (t) !compare(tag, t)))); |
function (item, text) highlight.call(this, item, text, 1) ]; | let process = [template.icon, function (item, k) k]; | function (item, text) highlight.call(this, item, text, 1) ]; |
{},j;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){j=a[e];i[j]||(i[j]=c.expr.match.POS.test(j)?c(j,b||this.context):j)}for(;f&&f.ownerDocument&&f!==b;){for(j in i){e=i[j];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var p=c.expr.match.POS.test(a)?c(a,b||this.... | gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else ... | {},j;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){j=a[e];i[j]||(i[j]=c.expr.match.POS.test(j)?c(j,b||this.context):j)}for(;f&&f.ownerDocument&&f!==b;){for(j in i){e=i[j];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var p=c.expr.match.POS.test(a)?c(a,b||this.... |
].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { | function (args) { | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, ... |
argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); | ].forEach(function (command) { let unchunked = command.name == "helpa[ll]"; commands.add([command.name], command.description, function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, ... | |
function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, { | function (toolbar) toolbar.collapsed = false, | function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, { |
return Twitter.getToken().addCallback(function(ps){ return request(self.URL + '/favourings/create/' + id, { referrer : self.URL + '/', sendContent : ps | }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); | return Twitter.getToken().addCallback(function(ps){ return request(self.URL + '/favourings/create/' + id, { //denyRedirection: true, referrer : self.URL + '/', sendContent : ps }); }); |
}); | return Twitter.getToken().addCallback(function(ps){ return request(self.URL + '/favourings/create/' + id, { //denyRedirection: true, referrer : self.URL + '/', sendContent : ps }); }); | |
if (args.bang) { liberator.open("chrome: { from: "javascript" }); } else { try { liberator.eval(args.string); } catch (e) { liberator.echoerr(e); } } }, { | liberator.assert(!args.bang, "E478: Don't panic!"); liberator.help(args.literalArg, unchunked); }, { | function (args) { if (args.bang) { // open JavaScript console liberator.open("chrome://global/content/console.xul", { from: "javascript" }); } else { try { liberator.eval(args.str... |
function () { commandline.open(":", "", modes.EX); }); | function () {}); | function () { commandline.open(":", "", modes.EX); }); |
(function() { var element = this.Element; this.Element = function(tagName, attributes) { attributes = attributes || { }; tagName = tagName.toLowerCase(); var cache = Element.cache; if (Prototype.Browser.IE && attributes.name) { tagName = '<' + tagName + ' name="' + attributes.name + '">'; delete attributes.name; return... | 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(... | (function() { var element = this.Element; this.Element = function(tagName, attributes) { attributes = attributes || { }; tagName = tagName.toLowerCase(); var cache = Element.cache; if (Prototype.Browser.IE && attributes.name) { tagName = '<' + tagName + ' name="' + attributes.name + '">'; delete... |
template.map(util.range(0, options["maxitems"] * 2), function (i) <span highlight="CompItem"> <li highlight="NonText">~</li> </span>) | host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host)))); | template.map(util.range(0, options["maxitems"] * 2), function (i) <span highlight="CompItem"> <li highlight="NonText">~</li> </span>) |
registers.each(function(register) { | $("ddu_display_button").observe("click", function(ev) { var ruis = new Array(); $$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } }); var registers = new Array(); $$(".ddu_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribu... | registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); |
$("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); | registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); | |
function (toolbar) toolbar.collapsed = true, | function () { liberator.loadPlugins(); }, | function (toolbar) toolbar.collapsed = true, |
.addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http: throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; }); | tags : getTags('yourtags').map(function(tag){ return { name : tag, frequency : -1 } }) | .addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http://friendfeed.com/account/login"]]', doc)[0]){ throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normal... |
if (args.bang) { dactyl.open("chrome: { from: "javascript" }); } else { try { dactyl.eval(args.string); } catch (e) { dactyl.echoerr(e); } } }, { | dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { | function (args) { if (args.bang) { // open JavaScript console dactyl.open("chrome://global/content/console.xul", { from: "javascript" }); } else { try { dactyl.eval(args.string); ... |
($$(".fake_form")).invoke("remove"); var time = new Date(); var fakeForm = new Element("form", {"class": "fake_form", "style": "display:none", "method": "post", "action": URL + "/DisplayRegisters?board=ddu"}); ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); registers.... | var params = new Hash(); params.set("board", "ddu"); params.set("rui", ruis); params.set("reg", registers); var url = URL + "/DisplayRegisters?" + params.toQueryString(); document.location.href = url; | $("ddu_display_button").observe("click", function(ev) { // The crates/slots to read var ruis = new Array(); $$(".ddu_checkbox").each( function(e) { if (e.checked == true) { ruis.push(e.readAttribute("rui")); } }); // The registers to read var registers = new Array(); $$(".ddu_registers_checkbox").each( f... |
.addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http: throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; | return this.getToken().addCallback(function(token){ return request('https: sendContent : { at : token, link : ps.pageUrl, title : ps.page, image0 : ps.type === 'photo'? ps.itemUrl : '', comment : joinText([ps.body, ps.description], ' ', true) } }); | .addCallback(function(res){ var doc = createHTML(res.responseText); if($X('descendant::span[child::a[@href="http://friendfeed.com/account/login"]]', doc)[0]){ throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('descendant::input[contains(concat(" ",normal... |
every(function (tag) (item.tags || []). some(function (t) !compare(tag, t)))); | context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; context.completions = context.parent.completions; let match = context.filters[0]; context.filters[0] = function (item) !match.call(this, item); let tokens = context.filter.split(/\s+... | every(function (tag) (item.tags || []). some(function (t) !compare(tag, t)))); |
function (args) { commandline.echo(template.commandOutput( <div highlight="Completions"> { template.completionRow(["Context", "Title"], "CompTitle") } { template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) } </div>), null, commandline.FORCE_MULTILINE); }, | function (item, text) highlight.call(this, item, item.text, 0), | function (args) { commandline.echo(template.commandOutput( <div highlight="Completions"> { template.completionRow(["Context", "Title"], "CompTitle") } { template.map(completion.contextList || [], function (item) template.complet... |
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);ab.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||cb.test(f))&&bb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments)... | gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else ... | a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);ab.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||cb.test(f))&&bb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments)... |
dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { | if (args.bang) { dactyl.open("chrome: { from: "javascript" }); } else { try { dactyl.userEval(args[0]); } catch (e) { dactyl.echoerr(e); } } }, { | function (args) { dactyl.assert(!args.bang, "E478: Don't panic!"); dactyl.help(args.literalArg, unchunked); }, { |
function (toolbar) toolbar.collapsed = false, | function (item) item.item.collapsed); | function (toolbar) toolbar.collapsed = false, |
return request(this.URL + '/direct_messages/recipients_list?twttr=true').addCallback(function(res){ return map(function(pair){ return {id:pair[0], name:pair[1]}; }, JSON.parse('(' + res.responseText + ')')); | return request(this.URL + '/account/settings').addCallback(function(res){ var html = res.responseText; if(~html.indexOf('login')) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { authenticity_token : html.extract(/authenticity_token.+value="(.+?)"/), siv : html.extract(/... | return request(this.URL + '/direct_messages/recipients_list?twttr=true').addCallback(function(res){ return map(function(pair){ return {id:pair[0], name:pair[1]}; }, JSON.parse('(' + res.responseText + ')')); }); |
function () { liberator.loadPlugins(); }, | function (args) { if (args.bang) { liberator.open("chrome: { from: "javascript" }); } else { try { liberator.eval(args.string); } catch (e) { liberator.echoerr(e); } } }, { | function () { liberator.loadPlugins(); }, |
function () {}); | function (command) { if (!options["more"]) var res = PASS; else if (test && !test(command)) res = default_; else res = action.call(command); if (res === PASS || res === DROP) modes.pop(); else commandline.updateMorePrompt(); if (res === BEEP) dactyl.beep(); else if (res === PASS) events.feedkeys(command); }); | function () {}); |
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); }); | 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(... | $H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); }); |
function (count) { buffer.scrollToPercent(buffer.scrollXPercent, Math.max(count, 0)); }, | function (count) { buffer.scrollToPercent(null, count != null ? count : 0); }, | function (count) { buffer.scrollToPercent(buffer.scrollXPercent, Math.max(count, 0)); }, |
$("dcc_display_button").observe("click", function(ev) { var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { | $$(".ddu_checkbox").each( function(e) { | $("dcc_display_button").observe("click", function(ev) { // The crates/slots to read var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); // The registers to read var registers = new Array(); $$(".dcc_registers_checkbox").e... |
fmmids.push(e.readAttribute("fmmid")); | ruis.push(e.readAttribute("rui")); | $("dcc_display_button").observe("click", function(ev) { // The crates/slots to read var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); // The registers to read var registers = new Array(); $$(".dcc_registers_checkbox").e... |
var registers = new Array(); $$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); ($$(".fake_form")).invoke("remove"); var time = new Date(); var fakeForm = new Element("form", {"class": "fake_form", "style": "display:none", "method": "post", "action... | $("dcc_display_button").observe("click", function(ev) { // The crates/slots to read var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); // The registers to read var registers = new Array(); $$(".dcc_registers_checkbox").e... | |
function (item) !item.item.collapsed); | function (args) { events.feedkeys(args.string, args.bang); }, | function (item) !item.item.collapsed); |
function () { dactyl.loadPlugins(); }, | function (args) { if (args.bang) { dactyl.open("chrome: { from: "javascript" }); } else { try { dactyl.eval(args.string); } catch (e) { dactyl.echoerr(e); } } }, { | function () { dactyl.loadPlugins(); }, |
remains = remains.filter(function (c) { let text = getText(c).toLowerCase(); if (text.indexOf(query) === 0) { matched.push(c); return false; } return true; }); | modules.__defineGetter__("HIDDEN", function () { return 1; }); | remains = remains.filter(function (c) { let text = getText(c).toLowerCase(); if (text.indexOf(query) === 0) { matched.push(c); return false; } ... |
return this.getToken().addCallback(function(token){ return request('https: sendContent : { at : token, link : ps.pageUrl, title : ps.page, image0 : ps.type === 'photo'? ps.itemUrl : '', comment : joinText([ps.body, ps.description], ' ', true) } | ).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(... | return this.getToken().addCallback(function(token){ return request('https://friendfeed.com/a/bookmarklet', { //denyRedirection: true, sendContent : { at : token, link : ps.pageUrl, title : ps.page, image0 : ps.type === 'photo'? ps.itemUrl : '', ... |
some(function (t) !compare(tag, t)))); | context.filters[0] = function (item) !match.call(this, item); | some(function (t) !compare(tag, t)))); |
{ template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) } | function (item, text) highlight.call(this, item, text, 1) ]; | { template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) } |
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);ab.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||cb.test(f))&&bb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments)... | c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filt... | a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);ab.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||cb.test(f))&&bb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments)... |
function (args) { if (args.bang) { dactyl.open("chrome: { from: "javascript" }); } else { try { dactyl.userEval(args[0]); } catch (e) { dactyl.echoerr(e); } } }, { | function () { dactyl.loadPlugins(); }, | function (args) { if (args.bang) { // open JavaScript console dactyl.open("chrome://global/content/console.xul", { from: "javascript" }); } else { try { dactyl.userEval(args[0]); ... |
function (item) item.item.collapsed); | function (toolbar) toolbar.collapsed = true, | function (item) item.item.collapsed); |
return map(function(pair){ return {id:pair[0], name:pair[1]}; }, JSON.parse('(' + res.responseText + ')')); | return Twitter.getToken().addCallback(function(ps){ ps._method = 'delete'; return request(self.URL + '/status/destroy/' + id, { referrer : self.URL + '/', sendContent : ps }); }); | return map(function(pair){ return {id:pair[0], name:pair[1]}; }, JSON.parse('(' + res.responseText + ')')); |
function (args) { events.feedkeys(args.string, args.bang); }, | function () { liberator.loadPlugins(); }, | function (args) { events.feedkeys(args.string, args.bang); }, |
function (command) { if (!options["more"]) var res = PASS; else if (test && !test(command)) res = default_; else res = action.call(command); if (res === PASS || res === DROP) modes.pop(); else commandline.updateMorePrompt(); if (res === BEEP) dactyl.beep(); else if (res === PASS) events.feedkeys(command); }); | function () { Buffer.scrollVertical(body(), "lines", 1); }, | function (command) { if (!options["more"]) var res = PASS; else if (test && !test(command)) res = default_; else res = action.call(command); if (res === PASS |... |
function(proceed, element, style) { switch (style) { case 'left': case 'top': case 'right': case 'bottom': if (proceed(element, 'position') === 'static') return null; case 'height': case 'width': if (!Element.visible(element)) return null; var dim = parseInt(proceed(element, style), 10); if (dim !== element['offse... | 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(... | function(proceed, element, style) { switch (style) { case 'left': case 'top': case 'right': case 'bottom': if (proceed(element, 'position') === 'static') return null; case 'height': case 'width': // returns '0px' for hidden elements; we want it to return null if (!Eleme... |
function (count) { buffer.scrollToPercent(buffer.scrollXPercent, count != null ? count : 100); }, | function (count) { buffer.scrollToPercent(null, count != null ? count : 100); }, | function (count) { buffer.scrollToPercent(buffer.scrollXPercent, count != null ? count : 100); }, |
function (count) { if (count < 1 && buffer.lastInputField) buffer.focusElement(buffer.lastInputField); else { let xpath = ["input", "textarea[not(@disabled) and not(@readonly)]"]; let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { if (elem.readOnly || elem instanceof HTMLInputElement && [... | function () { buffer.viewSource(null, true); }); | function (count) { if (count < 1 && buffer.lastInputField) buffer.focusElement(buffer.lastInputField); else { let xpath = ["input", "textarea[not(@disabled) and not(@readonly)]"]; let elements = [m for (m in util.evaluate... |
$$(".dcc_checkbox").each( function(e) { | $$(".ddu_registers_checkbox").each( function(e) { | $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); |
fmmids.push(e.readAttribute("fmmid")); | registers.push(e.readAttribute("name")); | $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); |
function (toolbar) toolbar.collapsed = !toolbar.collapsed); | function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, { | function (toolbar) toolbar.collapsed = !toolbar.collapsed); |
function (args) { events.feedkeys(args.string, args.bang); }, | function () { dactyl.loadPlugins(); }, | function (args) { events.feedkeys(args.string, args.bang); }, |
).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ | return Twitter.getToken().addCallback(function(token){ | ).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ // FIXME: 403γηΊηγγγγ¨γγγ£γγγ redirectionLimit:0 γε€γ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ ... |
var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); }); }); | ).addCallback(function(status){ return Twitter.getToken().addCallback(function(token){ // FIXME: 403γηΊηγγγγ¨γγγ£γγγ redirectionLimit:0 γε€γ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ ... | |
context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; context.completions = context.parent.completions; let match = context.filters[0]; context.filters[0] = function (item) !match.call(this, item); let tokens = context.filter.split(/\s+... | context.filters.push(function (item) tokens.every( | context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; // FIXME context.completions = context.parent.completions; // For items whose URL doesn't exactly match the filter, // acce... |
let re = RegExp(tokens.filter(util.identity).map(util.escapeRegexp).join("|"), "g"); function highlight(item, text, i) process[i].call(this, item, template.highlightRegexp(text, re)); let process = context.process; context.process = [ function (item, text) highlight.call(this, item, item.text, 0), function (item, text)... | context.fork("additional", 0, this, function (context) { context.title[0] += " (additional)"; context.filter = context.parent.filter; // FIXME context.completions = context.parent.completions; // For items whose URL doesn't exactly match the filter, // acce... | |
test = function (val) this.values.some(function (value) this.checkHas(value, val), this); | function (args) { commandline.echo(template.commandOutput( <div highlight="Completions"> { template.completionRow(["Context", "Title"], "CompTitle") } { template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) } </div>), null, commandline.FORCE_MULTILINE); }, | test = function (val) this.values.some(function (value) this.checkHas(value, val), this); |
legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};G.optgroup=G.option;G.tbody=G.tfoot=G.colgrou... | {},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.... | legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};G.optgroup=G.option;G.tbody=G.tfoot=G.colgrou... |
function () { dactyl.loadPlugins(); }, | function (args) { events.feedkeys(args[0] || "", args.bang); }, | function () { dactyl.loadPlugins(); }, |
function (toolbar) toolbar.collapsed = true, | function (item) !item.item.collapsed); | function (toolbar) toolbar.collapsed = true, |
return request(url).addCallback(function(res){ var doc = createHTML(res.responseText); if(!$X('id("userpanel")/a[contains(concat(" ",normalize-space(@href)," "), " /user/logout ")]', doc)[0]){ throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X(' }).addCallback(function(token){ | return Twitter.getToken().addCallback(function(ps){ return request(self.URL + '/favourings/create/' + id, { referrer : self.URL + '/', sendContent : ps }); }); | return request(url).addCallback(function(res){ var doc = createHTML(res.responseText); if(!$X('id("userpanel")/a[contains(concat(" ",normalize-space(@href)," "), " /user/logout ")]', doc)[0]){ throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); } return $X('//input[@i... |
var haystack = sortStringValues(b); | var haystack = sortStringValues(this, b); | .define("less-than", t.BOOLEAN, [ t.NODE_SET, t.NODE_SET ], function(a, b) { var haystack = sortStringValues(b); return !eachAsString(this, a, function() { if (binarySearch(haystack, this) < haystack.length) return false; }); }) |
function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, { | function (args) { events.feedkeys(args.string, args.bang); }, | function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, { |
function () { Buffer.scrollVertical(body(), "lines", 1); }, | function () !atEnd(1), BEEP); | function () { Buffer.scrollVertical(body(), "lines", 1); }, |
return properties.inject(dim, function(memo, property) { var val = proceed(element, property); return val === null ? memo : memo - parseInt(val, 10); }) + 'px'; | 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 properties.inject(dim, function(memo, property) { var val = proceed(element, property); return val === null ? memo : memo - parseInt(val, 10); }) + 'px'; |
buffer.scrollToPercent(buffer.scrollXPercent, count); | buffer.scrollToPercent(null, count); | function (count) { dactyl.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); }, |
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { | function (count) { if (count < 1 && buffer.lastInputField) buffer.focusElement(buffer.lastInputField); else { let xpath = ["input", "textarea[not(@disabled) and not(@readonly)]"]; let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { | let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { if (elem.readOnly || elem instanceof HTMLInputElement && ["file", "search", "text", "password"].indexOf(elem.type) < 0) return false; let computed... |
dactyl.assert(elements.length > 0); let elem = elements[util.Math.constrain(count, 1, elements.length) - 1]; buffer.focusElement(elem); util.scrollIntoView(elem); } }, | let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { if (elem.readOnly || elem instanceof HTMLInputElement && ["file", "search", "text", "password"].indexOf(elem.type) < 0) return false; let computed... | |
$$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } | ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); | $$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); |
function (args) { Dactyl.showHelpIndex("option-index", options, args.bang); }, { | function (args) { events.feedkeys(args.string, args.bang); }, | function (args) { Dactyl.showHelpIndex("option-index", options, args.bang); }, { |
remains = remains.filter(function (c) { let text = getText(c); if (text.indexOf(query) === 0) { matched.push(c); return false; } return true; }); | modules.__defineGetter__("ICON" , function () { return 4; }); | remains = remains.filter(function (c) { let text = getText(c); if (text.indexOf(query) === 0) { matched.push(c); return false; } return true... |
return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ | tags : getTags('yourtags').map(function(tag){ return { name : tag, frequency : -1 } }) | return Twitter.getToken().addCallback(function(token){ // FIXME: 403γηΊηγγγγ¨γγγ£γγγ redirectionLimit:0 γε€γ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ |
ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); | $("dcc_display_button").observe("click", function(ev) { var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } | ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); |
var registers = new Array(); $$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); ($$(".fake_form")).invoke("remove"); var time = new Date(); var fakeForm = new Element("form", {"class": "fake_form", "style": "display:none", "method": "get", "action"... | ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); | |
return Twitter.getToken().addCallback(function(token){ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ | }).addCallback(function(res){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); }); | return Twitter.getToken().addCallback(function(token){ // FIXME: 403γηΊηγγγγ¨γγγ£γγγ redirectionLimit:0 γε€γ token.status = status; return request(self.URL + '/status/update', update({ sendContent : token })); }).addCallback(function(res){ |
context.filters[0] = function (item) !match.call(this, item); | function (tok) contains(item.url, tok) || contains(item.title, tok))); | context.filters[0] = function (item) !match.call(this, item); |
function (args) { events.feedkeys(args[0], args.bang); }, | function (args) { events.feedkeys(args[0] || "", args.bang); }, | function (args) { events.feedkeys(args[0], args.bang); }, |
return d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.getText(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocume... | a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments)... | return d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.getText(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocume... |
function (args) { events.feedkeys(args[0] || "", args.bang); }, | function (args) { Dactyl.showHelpIndex("option-index", options, args.bang); }, | function (args) { events.feedkeys(args[0] || "", args.bang); }, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.