rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
isFirstTime = NO; view.prepareContext(context, NO); equals(runCount, 1, 'did invoke render()');
view.set('isVisible', NO); view.prepareContext(context, YES); ok(context.hasClass('hidden'), 'should have hidden class');
test("invokes render() passing context & firstTime", function() { var runCount = 0; var context, isFirstTime ; var view = SC.View.create({ render: function(theContext, firstTime) { equals(context, theContext, 'context passed'); equals(firstTime, isFirstTime, 'firstTime passed'); runCount++; } }) ; co...
$.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('/security_groups/detail/',check_id) },true); });
c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); });
$.each(c_list.checked_list,function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/security_groups/detail/',check_id) },true); ...
return window.setTimeout(function() { return __method.apply(__method, args); }, timeout);
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
return window.setTimeout(function() { return __method.apply(__method, args); }, timeout);
commands.forEach(function (cmd) editor.executeCommand(cmd, 1)); modes.push(modes.INSERT); });
if (typeof count != "number" || count < 1) count = 1; editor.executeCommand(textEditCommand, count); },
function (count) { commands.forEach(function (cmd) editor.executeCommand(cmd, 1)); modes.push(modes.INSERT); });
$.each(c_list.checked_list,function(check_id,obj){
bt_refresh.element.bind('dcmgrGUI.refresh',function(){ list_request.url = DcmgrGUI.Util.getPagePath('/instances/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){ //todo:remove trigger event for detail $($('#detail').find('#'+check_id)).remove(); //todo:update trigger event for detail c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/instances/detail/',chec...
});
$.each(c_list.checked_list,function(check_id,obj){ //todo:remove trigger event for detail $($('#detail').find('#'+check_id)).remove(); //todo:update trigger event for detail c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/instances/detail/',chec...
args = args[0];
args = args[0] || "";
function (args) { let special = args.bang; args = args[0]; // assert(special ^ args) dactyl.assert( special || args, "E471: Argument required"); dactyl.assert(!special || !args, "E474: Invalid argument"); let matches ...
q.sort(function (a, b) { return a - b; });
$.getJSON(this.DATA_DIR + this.encode(prefix) + this.JSON, null, function (data) { data.prefix = prefix; me._dict = data; if (callback) { callback(schema); } });
q.sort(function (a, b) { return a - b; });
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}) $....
$.each(c_list.checked_list,function(check_id,obj){
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_...
});
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_...
let files = findHelpFile("all").map(function (doc) [f.value for (f in util.evaluateXPath("
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20);
let files = findHelpFile("all").map(function (doc) [f.value for (f in util.evaluateXPath("//dactyl:include/@href", doc))]);
let url = util.readFromClipboard(); dactyl.assert(url); dactyl.open(url);
dactyl.open(util.readFromClipboard(), dactyl[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]);
function () { let url = util.readFromClipboard(); dactyl.assert(url); dactyl.open(url); });
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (match) { let computedStyle = util.computedStyle(match);
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { if (elem.readOnly || elem instanceof HTMLInputElement && ["text", "password", "file"].indexOf(elem.type) < 0) return false; let computedStyle = util.computedStyle(elem);
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (match) { let computedStyle = util.computedStyle(match); return computedStyle.visibility != "hidden" && computedStyle.display != "none"; });
registers.each(function(register) {
$("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")); } }); var registers = new Array(); $$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readA...
registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); });
template.map(util.range(0, options["maxitems"] * 2), function (i) <div highlight="CompItem NonText"> <li>~</li> </div>)
this.timeout(function () { this._container.height -= commandline.getSpaceNeeded(); }, 0);
template.map(util.range(0, options["maxitems"] * 2), function (i) <div highlight="CompItem NonText"> <li>~</li> </div>)
if (args.bang) liberator.open("about:"); else liberator.echo(template.commandOutput(<>{config.name} {liberator.version} running on:<br/>{navigator.userAgent}</>)); }, {
let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function (args) { if (args.bang) liberator.open("about:"); else liberator.echo(template.commandOutput(<>{config.name} {liberator.version} running on:<br/>{navigator.userAgent}</>)); }, {
function () { dactyl.restart(); },
function (args) { if (dactyl.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else dactyl.quit(false, args.bang); }, {
function () { dactyl.restart(); },
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (match) {
function (count) { if (count < 1 && buffer.lastInputField) buffer.focusElement(buffer.lastInputField); else { let xpath = ["input[not(@type) or @type='text' or @type='password' or @type='file']", "textarea[not(@disabled) and not(@readonly)]", "iframe"]; let elements = [m for (m in util.evaluateXPath(xpath))].filter(fu...
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (match) { if (match instanceof HTMLIFrameElement && !Editor.windowIsEditable(match.contentWindow)) return false; let computedStyle = util.computedStyle(mat...
liberator.assert(elements.length > 0); buffer.focusElement(elements[util.Math.constrain(count, 1, elements.length) - 1]); } },
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (match) { if (match instanceof HTMLIFrameElement && !Editor.windowIsEditable(match.contentWindow)) return false; let computedStyle = util.computedStyle(mat...
$("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")); } }); var registers = new Array(); $$(".dcc_registers_checkbox").each( function(e) {
$$(".dcc_registers_checkbox").each( function(e) {
$("dcc_display_button").observe("click", function(ev) { // The crates/slots to read var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); // The registers to read var registers = new Array(); $$(".dcc_registers_checkbox").e...
($$(".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("inpu...
$("dcc_display_button").observe("click", function(ev) { // The crates/slots to read var fmmids = new Array(); $$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } }); // The registers to read var registers = new Array(); $$(".dcc_registers_checkbox").e...
if (elem.readOnly || elem instanceof HTMLInputElement && ["text", "password", "file"].indexOf(elem.type) < 0)
if (elem.readOnly || elem instanceof HTMLInputElement && ["file", "search", "text", "password"].indexOf(elem.type) < 0)
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (elem) { if (elem.readOnly || elem instanceof HTMLInputElement && ["text", "password", "file"].indexOf(elem.type) < 0) return false; let computedStyle = ut...
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(/...
tags : getTags('yourtags').map(function(tag){ return { name : tag, frequency : -1 } })
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="(.+?)"/), ...
return request(this.URL + '/account/settings').addCallback(function(res){ var html = res.responseText; if(~html.indexOf('login')) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); return { authenticity_token : html.extract(/authenticity_token.+value="(.+?)"/), siv : html.extract(/...
return Twitter.getToken().addCallback(function(ps){ ps._method = 'delete'; return request(self.URL + '/status/destroy/' + id, { referrer : self.URL + '/', sendContent : ps });
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="(.+?)"/), ...
function (tok) contains(item.url, tok) || contains(item.title, tok)));
function (item, text) highlight.call(this, item, text, 1) ];
function (tok) contains(item.url, tok) || contains(item.title, tok)));
function (count) { buffer.scrollToPercent(null, count != null ? count : 100); },
function (count) { buffer.scrollToPercent(null, count != null ? count : 0); },
function (count) { buffer.scrollToPercent(null, count != null ? count : 100); },
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],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>","...
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
function (args) { if (dactyl.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else dactyl.quit(false, args.bang); }, {
function () { dactyl.restart(); },
function (args) { if (dactyl.has("tabs")) tabs.remove(config.browser.mCurrentTab, 1, false, 1); else dactyl.quit(false, args.bang); }, {
}).addCallback(function(res){ return $X('descendant::reading/text()', res); });
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){
}).addCallback(function(res){ return $X('descendant::reading/text()', res); });
function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function () { liberator.restart(); },
function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function () !atEnd(-1), BEEP);
function () { Buffer.scrollVertical(body(), "lines", 1); },
function () !atEnd(-1), BEEP);
$w('positionedOffset viewportOffset').each(function(method) { Element.Methods[method] = Element.Methods[method].wrap( function(proceed, element) { element = $(element); try { element.offsetParent } catch(e) { return Element._returnOffset(0,0) } var position = element.getStyle('position'); if (position !== 'static') ret...
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(...
$w('positionedOffset viewportOffset').each(function(method) { Element.Methods[method] = Element.Methods[method].wrap( function(proceed, element) { element = $(element); try { element.offsetParent } catch(e) { return Element._returnOffset(0,0) } var position = element.getStyle('posi...
dactyl.open(url, { from: "paste", where: dactyl.NEW_TAB });
dactyl.open(url);
function () { let url = util.readFromClipboard(); dactyl.assert(url); dactyl.open(url, { from: "paste", where: dactyl.NEW_TAB }); });
dactyl.assert(args.count > 0 && count <= 100); buffer.scrollToPercent(null, count);
dactyl.assert(args.count > 0 && args.count <= 100); buffer.scrollToPercent(null, args.count);
function (args) { dactyl.assert(args.count > 0 && count <= 100); buffer.scrollToPercent(null, count); },
data.crates.each(function(crate) { var crateNumber = crate.number; crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_...
$$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid"));
data.crates.each(function(crate) { var crateNumber = crate.number; crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClass...
ddu.fibers.each(function(fiber) { var fiberNumber = fiber.number; var fiberElement; if (fiberElement = $("crate_" + crateNumber + "_slot_" + slotNumber + "_fiber_" + fiberNumber)) { fiberElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("que...
data.crates.each(function(crate) { var crateNumber = crate.number; crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClass...
crate.dccs.each(function(dcc) { var slotNumber = dcc.slot; var dccElement; if (dccElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dccElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(dcc.status); }...
data.crates.each(function(crate) { var crateNumber = crate.number; crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClass...
function (args) { Liberator.showHelpIndex("normal-index", mappings, args.bang); }, {
function (toolbar) toolbar.collapsed = false,
function (args) { Liberator.showHelpIndex("normal-index", mappings, args.bang); }, {
function (args) { let toolbar = findToolbar(args[0]); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function () { dactyl.restart(); },
function (args) { let toolbar = findToolbar(args[0]); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function () { liberator.open(util.readFromClipboard(), liberator[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]); });
let elements = [m for (m in util.evaluateXPath(xpath))].filter(function (match) { if (match instanceof HTMLIFrameElement && !Editor.windowIsEditable(match.contentWindow)) return false; let computedStyle = util.computedStyle(match); return computedStyle.visibility != "hidden" && computedStyle.display != "none"; });
function () { liberator.open(util.readFromClipboard(), liberator[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]); });
$$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); }
fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid}));
$$(".dcc_checkbox").each( function(e) { if (e.checked == true) { fmmids.push(e.readAttribute("fmmid")); } });
ps._method = 'delete'; return request(self.URL + '/status/destroy/' + id, {
return request(self.URL + '/favourings/create/' + id, {
return Twitter.getToken().addCallback(function(ps){ ps._method = 'delete'; return request(self.URL + '/status/destroy/' + id, { //denyRedirection: true, referrer : self.URL + '/', sendContent : ps }); });
function (item, text) highlight.call(this, item, item.text, 0),
function (args) { commandline.commandOutput( <div highlight="Completions"> { template.completionRow(["Context", "Title"], "CompTitle") } { template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) } </div>); },
function (item, text) highlight.call(this, item, item.text, 0),
events.checkFocus();
function (args) { let toolbar = findToolbar(args[0] || ""); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function (count) { dactyl.assert(count > 0 && count <= 100); buffer.scrollToPercent(null, count); },
function (count) { buffer.scrollToPercent(null, count != null ? count : 100); },
function (count) { dactyl.assert(count > 0 && count <= 100); buffer.scrollToPercent(null, count); },
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
c(this);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.text(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...
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
function () { dactyl.restart(); },
function (args) { let toolbar = findToolbar(args[0] || ""); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); events.checkFocus(); }, {
function () { dactyl.restart(); },
let vbs = options.get("verbose"); let value = vbs.value; let setFrom = vbs.setFrom; try { vbs.set(args.count || 1); vbs.setFrom = null; liberator.execute(args[0], null, true); } finally { vbs.set(value); vbs.setFrom = setFrom; }
if (args.bang) liberator.open("about:"); else liberator.echo(template.tabular([{ header: "Version Information", style: "font-weight: bold; padding-left: 2ex", colspan: 2 }], [[config.name + ":", liberator.version], [config.hostApplication + ":", navigator.userAgent]]));
function (args) { let vbs = options.get("verbose"); let value = vbs.value; let setFrom = vbs.setFrom; try { vbs.set(args.count || 1); vbs.setFrom = null; liberator.execute(args[0], null, true...
return this.getKanaReadings(str).addCallback(function(rs){ return rs.join('\u0000').toRoma().split('\u0000');
}).addCallback(function(token){ return request(url, { sendContent: { 'form_key': token, 'bookmark[url]': ps.itemUrl, 'bookmark[title]': ps.item, 'bookmark[selection]': joinText([ps.body, ps.description]) } });
return this.getKanaReadings(str).addCallback(function(rs){ return rs.join('\u0000').toRoma().split('\u0000'); });
var haystack = sortStringValues(b);
var haystack = sortStringValues(this, b);
.define("greater-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) > 0) return false; }); })
function (toolbar) toolbar.collapsed = false,
function (args) { let toolbar = findToolbar(args[0]); liberator.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function (toolbar) toolbar.collapsed = false,
function () { Buffer.scrollVertical(body(), "lines", 1); },
function () !atEnd(1), DROP);
function () { Buffer.scrollVertical(body(), "lines", 1); },
function(proceed, element) { element = $(element); try { element.offsetParent } catch(e) { return Element._returnOffset(0,0) } var position = element.getStyle('position'); if (position !== 'static') return proceed(element); var offsetParent = element.getOffsetParent(); if (offsetParent && offsetParent.getStyle('posit...
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
function(proceed, element) { element = $(element); try { element.offsetParent } catch(e) { return Element._returnOffset(0,0) } var position = element.getStyle('position'); if (position !== 'static') return proceed(element); // Trigger hasLayout on the offset parent so tha...
function () { tabs.reload(config.browser.mCurrentTab, false); });
function () { let url = util.readFromClipboard(); dactyl.assert(url); dactyl.open(url, { from: "paste", where: dactyl.NEW_TAB }); });
function () { tabs.reload(config.browser.mCurrentTab, false); });
crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(ddu.status);
$$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name"));
crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(ddu...
function (count) { buffer.shiftFrameFocus(Math.max(count, 1), false); },
function (count) { buffer.shiftFrameFocus(Math.max(count, 1)); },
function (count) { buffer.shiftFrameFocus(Math.max(count, 1), false); },
setTimeout(function () { liberator.help(); options.setPref(firstTime, false); }, 1000);
function (item) item.item.collapsed);
setTimeout(function () { liberator.help(); options.setPref(firstTime, false); }, 1000);
function (toolbar) toolbar.collapsed = false,
function (args) { let toolbar = findToolbar(args[0]); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function (toolbar) toolbar.collapsed = false,
let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url);
liberator.open(util.readFromClipboard(), liberator[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]);
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url); });
$$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); }
registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register}));
$$(".dcc_registers_checkbox").each( function(e) { if (e.checked == true) { registers.push(e.readAttribute("name")); } });
liberator.echo(template.genericOutput("Version Information", <>{config.name} {liberator.version} running on:<br/>{navigator.userAgent}</>));
liberator.echo(template.tabular("Version Information", ["font-weight: bold; padding-left: 2ex"], [[config.name + ":", liberator.version], [config.hostApplication + ":", navigator.userAgent]]));
function (args) { if (args.bang) liberator.open("about:"); else liberator.echo(template.genericOutput("Version Information", <>{config.name} {liberator.version} running on:<br/>{navigator.userAgent}</>)); }, {
return Twitter.getToken().addCallback(function(ps){ return request(self.URL + '/favourings/create/' + id, { referrer : self.URL + '/', sendContent : ps });
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 Twitter.getToken().addCallback(function(ps){ return request(self.URL + '/favourings/create/' + id, { //denyRedirection: true, referrer : self.URL + '/', sendContent : ps }); });
function (item, text) highlight.call(this, item, text, 1) ];
{ template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) }
function (item, text) highlight.call(this, item, text, 1) ];
let toolbar = findToolbar(args[0]);
let toolbar = findToolbar(args[0] || "");
function (args) { let toolbar = findToolbar(args[0]); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); }, {
function (count) { buffer._scrollByScrollSize(count, true); },
function (count) { dactyl.assert(count > 0 && count <= 100); buffer.scrollToPercent(null, count); },
function (count) { buffer._scrollByScrollSize(count, true); },
function (args) { let toolbar = findToolbar(args[0] || ""); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); events.checkFocus(); }, {
function (toolbar) toolbar.collapsed = false,
function (args) { let toolbar = findToolbar(args[0] || ""); dactyl.assert(toolbar, "E474: Invalid argument"); action(toolbar); events.checkFocus(); }, {
function (args) { if (args.bang) liberator.open("about:"); else liberator.echo(template.tabular([{ header: "Version Information", style: "font-weight: bold; padding-left: 2ex", colspan: 2 }], [[config.name + ":", liberator.version], [config.hostApplication + ":", navigator.userAgent]])); }, {
function (args) { Liberator.showHelpIndex("normal-index", mappings, args.bang); }, {
function (args) { if (args.bang) liberator.open("about:"); else liberator.echo(template.tabular([{ header: "Version Information", style: "font-weight: bold; padding-left: 2ex", colspan: 2 }], ...
return request('http: if(res.responseText.indexOf('login_form')!=-1) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); var doc = createHTML(res.responseText); return formContents($X('id("addbookmark")/descendant::div[contains(concat(" ",normalize-space(@class)," ")," bd ")]', doc)[0]); }).addCal...
}).addCallback(function(res){ return res.responseXML; });
return request('http://bookmarks.yahoo.co.jp/action/post').addCallback(function(res){ if(res.responseText.indexOf('login_form')!=-1) throw new Error(chrome.i18n.getMessage('error_notLoggedin', self.name)); var doc = createHTML(res.responseText); return formContents($X('id("addbookmark")/descen...
function (item) item.item.collapsed);
function (toolbar) toolbar.collapsed = false,
function (item) item.item.collapsed);
function () !atEnd(1), DROP);
function () { Buffer.scrollVertical(body(), "pages", .5); },
function () !atEnd(1), DROP);
function(proceed, element) { try { element.offsetParent } catch(e) { return Element._returnOffset(0,0) } return proceed(element); }
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
function(proceed, element) { try { element.offsetParent } catch(e) { return Element._returnOffset(0,0) } return proceed(element); }
liberator.open(url, { from: "activate", where: liberator.NEW_TAB });
liberator.open(url, { from: "paste", where: liberator.NEW_TAB });
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url, { from: "activate", where: liberator.NEW_TAB }); });
function (count) { buffer.findLink("next", options["nextpattern"], (count || 1) - 1, true); },
function (count) { buffer.shiftFrameFocus(Math.max(count, 1), false); },
function (count) { buffer.findLink("next", options["nextpattern"], (count || 1) - 1, true); },
function () { tabs.reload(config.browser.mCurrentTab, true); });
function () { tabs.reload(config.browser.mCurrentTab, false); });
function () { tabs.reload(config.browser.mCurrentTab, true); });
ddu.fibers.each(function(fiber) { var fiberNumber = fiber.number; var fiberElement; if (fiberElement = $("crate_" + crateNumber + "_slot_" + slotNumber + "_fiber_" + fiberNumber)) { fiberElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("que...
fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); });
ddu.fibers.each(function(fiber) { var fiberNumber = fiber.number; var fiberElement; if (fiberElement = $("crate_" + crateNumber + "_slot_" + slotNumber + "_fiber_" + fiberNumber)) { fiberElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").remo...
function (count) { buffer.findLink("next", options["nextpattern"], (count || 1) - 1, true); },
function (count) { buffer.shiftFrameFocus(-Math.max(count, 1)); },
function (count) { buffer.findLink("next", options["nextpattern"], (count || 1) - 1, true); },
liberator.commandLineOptions.preCommands.forEach(function (cmd) { liberator.execute(cmd); });
function (toolbar) toolbar.collapsed = true,
liberator.commandLineOptions.preCommands.forEach(function (cmd) { liberator.execute(cmd); });
liberator.open(url, { from: "paste", where: liberator.NEW_TAB });
liberator.open(url);
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url, { from: "paste", where: liberator.NEW_TAB }); });
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 + ')')); });
tags : getTags('yourtags').map(function(tag){ return { name : tag, frequency : -1 } })
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 + ')')); });
fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid}));
data.crates.each(function(crate) { var crateNumber = crate.number; crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_...
fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); });
crate.dccs.each(function(dcc) { var slotNumber = dcc.slot; var dccElement; if (dccElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dccElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(dcc.status); }...
fmmids.each(function(fmmid) { fakeForm.insert(new Element("input", {"name": "fmmid", "value": fmmid})); });
return request(this.URL + '/direct_messages/recipients_list?twttr=true').addCallback(function(res){ return map(function(pair){
return map(function(pair){
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 + '/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 (args) { commandline.commandOutput( <div highlight="Completions"> { template.completionRow(["Context", "Title"], "CompTitle") } { template.map(completion.contextList || [], function (item) template.completionRow(item, "CompItem")) } </div>); },
test = function (val) this.value.some(function (value) this.checkHas(value, val), this);
function (args) { commandline.commandOutput( <div highlight="Completions"> { template.completionRow(["Context", "Title"], "CompTitle") } { template.map(completion.contextList || [], function (item) template.completionRow(item, "...
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(...
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
function (args) { Liberator.showHelpIndex("normal-index", mappings, args.bang); }, {
setTimeout(function () { liberator.help(); options.setPref(firstTime, false); }, 1000);
function (args) { Liberator.showHelpIndex("normal-index", mappings, args.bang); }, {
}).addCallback(function(fs){ return request('http: sendContent : { title : ps.item, url : ps.itemUrl, desc : joinText([ps.body, ps.description], ' ', true), tags : ps.tags? ps.tags.join(' ') : '', crumbs : fs.crumbs, visibility : ps.private===null? fs.visibility : (ps.private? 0 : 1) } });
}).addCallback(function(res){ return $X('descendant::reading/text()', res);
}).addCallback(function(fs){ return request('http://bookmarks.yahoo.co.jp/action/post/done', { //denyRedirection: true, sendContent : { title : ps.item, url : ps.itemUrl, desc : joinText([ps.body, ps.description], ' ', true), tags : ps....
var haystack = sortStringValues(b);
var haystack = sortStringValues(this, b);
.define("greater-than-or-equal", t.BOOLEAN, [ t.NODE_SET, t.NODE_SET ], function(a, b) { var haystack = sortStringValues(b); return !eachAsString(this, a, function() { var insertIndex = binarySearch(haystack, this); if (insertIndex > 0 || haystack[insertIn...
function (toolbar) toolbar.collapsed = true,
function (item) item.item.collapsed);
function (toolbar) toolbar.collapsed = true,
function () { Buffer.scrollVertical(body(), "pages", .5); },
function () atEnd(1), BEEP);
function () { Buffer.scrollVertical(body(), "pages", .5); },
'encType maxLength readOnly longDesc frameBorder').each(function(attr) { Element._attributeTranslations.write.names[attr.toLowerCase()] = attr; Element._attributeTranslations.has[attr.toLowerCase()] = attr; });
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(...
'encType maxLength readOnly longDesc frameBorder').each(function(attr) { Element._attributeTranslations.write.names[attr.toLowerCase()] = attr; Element._attributeTranslations.has[attr.toLowerCase()] = attr; });
buffer.findLink("previous", options["previouspattern"], (count || 1) - 1, true);
buffer.findLink("next", options["nextpattern"], (count || 1) - 1, true);
function (count) { buffer.findLink("previous", options["previouspattern"], (count || 1) - 1, true); },
function () { let sel = buffer.getCurrentWord(); dactyl.assert(sel); util.copyToClipboard(sel, true); });
function () { tabs.reload(config.browser.mCurrentTab, true); });
function () { let sel = buffer.getCurrentWord(); dactyl.assert(sel); util.copyToClipboard(sel, true); });
crate.dccs.each(function(dcc) { var slotNumber = dcc.slot; var dccElement; if (dccElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dccElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(dcc.status); }...
registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register}));
crate.dccs.each(function(dcc) { var slotNumber = dcc.slot; var dccElement; if (dccElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dccElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(dcc...
setTimeout(function () { let extensionName = config.name.toUpperCase(); let init = services.get("environment").get(extensionName + "_INIT"); let rcFile = io.getRCFile("~"); if (liberator.commandLineOptions.rcFile) { let filename = liberator.commandLineOptions.rcFile; if (!/^(NONE|NORC)$/.test(filename)) io.source(io.F...
function (item) !item.item.collapsed);
setTimeout(function () { let extensionName = config.name.toUpperCase(); let init = services.get("environment").get(extensionName + "_INIT"); let rcFile = io.getRCFile("~"); if (liberator.commandLineOptions.rcFile) { let filename = liberator.commandLineO...
function () { tabs.reload(config.browser.mCurrentTab, false); });
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url, { from: "paste", where: liberator.NEW_TAB }); });
function () { tabs.reload(config.browser.mCurrentTab, false); });
registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register}));
crate.ddus.each(function(ddu) { var slotNumber = ddu.slot; var dduElement; if (dduElement = $("crate_" + crateNumber + "_slot_" + slotNumber)) { dduElement.removeClassName("ok").removeClassName("error").removeClassName("warning").removeClassName("error_black").removeClassName("questionable").addClassName(ddu.status); }...
registers.each(function(register) { fakeForm.insert(new Element("input", {"name": "reg", "value": register})); });
return map(function(pair){ return {id:pair[0], name:pair[1]}; }, JSON.parse('(' + res.responseText + ')'));
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 map(function(pair){ return {id:pair[0], name:pair[1]}; }, JSON.parse('(' + res.responseText + ')'));
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(...
wrapInner:function(a){return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:func...
setTimeout(function () { liberator.help(); options.setPref(firstTime, false); }, 1000);
liberator.commandLineOptions.preCommands.forEach(function (cmd) { liberator.execute(cmd); });
setTimeout(function () { liberator.help(); options.setPref(firstTime, false); }, 1000);