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(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' | 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.description, body : getFlavor(ps, 'html'), tags : joinText(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' }) }); }); |
}); }); | }).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(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' }) }); }); |
|
}).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.description, body : getFlavor(ps, 'html'), tags : joinText(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' }) }); }); |
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.description, body : getFlavor(ps, 'html'), tags : joinText(ps.tags, ','), fullPage : (ps.body)? 'true' : 'false' }) }); }); |
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)},filter:function(a){return this.pushStack(Fa(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i= | 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 b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; | 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)},filter:function(a){return this.pushStack(Fa(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i= |
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(context, unchunked), literal: 0 }); }); | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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('//input[@name="__fp"]/@value', doc)[0], noteBookGuide : $X('//select[@name="notebookGuid"]//option[@selected="selected"]/@value', doc)[0] }; }); |
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('//input[@name="__fp"]/@value', doc)[0], noteBookGuide : $X('//select[@name="notebookGuid"]//option[@selected="selected"]/@value', doc)[0] }; }); |
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('//input[@name="__fp"]/@value', doc)[0], noteBookGuide : $X('//select[@name="notebookGuid"]//option[@selected="selected"]/@value', doc)[0] }; }); |
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.context):null;return this.map(function(n,t){for(;t&&t.ownerDocument&&t!==b;){if(p?p.index(t)>-1:c(t).is(a))return t;t=t.parentNode}return null})},index:function(a){if(!a||typeof a=== | 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 b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; | {},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.context):null;return this.map(function(n,t){for(;t&&t.ownerDocument&&t!==b;){if(p?p.index(t)>-1:c(t).is(a))return t;t=t.parentNode}return null})},index:function(a){if(!a||typeof a=== |
].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, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); |
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, unchunked); }, { argCount: "?", bang: true, completer: function (context) completion.help(context, unchunked), literal: 0 }); }); |
|
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.string); } catch (e) { liberator.echoerr(e); } } }, { |
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 Element.writeAttribute(document.createElement(tagName), attributes); } if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName)); return Element.writeAttribute(cache[tagName].cloneNode(false), attributes); }; Object.extend(this.Element, element || { }); if (element) this.Element.prototype = element.prototype; }).call(window); | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | (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 Element.writeAttribute(document.createElement(tagName), attributes); } if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName)); return Element.writeAttribute(cache[tagName].cloneNode(false), attributes); }; Object.extend(this.Element, element || { }); if (element) this.Element.prototype = element.prototype;}).call(window); |
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.readAttribute("name")); } }); ($$(".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.each(function(register) { | 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(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; }); |
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); } catch (e) { dactyl.echoerr(e); } } }, { |
($$(".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.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); | 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( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); // Can I submit a form without that form actually existing? ($$(".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"});//, "target": "commanderDisplay" + time.valueOf()}); ruis.each(function(rui) { fakeForm.insert(new Element("input", {"name": "rui", "value": rui})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); |
.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(" ",normalize-space(@name)," ")," at ")]/@value', doc)[0]; }); |
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+/); context.filters.push(function (item) tokens.every( function (tok) contains(item.url, tok) || contains(item.title, tok))); 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) highlight.call(this, item, text, 1) ]; }); | 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.completionRow(item, "CompItem")) } </div>), null, commandline.FORCE_MULTILINE); }, |
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).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||!c(a).is(d));){a.nodeType=== | 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 b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length; | 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).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||!c(a).is(d));){a.nodeType=== |
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(/logout\?siv=(.+?)"/) } | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | $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").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); // Can I submit a form without that form actually existing? ($$(".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=dcc", "target": "commanderDisplay" + time.valueOf()}); fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); |
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").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); // Can I submit a form without that form actually existing? ($$(".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=dcc", "target": "commanderDisplay" + time.valueOf()}); fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); |
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": URL + "/DisplayRegisters?board=dcc", "target": "commanderDisplay" + time.valueOf()}); fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); | $("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").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } }); // Can I submit a form without that form actually existing? ($$(".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=dcc", "target": "commanderDisplay" + time.valueOf()}); fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); |
|
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 true; }); |
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(msg).trimTag(); | 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 : '', comment : joinText([ps.body, ps.description], ' ', true) } }); }); |
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).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||!c(a).is(d));){a.nodeType=== | 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)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= | 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).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||!c(a).is(d));){a.nodeType=== |
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]); } catch (e) { dactyl.echoerr(e); } } }, { |
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 || res === DROP) modes.pop(); else commandline.updateMorePrompt(); if (res === BEEP) dactyl.beep(); else if (res === PASS) events.feedkeys(command); }); |
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['offset' + style.capitalize()]) return dim + 'px'; var properties; if (style === 'height') { properties = ['border-top-width', 'padding-top', 'padding-bottom', 'border-bottom-width']; } else { properties = ['border-left-width', 'padding-left', 'padding-right', 'border-right-width']; } return properties.inject(dim, function(memo, property) { var val = proceed(element, property); return val === null ? memo : memo - parseInt(val, 10); }) + 'px'; default: return proceed(element, style); } } | 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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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 (!Element.visible(element)) return null; // returns the border-box dimensions rather than the content-box // dimensions, so we subtract padding and borders from the value var dim = parseInt(proceed(element, style), 10); if (dim !== element['offset' + style.capitalize()]) return dim + 'px'; var properties; if (style === 'height') { properties = ['border-top-width', 'padding-top', 'padding-bottom', 'border-bottom-width']; } else { properties = ['border-left-width', 'padding-left', 'padding-right', 'border-right-width']; } return properties.inject(dim, function(memo, property) { var val = proceed(element, property); return val === null ? memo : memo - parseInt(val, 10); }) + 'px'; default: return proceed(element, style); } } |
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 && ["file", "search", "text", "password"].indexOf(elem.type) < 0) return false; let computedStyle = util.computedStyle(elem); return computedStyle.visibility != "hidden" && computedStyle.display != "none"; }); dactyl.assert(elements.length > 0); let elem = elements[util.Math.constrain(count, 1, elements.length) - 1]; buffer.focusElement(elem); util.scrollIntoView(elem); } }, | 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.evaluateXPath(xpath))].filter(function (elem) { if (elem.readOnly || elem instanceof HTMLInputElement && ["file", "search", "text", "password"].indexOf(elem.type) < 0) return false; let computedStyle = util.computedStyle(elem); return computedStyle.visibility != "hidden" && computedStyle.display != "none"; }); dactyl.assert(elements.length > 0); let elem = elements[util.Math.constrain(count, 1, elements.length) - 1]; buffer.focusElement(elem); util.scrollIntoView(elem); } }, |
$$(".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(); }); }); |
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){ var msg = res.responseText.extract(/notification.setMessage\("(.*?)"\)/); if(msg) throw unescapeHTML(msg).trimTag(); }); }); |
|
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.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, // accept them if all tokens match either the URL or the title. // Filter out all directly matching strings. let match = context.filters[0]; context.filters[0] = function (item) !match.call(this, item); // and all that don't match the tokens. let tokens = context.filter.split(/\s+/); context.filters.push(function (item) tokens.every( function (tok) contains(item.url, tok) || contains(item.title, tok))); 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) highlight.call(this, item, text, 1) ]; }); |
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) highlight.call(this, item, text, 1) ]; }); | 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, // accept them if all tokens match either the URL or the title. // Filter out all directly matching strings. let match = context.filters[0]; context.filters[0] = function (item) !match.call(this, item); // and all that don't match the tokens. let tokens = context.filter.split(/\s+/); context.filters.push(function (item) tokens.every( function (tok) contains(item.url, tok) || contains(item.title, tok))); 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) highlight.call(this, item, text, 1) ]; }); |
|
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.colgroup=G.caption=G.thead;G.th=G.td;if(!c.support.htmlSerialize)G._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this); 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].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, | {},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.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== | 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.colgroup=G.caption=G.thead;G.th=G.td;if(!c.support.htmlSerialize)G._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);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].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, |
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[@id="form_key"]/@value', doc)[0]; }).addCallback(function(token){ |
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | 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 computedStyle = util.computedStyle(elem); return computedStyle.visibility != "hidden" && computedStyle.display != "none"; }); |
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 computedStyle = util.computedStyle(elem); return computedStyle.visibility != "hidden" && computedStyle.display != "none"; }); |
|
$$(".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": URL + "/DisplayRegisters?board=dcc", "target": "commanderDisplay" + time.valueOf()}); fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); }); registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); }); $("FED_Commander_Select_dialog").insert(fakeForm); fakeForm.submit(); }); | 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].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, | 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).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== | 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].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, |
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.