rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
.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 d.addCallback(function(){ return self.getToken(); }).addCallback(function(token){
.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]; });
commandline.runSilently(function () commands.execute(args[0] || "", null, true));
function () { events.onEscape(); });
commandline.runSilently(function () commands.execute(args[0] || "", null, true));
return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
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 '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>';
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (!host || commands.hasDomain(item.value, host))));
function () { dactyl.assert(commandline._lastMowOutput, "No previous command output"); commandline._echoMultiline(commandline._lastMowOutput, commandline.HL_NORMAL); });
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (!host || commands.hasDomain(item.value, host))));
function (count) { buffer._scrollByScrollSize(count, false); },
function (count) { buffer._scrollByScrollSize(count, true); },
function (count) { buffer._scrollByScrollSize(count, false); },
dactyl.echoerr("Exxx: No extension matching \"" + filter + "\"");
dactyl.echoerr("Exxx: No extension matching " + filter.quote());
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching \"" + filter + "\""); else dactyl.echoerr("No extensions installed"); } }); },
$$(".dcc_registers_checkbox").each(function(element) {
$$(".ddu_registers_checkbox").each(function(element) {
$$(".dcc_registers_checkbox").each(function(element) { element.checked = true; });
function () { editor.expandAbbreviation(modes.COMMAND_LINE); });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function () { editor.expandAbbreviation(modes.COMMAND_LINE); });
function (args) { events.feedkeys(args.string, args.bang); },
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensions); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) liberator.echoerr("Exxx: No extension matching \"" + filter + "\""); else liberator.echoerr("No extensions installed"); } }); },
function (args) { events.feedkeys(args.string, args.bang); },
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); } }); },
context.filters.push(function ({ item: e }) e.isActive && e.optionsURL);
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); } }); },
function (count) { liberator.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); },
function (count) { buffer.scrollToPercent(buffer.scrollXPercent, count != null ? count : 100); },
function (count) { liberator.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); },
['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(function(cand){
res[prop].forEach(function(cand){
['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } else { var sug = $N('p', { class: 'suggestion' }, cand); } self.elmTags[cand] = sug; connect(sug, 'onclick', cand, function(ev){ if(hasElementClass(sug, 'used')){ self.removeWord(cand); removeElementClass(sug, 'used'); } else { self.injectCandidates(cand, true); } }); df.appendChild(sug); } }); });
});
['recommended', 'popular'].forEach(function(prop){ res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } else { var sug = $N('p', { class: 'suggestion' }, cand); } self.elmTags[cand] = sug; connect(sug, 'onclick', cand, function(ev){ if(hasElementClass(sug, 'used')){ self.removeWord(cand); removeElementClass(sug, 'used'); } else { self.injectCandidates(cand, true); } }); df.appendChild(sug); } }); });
AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { if (!args.bang) list = list.filter(function (extension) extension.name == name); if (!args.bang && !list.every(ok)) return dactyl.echoerr("Permission denied"); if (command.actions) command.actions(list); else list.forEach(command.action); }));
list = list.filter(function (extension) extension.name == name);
AddonManager.getAddonsByTypes(["extension"], dactyl.wrapCallback(function (list) { if (!args.bang) list = list.filter(function (extension) extension.name == name); if (!args.bang && !list.every(ok)) return dactyl.echoerr("Permission denied"); if (command.actions) command.actions(list); else list.forEach(command.action); }));
indicator = "%"
indicator = "%";
context.fork(id, 0, this, function (context, [name, browsers]) { context.title = [name || "Buffers"]; context.generate = function () util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], id: i - 1, url: url, indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; }); }, vals);
chrome.bookmarks.getTree(function(tree){ var top = tree[0].children[1]; var ex; if(top.children.some(function(obj){
if(top.children.some(function(obj){
chrome.bookmarks.getTree(function(tree){ var top = tree[0].children[1]; var ex; if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){ ret.callback(ex); } else { chrome.bookmarks.create({ parentId: top.id, title : 'TBRL' }, function(obj){ ret.callback(obj); }); } });
ret.callback(ex); } else { chrome.bookmarks.create({ parentId: top.id, title : 'TBRL' }, function(obj){ ret.callback(obj); }); } });
chrome.bookmarks.getTree(function(tree){ var top = tree[0].children[1]; var ex; if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){ ret.callback(ex); } else { chrome.bookmarks.create({ parentId: top.id, title : 'TBRL' }, function(obj){ ret.callback(obj); }); } });
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.escapeRegex).join("|"), "g"); function highlight(item, text, i) process[i].call(this, item, template.highlightRegexp(text, re)); let process = [template.icon, function (item, k) k]; 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))));
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.escapeRegex).join("|"), "g"); function highlight(item, text, i) process[i].call(this, item, template.highlightRegexp(text, re)); let process = [template.icon, function (item, k) k]; context.process = [ function (item, text) highlight.call(this, item, item.text, 0), function (item, text) highlight.call(this, item, text, 1) ]; });
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,k,m){if(typeof k.getElementsByClassName!=="undefined"&&!m)return k.getElementsByClassName(h[1])};g=null}}})();var F=s.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g, h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ia=function(g,h){var k=[],m="",r;for(h=h.nodeType?[h]:h;r=n.match.PSEUDO.exec(g);){m+=r[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;r=0;for(var q=h.length;r<q;r++)p(g,h[r],k);return p.filter(m,k)};c.find=p;c.expr=p.selectors;c.expr[":"]=c.expr.filters;c.unique=p.uniqueSort;c.getText=a;c.isXMLDoc=x;c.contains=F})();var ab=/Until$/,bb=/^(?:parents|prevUntil|prevAll)/,
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,k,m){if(typeof k.getElementsByClassName!=="undefined"&&!m)return k.getElementsByClassName(h[1])};g=null}}})();var F=s.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ia=function(g,h){var k=[],m="",r;for(h=h.nodeType?[h]:h;r=n.match.PSEUDO.exec(g);){m+=r[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;r=0;for(var q=h.length;r<q;r++)p(g,h[r],k);return p.filter(m,k)};c.find=p;c.expr=p.selectors;c.expr[":"]=c.expr.filters;c.unique=p.uniqueSort;c.getText=a;c.isXMLDoc=x;c.contains=F})();var ab=/Until$/,bb=/^(?:parents|prevUntil|prevAll)/,
context.filters.push(function ({ item }) item.isActive && item.optionsURL);
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) extra = ["Disabled", "disabled"]; else if (e.pendingOperations & AddonManager.PENDING_INSTALL) extra = ["Enabled", "installed"]; else if (e.pendingOperations & AddonManager.PENDING_ENABLE) extra = ["Enabled", "enabled"]; else if (e.pendingOperations & AddonManager.PENDING_UPGRADE) extra = ["Enabled", "upgraded"]; if (extra) return <>&#xa0;(<span highlight={extra[0]}>{extra[1]}</span> &#xa0;on restart)</>; return <></>; } AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) commandline.commandOutput( template.tabular(["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + addonExtra(e), e.description] for ([, e] in Iterator(extensions))))); else if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); }); },
context.filters.push(function ({ item }) item.isActive && item.optionsURL);
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 (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); } } }, {
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(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' })
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) } }); });
extensions.sort(function (a, b) String.localeCompare(a.name, b.name));
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) liberator.echoerr("Exxx: No extension matching \"" + filter + "\""); else liberator.echoerr("No extensions installed"); } }); },
function () { events.onEscape(); });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function () { events.onEscape(); });
function() {return new XMLHttpRequest()},
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() {return new XMLHttpRequest()},
liberator.dump(extensions);
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensions); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) liberator.echoerr("Exxx: No extension matching \"" + filter + "\""); else liberator.echoerr("No extensions installed"); } }); },
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData)));
storage["history-search"].mutate("filter", function (item) !timespan.contains(item.timestamp));
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (host ? commands.hasDomain(item.value, host) : item.privateData)));
function (count) { buffer.scrollPages(-Math.max(count, 1)); },
function (count) { buffer._scrollByScrollSize(count, false); },
function (count) { buffer.scrollPages(-Math.max(count, 1)); },
dactyl.echoerr("Exxx: No extension matching \"" + filter + "\"");
dactyl.echoerr("Exxx: No extension matching " + filter.quote());
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching \"" + filter + "\""); else dactyl.echoerr("No extensions installed"); } });
$("no_dcc_registers").observe("click", function(ev) { $$(".dcc_registers_checkbox").each(function(element) {
$("no_ddu_registers").observe("click", function(ev) { $$(".ddu_registers_checkbox").each(function(element) {
$("no_dcc_registers").observe("click", function(ev) { $$(".dcc_registers_checkbox").each(function(element) { element.checked = false; }); });
function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, {
AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensions); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) liberator.echoerr("Exxx: No extension matching \"" + filter + "\""); else liberator.echoerr("No extensions installed"); } });
function (args) { Liberator.showHelpIndex("option-index", options, args.bang); }, {
AddonManager.getAddonsByTypes(["extension"], function (extensions) {
function (args) { AddonManager.getAddonsByTypes(["extension"], function (extensions) {
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); } });
},
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); } });
function (count) { buffer._scrollByScrollSize(count, true); },
function (count) { liberator.assert(count > 0 && count <= 100); buffer.scrollToPercent(buffer.scrollXPercent, count); },
function (count) { buffer._scrollByScrollSize(count, true); },
res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } else { var sug = $N('p', { class: 'suggestion' }, cand); } self.elmTags[cand] = sug; connect(sug, 'onclick', cand, function(ev){
connect(sug, 'onclick', cand, function(ev){
res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } else { var sug = $N('p', { class: 'suggestion' }, cand); } self.elmTags[cand] = sug; connect(sug, 'onclick', cand, function(ev){ if(hasElementClass(sug, 'used')){ self.removeWord(cand); removeElementClass(sug, 'used'); } else { self.injectCandidates(cand, true); } }); df.appendChild(sug); } });
df.appendChild(sug); } });
res[prop].forEach(function(cand){ var upCand = cand.toUpperCase(); if(!(upCand in suggestions)){ suggestions[upCand] = true; if(upCand in memo){ cand = memo[upCand]; var sug = $N('p', { class: 'suggestion listed' }, cand); } else { var sug = $N('p', { class: 'suggestion' }, cand); } self.elmTags[cand] = sug; connect(sug, 'onclick', cand, function(ev){ if(hasElementClass(sug, 'used')){ self.removeWord(cand); removeElementClass(sug, 'used'); } else { self.injectCandidates(cand, true); } }); df.appendChild(sug); } });
indicator = "%"
indicator = "%";
util.map(array.iterValues(browsers), function ([i, browser]) { let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; let tab = tabs.getTab(i); let url = browser.contentDocument.location.href; i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url], id: i - 1, url: url, indicator: indicator, icon: tab.image || DEFAULT_FAVICON }; });
function () { commandline.open(":", "goto ", modes.EX); });
function () { commandline.open("", "goto ", modes.EX); });
function () { commandline.open(":", "goto ", modes.EX); });
if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){
}, function(obj){ ret.callback(obj); });
if(top.children.some(function(obj){ if(obj.title === 'TBRL'){ ex = obj; return true; } else { return false; } })){
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0);
host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
context.filters[0] = function (item) !match.call(this, item);
some(function (t) !compare(tag, t))));
context.filters[0] = function (item) !match.call(this, item);
cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,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(Pa.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}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;
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
cb=/,/;R=Array.prototype.slice;var Fa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,i){return!!b.call(e,i,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(Pa.test(b))return c.filter(b,f,!d);else b=c.filter(b,a)}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;
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) extra = ["Disabled", "disabled"]; else if (e.pendingOperations & AddonManager.PENDING_INSTALL) extra = ["Enabled", "installed"]; else if (e.pendingOperations & AddonManager.PENDING_ENABLE) extra = ["Enabled", "enabled"]; else if (e.pendingOperations & AddonManager.PENDING_UPGRADE) extra = ["Enabled", "upgraded"]; if (extra) return <>&#xa0;(<span highlight={extra[0]}>{extra[1]}</span> &#xa0;on restart)</>; return <></>; } AddonManager.getAddonsByTypes(["extension"], function (extensions) {
AddonManager.getAddonsByTypes(["extension"], function (extensions) {
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) extra = ["Disabled", "disabled"]; else if (e.pendingOperations & AddonManager.PENDING_INSTALL) extra = ["Enabled", "installed"]; else if (e.pendingOperations & AddonManager.PENDING_ENABLE) extra = ["Enabled", "enabled"]; else if (e.pendingOperations & AddonManager.PENDING_UPGRADE) extra = ["Enabled", "upgraded"]; if (extra) return <>&#xa0;(<span highlight={extra[0]}>{extra[1]}</span> &#xa0;on restart)</>; return <></>; } AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) commandline.commandOutput( template.tabular(["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + addonExtra(e), e.description] for ([, e] in Iterator(extensions))))); else if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); }); },
},
function (args) { function addonExtra(e) { let extra; if (e.pendingOperations & AddonManager.PENDING_UNINSTALL) extra = ["Disabled", "uninstalled"]; else if (e.pendingOperations & AddonManager.PENDING_DISABLE) extra = ["Disabled", "disabled"]; else if (e.pendingOperations & AddonManager.PENDING_INSTALL) extra = ["Enabled", "installed"]; else if (e.pendingOperations & AddonManager.PENDING_ENABLE) extra = ["Enabled", "enabled"]; else if (e.pendingOperations & AddonManager.PENDING_UPGRADE) extra = ["Enabled", "upgraded"]; if (extra) return <>&#xa0;(<span highlight={extra[0]}>{extra[1]}</span> &#xa0;on restart)</>; return <></>; } AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); extensions.sort(function (a, b) String.localeCompare(a.name, b.name)); if (extensions.length > 0) commandline.commandOutput( template.tabular(["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + addonExtra(e), e.description] for ([, e] in Iterator(extensions))))); else if (filter) dactyl.echoerr("Exxx: No extension matching " + filter.quote()); else dactyl.echoerr("No extensions installed"); }); },
function () { liberator.loadPlugins(); },
function (args) { events.feedkeys(args.string, args.bang); },
function () { liberator.loadPlugins(); },
).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(); });
}).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(' __fp : $X(' noteBookGuide : $X(' };
).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 haystack = sortStringValues(a);
var haystack = sortStringValues(this, a);
.define("not-equals", t.BOOLEAN, [ t.NODE_SET, t.NODE_SET ], function(a, b) { var haystack = sortStringValues(a); return !eachAsString(this, b, function() { if (haystack[binarySearch(haystack, this)] != this) return false; }); })
extensions.sort(function (a, b) String.localeCompare(a.name, b.name));
AddonManager.getAddonsByTypes(["extension"], function (extensions) { if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) liberator.echoerr("Exxx: No extension matching \"" + filter + "\""); else liberator.echoerr("No extensions installed"); } });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function () { editor.expandAbbreviation(modes.COMMAND_LINE); });
function () { commandline.resetCompletions(); editor.expandAbbreviation(modes.COMMAND_LINE); return true; },
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
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() {return new ActiveXObject('Msxml2.XMLHTTP')},
liberator.dump(extensions);
AddonManager.getAddonsByTypes(["extension"], function (extensions) { liberator.dump(extensions); if (args[0]) extensions = extensions.filter(function (extension) extension.name.indexOf(args[0]) >= 0); liberator.dump(extensions); if (extensions.length > 0) { let list = template.tabular( ["Name", "Version", "Status", "Description"], [], ([template.icon({ icon: e.iconURL }, e.name), e.version, (e.isActive ? <span highlight="Enabled">enabled</span> : <span highlight="Disabled">disabled</span>) + ((e.userDisabled || e.appDisabled) == !e.isActive ? XML() : <>&#xa0;({e.userDisabled || e.appDisabled ? <span highlight="Disabled">disabled</span> : <span highlight="Enabled">enabled</span>} on restart) </>), e.description] for ([, e] in Iterator(extensions))) ); commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); } else { if (filter) liberator.echoerr("Exxx: No extension matching \"" + filter + "\""); else liberator.echoerr("No extensions installed"); } });
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
storage["history-command"].mutate("filter", function (item) !(timespan.contains(item.timestamp) && (!host || commands.hasDomain(item.value, host))));
commandline._messageHistory.filter(function (item) !timespan.contains(item.timestamp * 1000) || !item.domains && !item.privateData || host && (!item.domains || !item.domains.some(function (d) util.isSubdomain(d, host))));
BOOL: ArgType("boolean", function (val) Commands.parseBool(val)),
this.longNames = parsedSpecs.map(function (n) n[0]);
BOOL: ArgType("boolean", function (val) Commands.parseBool(val)),
function (args) { let url = args.length == 0 ? buffer.URL : args[0]; let title = args["-title"] || (args.length == 0 ? buffer.title : null); let keyword = args["-keyword"] || null; let tags = args["-tags"] || []; if (bookmarks.add(false, title, url, keyword, tags, args.bang)) { let extra = (title == url) ? "" : " (" + title + ")"; dactyl.echomsg({ domains: [util.getHost(url)], message: "Added bookmark: " + url + extra }, 1, commandline.FORCE_SINGLELINE); } else dactyl.echoerr("Exxx: Could not add bookmark " + title.quote(), commandline.FORCE_SINGLELINE); }, {
return dactyl.open(items.map(function (i) i.url), dactyl.NEW_TAB);
function (args) { let url = args.length == 0 ? buffer.URL : args[0]; let title = args["-title"] || (args.length == 0 ? buffer.title : null); let keyword = args["-keyword"] || null; let tags = args["-tags"] || []; if (bookmarks.add(false, title, url, keyword, tags, args.bang)) { let extra = (title == url) ? "" : " (" + title + ")"; dactyl.echomsg({ domains: [util.getHost(url)], message: "Added bookmark: " + url + extra }, 1, commandline.FORCE_SINGLELINE); } else dactyl.echoerr("Exxx: Could not add bookmark " + title.quote(), commandline.FORCE_SINGLELINE); }, {
function (args) { completion.listCompleter("macro", args[0]); }, {
this.timeout(function () { dactyl.echomsg("Canceled playback of macro '" + this._lastMacro + "'"); }, 100);
function (args) { completion.listCompleter("macro", args[0]); }, {
!freshnessLifetimeGreaterThan(headers, msInAMonth);
!freshnessLifetimeGreaterThan(headers, msInAMonth - 1);
function(url, headers, type) { // Its not reasonable to suggest that the favicon be a year // in the future because sometimes the path cannot be // controlled. However, it is very reasonable to suggest a // month. return type == 'favicon' && !hasHeader(headers, 'Set-Cookie') && !freshnessLifetimeGreaterThan(headers, msInAMonth); }),
function (args) { liberator.assert( args.bang || args.string, "E471: Argument required"); liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) quickmarks.removeAll(); else quickmarks.remove(args.string); },
let numberMarks = marks.filter(function (x) /[0-9]/.test(x)).sort();
function (args) { // TODO: finish arg parsing - we really need a proper way to do this. :) // assert(args.bang ^ args.string) liberator.assert( args.bang || args.string, "E471: Argument required"); liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) quickmarks.removeAll(); else quickmarks.remove(args.string); },
equals(view.$('.sc-inner').css("width"), "100%", 'width should be 100%');
equals(view.$('.sc-inner')[0].style.width, "100%", 'width should be 100%');
test("basic value 100", function() { var view = pane.view('progress basic value 100'); ok(!view.$().hasClass('disabled'), 'should NOT have disabled class'); ok(view.$('.sc-inner'), 'should have sc-inner class'); equals(view.$('.sc-inner').css("width"), "100%", 'width should be 100%'); equals(view.$('.sc-inner').width(), 250, 'pixel width '); });
equals(cq.hasClass("mixed"), NO, "should not all have mixed class");
var allHaveMixed = YES; cq.each(function(el){ if (!SC.$(el).hasClass('mixed')) allHaveMixed = NO; }); equals(allHaveMixed, NO, "should not all have mixed class");
test("setClass(mixed, YES) should work across multiple", function() { var cq = SC.$('<div class="root">\ <div class="mixed match"></div>\ <div class="match"></div>\ </div>').find('.match'); equals(cq.length, 2, 'should have two items'); equals(cq.hasClass("mixed"), NO, "should not all have mixed class"); cq.setClass("mixed", YES); equals(cq.hasClass("mixed"), YES, "now all should have mixed class") ;}) ;
allHaveMixed = YES; cq.each(function(el){ if (!SC.$(el).hasClass('mixed')) allHaveMixed = NO; });
test("setClass(mixed, YES) should work across multiple", function() { var cq = SC.$('<div class="root">\ <div class="mixed match"></div>\ <div class="match"></div>\ </div>').find('.match'); equals(cq.length, 2, 'should have two items'); equals(cq.hasClass("mixed"), NO, "should not all have mixed class"); cq.setClass("mixed", YES); equals(cq.hasClass("mixed"), YES, "now all should have mixed class") ;}) ;
bt_create_security_group.target.bind('click',function(){ bt_create_security_group.open();
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh');
bt_create_security_group.target.bind('click',function(){ bt_create_security_group.open(); });
SC.RunLoop.end();
test("handles timing function string", function(){ view.animate('left', 100, { duration: 1, timing: 'ease-in' }); equals(transitionFor(view), 'left 1s ease-in', 'uses ease-in timing'); });
cls.prototype = new proto(parent ? function(context, method, args) { var args = args || []; var target = proto; while(target = target.prototype) { if(target[method]) { return target[method].apply(context, args);
var Logger = exports.Class(function() { this.init = function(name, level) { this._name = name; this._level = level || logging.LOG; this._listener = exports.log; } this.setLevel = function(level) { this._level = level; } function makeLogFunction(level, type) { return function() { if (!production && level >= this._level) { return this._listener.apply(this._listener, [type, this._name].concat(SLICE.call(arguments))); } return arguments[0];
cls.prototype = new proto(parent ? function(context, method, args) { var args = args || []; var target = proto; while(target = target.prototype) { if(target[method]) { return target[method].apply(context, args); } } throw new Error('method ' + method + ' does not exist'); } : null);
throw new Error('method ' + method + ' does not exist'); } : null);
this.setListener = function(listener) { log = listener; } this.debug = makeLogFunction(logging.DEBUG, "DEBUG"); this.log = makeLogFunction(logging.LOG, "LOG"); this.info = makeLogFunction(logging.INFO, "INFO"); this.warn = makeLogFunction(logging.WARN, "WARN"); this.error = makeLogFunction(logging.ERROR, "ERROR"); });
cls.prototype = new proto(parent ? function(context, method, args) { var args = args || []; var target = proto; while(target = target.prototype) { if(target[method]) { return target[method].apply(context, args); } } throw new Error('method ' + method + ' does not exist'); } : null);
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds());
bt_instance_terminate.target.bind('click',function(){ bt_instance_terminate.open(c_list.getCheckedInstanceIds());
bt_instance_reboot.target.bind('click',function(){ bt_instance_reboot.open(c_list.getCheckedInstanceIds()); });
let alternate = tabs.alternate;
function (args) { let alternate = tabs.alternate; try { dactyl.execute(args[0], null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); } }, {
tabs.updateSelectionHistory([tabs.getTab(), alternate]);
dactyl.forceNewTab = force;
function (args) { let alternate = tabs.alternate; try { dactyl.execute(args[0], null, true); } finally { tabs.updateSelectionHistory([tabs.getTab(), alternate]); } }, {
ok(!r[0].hasClass('active'), 'radio button should no longer be active');
ok(!r.first().hasClass('active'), 'radio button should no longer be active');
test("pressing mouseDown and then mouseUp anywhere in a radio button should toggle the selection", function() { var elem = view.get('layer'), r = view.$('.sc-radio-button'); SC.Event.trigger(r[0], 'mousedown'); equals(view.get('value'), 'Red', 'value should not change yet'); ok(r.first().hasClass('active'), 'radio button should be active'); // simulate mouseUp and browser-native change to control SC.Event.trigger(r[0],'mouseup'); //input.attr('checked', NO); // loose focus of the element since it was changed SC.Event.trigger(r[1],'mousedown'); SC.Event.trigger(r[1],'mouseup'); ok(!r[0].hasClass('active'), 'radio button should no longer be active'); equals(view.get('value'), 'Green', 'value should be undefined (none checked)'); elem = null ;});
let msg = Array.map(arguments, function (msg) { if (typeof msg == "object") msg = util.objectToString(msg); return msg; }).join(", ");
setTimeout(function () { popup.hidePopup(); }, 20);
let msg = Array.map(arguments, function (msg) { if (typeof msg == "object") msg = util.objectToString(msg); return msg; }).join(", ");
}, function(){},_charts[i]);
this.Data.ajax_getData_sync('chartData_'+i, _charts[i].dataURL, _charts[i].dataURL_params(this.Data), getData, function(){},_charts[i]);
}, function(){},_charts[i]);
delayedCommandTimeout = null; },
createCompletionListPending = false; if (createCompletionListQueued) { createCompletionListQueued = false; delayedCommandTimeout = setTimeout(arguments.callee, options.displayDelayTime); } }, options.displayDelayTime);
function () { createCompletionList(); delayedCommandTimeout = null; },
ok(dataSource.isView, "Render delegate should get passed a view for its data source");
ok(dataSource.isViewRenderDelegateProxy, "Render delegate should get passed a view's proxy for its data source");
test("Views that do not override render should render their child views", function() { var newStyleCount = 0, oldStyleCount = 0, renderDelegateCount = 0; var parentView = SC.View.design({ childViews: 'newStyle oldStyle renderDelegateView'.w(), newStyle: SC.View.design({ render: function(context) { newStyleCount++; }, update: function() { // no op } }), oldStyle: SC.View.design({ render: function(context, firstTime) { oldStyleCount++; } }), renderDelegateView: SC.View.design({ renderDelegate: SC.Object.create({ render: function(dataSource, context) { ok(dataSource.isView, "Render delegate should get passed a view for its data source"); renderDelegateCount++; }, update: function() { // no op } }) }) }); parentView = parentView.create(); parentView.createLayer(); parentView.updateLayer(); equals(newStyleCount, 1, "calls render on new style view once"); equals(oldStyleCount, 1, "calls render on old style view once"); equals(renderDelegateCount, 1, "calls render on render delegate once");});
command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path;
command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path;
return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("WINNT")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this._cwd.path) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; // if there is only one \n at the end, chop it off else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || "";
cmd.write("cd " + escape(this._cwd.path) + "\n" +
cmd.write("cd " + escape(this.cwd) + "\n" +
return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("WINNT")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this._cwd.path) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; // if there is only one \n at the end, chop it off else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || "";
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input);
this.withSavedValues(["sourcing"], function () { this.sourcing = null; try { var file = io.File(filename);
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS.isWindows && !/sh/.test(options["shell"])) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(shell, options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(shell), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output) output = output.replace(/^(.*)\n$/, "$1"); return output; }) || "";
let shell = File.expandPath(options["shell"]); if (util.OS.isWindows && !/sh/.test(options["shell"])) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(shell, options["shellcmdflag"].split(/\s+/).concat(command), true);
if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3);
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS.isWindows && !/sh/.test(options["shell"])) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(shell, options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(shell), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output) output = output.replace(/^(.*)\n$/, "$1"); return output; }) || "";
else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(shell), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true);
catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message);
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS.isWindows && !/sh/.test(options["shell"])) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(shell, options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(shell), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output) output = output.replace(/^(.*)\n$/, "$1"); return output; }) || "";
let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output) output = output.replace(/^(.*)\n$/, "$1"); return output; }) || "";
finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } });
return this.withTempFiles(function (stdin, stdout, cmd) { if (input instanceof File) stdin = input; else if (input) stdin.write(input); let shell = File.expandPath(options["shell"]); // TODO: implement 'shellredir' if (util.OS.isWindows && !/sh/.test(options["shell"])) { command = "cd /D " + this.cwd + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(shell, options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this.cwd) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(shell), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; else if (output) output = output.replace(/^(.*)\n$/, "$1"); return output; }) || "";
[function (aIndex) { if (aIndex >= 0) { command.setClipboardText(collection[aIndex][HB_COMMENT]); } },
return uniq(tag.split(" ").filter(function (s) !!s)).map(function (t) "[" + t + "]").join("");
[function (aIndex) { if (aIndex >= 0) { command.setClipboardText(collection[aIndex][HB_COMMENT]); } },
Event.observe(dragger, 'mouseup', function() {
Event.observe(dragger, 'mousedown', function(evt) { offSet = resizedObj.getHeight()-Event.pointerY(evt); mouseMoveHandler = evtHandler.mouseMove.bindAsEventListener(evtHandler); Event.observe(dragger, 'mouseup', function() {
Event.observe(dragger, 'mouseup', function() { // unregister mouse move event handler Event.stopObserving(dragger, 'mousemove', mouseMoveHandler); });
Event.observe(dragger, 'mouseout', function() { Event.stopObserving(dragger, 'mousemove', mouseMoveHandler); }); Event.observe(dragger, 'mousemove', mouseMoveHandler); });
Event.observe(dragger, 'mouseup', function() { // unregister mouse move event handler Event.stopObserving(dragger, 'mousemove', mouseMoveHandler); });
$('#dataTable_0_paginate input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } );
$('#dataTable_'+elCnt+'_paginate input,#dataTable_'+elCnt+'_filter input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } );
$('#dataTable_0_paginate input').keyup( function() { _config.fnContentChange(this); if (_config.expandableRows) _expandClick(dTable); } );
function (args) { liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) events.deleteMacros(); else if (args.string) events.deleteMacros(args.string); else liberator.echoerr("E471: Argument required"); }, {
liberator.trapErrors(function () { commandline.onEvent(event); });
function (args) { liberator.assert(!args.bang || !args.string, "E474: Invalid argument"); if (args.bang) events.deleteMacros(); else if (args.string) events.deleteMacros(args.string); else liberator.echoerr("E471: Argument required"); }, {
if (_charts[i].ajax) thisRef.Data.ajax_getData_charts(_charts[i].dataURL, _charts[i].dataURL_params(thisRef.Data), function(data, chart){getData(data, chart);}, function(){},_charts[i]);}
}, function(){},_charts[i]);
if (_charts[i].ajax) thisRef.Data.ajax_getData_charts(_charts[i].dataURL, _charts[i].dataURL_params(thisRef.Data), function(data, chart){getData(data, chart);}, function(){},_charts[i]);}
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh');
bt_launch_instance.target.bind('click',function(){ var id = c_list.currentChecked(); if( id ){ bt_launch_instance.open(id); } return false;
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); });
test("isSelected should alter sel classname and sync with value property", function() { ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class');
test("isEnabled=NO should add disabled class", function() {
test("isSelected should alter sel classname and sync with value property", function() { // check initial render state ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); // update value -- make sure isSelected changes. SC.RunLoop.begin(); view.set('value', 0); // make falsy. (but not NO exactly) SC.RunLoop.end(); ok(!view.get('isSelected'), 'isSelected should now be NO'); ok(!view.$().hasClass('sel'), 'should no longer have sel class'); equals(view.$().attr('aria-checked'), 'false', 'input should not be checked'); // update isSelected -- make sure it edits the value SC.RunLoop.begin(); view.set('isSelected', YES); SC.RunLoop.end(); ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); equals(view.$().attr('aria-checked'), 'true', 'input should be checked');});
view.set('value', 0);
view.set('isEnabled', NO);
test("isSelected should alter sel classname and sync with value property", function() { // check initial render state ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); // update value -- make sure isSelected changes. SC.RunLoop.begin(); view.set('value', 0); // make falsy. (but not NO exactly) SC.RunLoop.end(); ok(!view.get('isSelected'), 'isSelected should now be NO'); ok(!view.$().hasClass('sel'), 'should no longer have sel class'); equals(view.$().attr('aria-checked'), 'false', 'input should not be checked'); // update isSelected -- make sure it edits the value SC.RunLoop.begin(); view.set('isSelected', YES); SC.RunLoop.end(); ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); equals(view.$().attr('aria-checked'), 'true', 'input should be checked');});
ok(!view.get('isSelected'), 'isSelected should now be NO'); ok(!view.$().hasClass('sel'), 'should no longer have sel class'); equals(view.$().attr('aria-checked'), 'false', 'input should not be checked'); SC.RunLoop.begin(); view.set('isSelected', YES); SC.RunLoop.end(); ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); equals(view.$().attr('aria-checked'), 'true', 'input should be checked');
ok(view.$().hasClass('disabled'), 'should have disabled class');
test("isSelected should alter sel classname and sync with value property", function() { // check initial render state ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); // update value -- make sure isSelected changes. SC.RunLoop.begin(); view.set('value', 0); // make falsy. (but not NO exactly) SC.RunLoop.end(); ok(!view.get('isSelected'), 'isSelected should now be NO'); ok(!view.$().hasClass('sel'), 'should no longer have sel class'); equals(view.$().attr('aria-checked'), 'false', 'input should not be checked'); // update isSelected -- make sure it edits the value SC.RunLoop.begin(); view.set('isSelected', YES); SC.RunLoop.end(); ok(view.get('isSelected'), 'isSelected should match value'); ok(view.$().hasClass('sel'), 'should have sel class'); equals(view.$().attr('aria-checked'), 'true', 'input should be checked');});
this._walk(container_nodes, function(n) { if (n.nodeType == 3 && !parent.isMarkedNode(n)) nl.push(n);
this.map(this.ignore_types, function(type) { types[type] = 1;
this._walk(container_nodes, function(n) { if (n.nodeType == 3 && !parent.isMarkedNode(n)) nl.push(n); });
equals(context.classNames(), result, "should reuse same instance thereafter");
test("extracts class names from element on first retrieval", function() { var elem = document.createElement('div'); SC.$(elem).attr('class', 'foo bar'); context = SC.RenderContext(elem); var result = context.classNames(); same(result, ['foo', 'bar'], 'extracted class names'); equals(context.classNames(), result, "should reuse same instance thereafter");});
url:DcmgrGUI.Util.getPagePath('/volumes/list/',check_id)
url:DcmgrGUI.Util.getPagePath('/volumes/show/',check_id)
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/volumes/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) //update detail $.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/volumes/list/',check_id) },true); }); });
var CSPError = Class(AssertionError, function (supr) { this.name = 'CSPError' this.init = function (code) { supr(this, 'init', args); this.code = code; var args = Array.prototype.slice.call(arguments, 1); }; });
.addCallback(function(content){ response.sendHeader(200, {'Content-Type' : 'text/plain', 'Content-Length' : content.length}); response.sendBody(content); response.finish(); })
var CSPError = Class(AssertionError, function (supr) { this.name = 'CSPError' this.init = function (code/*, other args */) { supr(this, 'init', args); this.code = code; var args = Array.prototype.slice.call(arguments, 1); }; });
$.each(c_list.checked_list,function(check_id,obj){
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/volumes/show/',c_pagenate.current_page); c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) $.each(c_list.checked_list,function(check_id,obj){
$.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/volumes/detail/',check_id) },true); });
});
$.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/volumes/detail/',check_id) },true); });
if (dactyl.has("Win32")) {
if (dactyl.has("WINNT")) {
return this.withTempFiles(function (stdin, stdout, cmd) { if (input) stdin.write(input); // TODO: implement 'shellredir' if (dactyl.has("Win32")) { command = "cd /D " + this._cwd.path + " && " + command + " > " + stdout.path + " 2>&1" + " < " + stdin.path; var res = this.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true); } else { cmd.write("cd " + escape(this._cwd.path) + "\n" + ["exec", ">" + escape(stdout.path), "2>&1", "<" + escape(stdin.path), escape(options["shell"]), options["shellcmdflag"], escape(command)].join(" ")); res = this.run("/bin/sh", ["-e", cmd.path], true); } let output = stdout.read(); if (res > 0) output += "\nshell returned " + res; // if there is only one \n at the end, chop it off else if (output && output.indexOf("\n") == output.length - 1) output = output.substr(0, output.length - 1); return output; }) || "";
if (!el.hasClassName("broadcast")) el.disabled = false;
if (!el.hasClassName("broadcast")) el.enable();
$$("input[chip=\"" + ev.element().readAttribute("chip") + "\"]").each(function(el) { if (!el.hasClassName("broadcast")) el.disabled = false; });
}, function(res){ d.callback(res);
connect(window, 'onDOMContentLoaded', window, function(ev){ getSelected().addCallback(function(tab){ if(isPopup && background.TBRL.Popup.contents[tab.url]){ main.callback(background.TBRL.Popup.contents[tab.url]); } else if(isPopup){ getPsInfo(tab).addCallback(function(ps){ main.callback(ps); }); } else { main.callback(ps); }
}, function(res){ d.callback(res); });
});
}, function(res){ d.callback(res); });
var binding = this.bindings.results.bindings.filter(function(el) { return el.binding.value == variables[i].binding.value; } )[0];
var bindingType = Report.bindingTypes.results.bindings.filter(function(el) { return el.type.value == variables[i].bindingType.value; } )[0];
var binding = this.bindings.results.bindings.filter(function(el) { return el.binding.value == variables[i].binding.value; } )[0];
io.withSavedValues(["sourcing"], function () { io.sourcing = sourcing || io.sourcing; command.execute(args, modifiers); });
let files = findHelpFile("all").map(function (doc) [f.value for (f in util.evaluateXPath("
io.withSavedValues(["sourcing"], function () { io.sourcing = sourcing || io.sourcing; command.execute(args, modifiers); });