code
stringlengths
1
2.08M
language
stringclasses
1 value
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; function reportError(e) { dump("dactyl: command-line-handler: " + e + "\n" + (e.stack || Error().stack)); Cu.reportError(e); } va...
JavaScript
// Copyright (c) 2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2009 by Prathyush Thota <prathyushthota@gmail.com> // Copyright (c) 2009-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2009-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under...
JavaScript
// Copyright (c) 2009 by Prathyush Thota <prathyushthota@gmail.com> // Copyright (c) 2009 by Doug Kearns <dougkearns@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; // TODO: flesh this out const Library = Module(...
JavaScript
// Copyright (c) 2009 by Prathyush Thota <prathyushthota@gmail.com> // Copyright (c) 2009 by Doug Kearns <dougkearns@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; const Player = Module("player", { init: fun...
JavaScript
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; function reportError(e) { dump("dactyl: command-line-handler: " + e + "\n" + (e.stack || Error().stack)); Cu.reportError(e); } va...
JavaScript
pref("extensions.dactyl.name", "melodactyl"); pref("extensions.dactyl.appName", "Melodactyl"); pref("extensions.dactyl.idName", "MELODACTYL"); pref("extensions.dactyl.fileExt", "melo"); pref("extensions.dactyl.host", "Songbird"); pref("extensions.dactyl.hostbin", "songbird");
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dact...
JavaScript
// Copyright (c) 2009 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2009-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ // TODO: // - fix Sanitize autocommand // ...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ let { getOwnPropertyNames } = Object; try { Components.utils.import("resource://dactyl/bootstrap.jsm"); ...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("cache", { exports: ["Cache", "ca...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ let global = this; Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("template", { ...
JavaScript
// Copyright (c) 2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ try { let { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components; var EXPORTED_SYMBOLS = ["JSM...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2009-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ try { Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("main", { exports: ["...
JavaScript
// Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("bookmarkcache", { exports: ["Bookm...
JavaScript
// Copyright (c) 2010-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("contexts", { exports: ["Con...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("styles", { exports: ["Style"...
JavaScript
// Copyright (c) 2009-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ try { Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("overlay", { exports:...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("storage", { exports: ["File"...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("protocol", { exports: ["Loc...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("finder", { exports: ["Range...
JavaScript
// Copyright (c) 2009-2011 by Kris Maglione <maglione.k@gmail.com> // Copyright (c) 2009-2010 by Doug Kearns <dougkearns@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ try { Components.utils.import("resource...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // Some code based on Venkman // // This work is licensed for reuse under an MIT license. Details are // g...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("help", { exports: ["help"],...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("highlight", { exports: ["Hig...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2009-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ var { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components; Cu.import("resource://dactyl/b...
JavaScript
// Copyright (c) 2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ try { Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("messages", { exports: ["M...
JavaScript
// Copyright (c) 2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("downloads", { exports: ["Downloa...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ try { var global = this; Components.utils.import("resource://dactyl/bootstrap.jsm"); defineModule("servic...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// By Kris Maglione. Public Domain. // Please feel free to copy and use at will. var ADDON_ID; const OVERLAY_URLS = [ "about:addons", "chrome://mozapps/content/extensions/extensions.xul" ]; let { interfaces: Ci, utils: Cu } = Components; Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource:...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
try { __dactyl_eval_result = eval(__dactyl_eval_string); } catch (e) { __dactyl_eval_error = e; } // IMPORTANT: The eval statement *must* remain on the first line // in order for line numbering in any errors to remain correct. // Copyright (c) 2008-2010 by Kris Maglione <maglione.k at Gmail> // // This work is licens...
JavaScript
// Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ /** @scope modules */ var ProcessorStack = Class("ProcessorStack", { init: function (mode, hives, bui...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file in...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2008-2011 Kris Maglione <maglione.k at Gmail> // Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ /** @scope modules */ // c...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2010 by anekos <anekos@snca.net> // Copyright (c) 2010-2011 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with thi...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2009-2011 by Kris Maglione <kris@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. /* use strict */ function checkFragment() { document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xh...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com> // Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file i...
JavaScript
// Runs a slew of generic option tests var utils = require("utils"); const { module } = utils; var dactyllib = module("dactyl"); var jumlib = module("resource://mozmill/modules/jum.js"); var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl = new dactyllib.Controller(contr...
JavaScript
var setupModule = function (module) { controller = mozmill.getBrowserController(); }; var testAboutPage_WhenOpened_PageIsLoadedWithExpectedTitle = function () { const ABOUT_PAGE_URL = "about:pentadactyl"; const EXPECTED_TITLE = "About Pentadactyl"; const BLANK_PAGE_URL = "about:blank"; controller....
JavaScript
var utils = {}; Components.utils.import(/([^ ]+\/)[^\/]+$/.exec(Components.stack.filename)[1] + "utils.jsm", utils); var EXPORTED_SYMBOLS = ["Controller"]; const { module, NS } = utils; var elementslib = module("resource://mozmill/modules/elementslib.js"); var frame = module("resource://mozmill/modules/frame.js"); v...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
/* * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
JavaScript
var dactyllib = require("utils").module("dactyl"); var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl = new dactyllib.Controller(controller); }; var teardownModule = function (module) { dactyl.teardown(); } var teardownTest = function (test) { dactyl.closeMessag...
JavaScript
// Work around these horrendous Sandbox issues. Components.utils.import(/([^ ]+\/)[^\/]+$/.exec(Components.stack.filename)[1] + "utils.jsm", exports); // vim: sw=4 ts=8 et:
JavaScript
var dactyllib = require("utils").module("dactyl"); const FIND_TEST_PAGE = collector.addHttpResource("./data/") + "find.html"; var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl = new dactyllib.Controller(controller); }; var teardownModule = function (module) { dacty...
JavaScript
// Runs a slew of generic command tests var utils = require("utils"); const { module } = utils; var dactyllib = module("dactyl"); var jumlib = module("resource://mozmill/modules/jum.js"); var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl = new dactyllib.Controller(contr...
JavaScript
"use strict"; var utils = require("utils"); const { module } = utils; var { interfaces: Ci } = Components; var { nsIDOMKeyEvent: KeyEvent } = Ci; var controller, dactyl; var dactyllib = module("dactyl"); var jumlib = module("resource://mozmill/modules/jum.js"); var setupModule = function (module) { controller =...
JavaScript
const utils = require("utils"); const { module } = utils; var jumlib = module("resource://mozmill/modules/jum.js"); var dactyllib = module("dactyl"); const { Services } = module("resource://gre/modules/Services.jsm"); var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl =...
JavaScript
var dactyllib = require("utils").module("dactyl"); var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl = new dactyllib.Controller(controller); }; var teardownModule = function (module) { dactyl.teardown(); } var setupTest = function (test) { dactyl.closeMessageWi...
JavaScript
var dactyllib = require("utils").module("dactyl"); var setupModule = function (module) { controller = mozmill.getBrowserController(); dactyl = new dactyllib.Controller(controller); }; var teardownModule = function (module) { dactyl.teardown(); } var teardownTest = function (test) { dactyl.closeMessag...
JavaScript
var EXPORTED_SYMBOLS = ["NS", "assert", "assertEqual", "module", "test", "toJSON"]; const Ci = Components.interfaces; function module(uri) { if (!/^[a-z-]+:/.exec(uri)) uri = /([^ ]+\/)[^\/]+$/.exec(Components.stack.caller.filename)[1] + uri + ".jsm"; let obj = {}; Components.utils.import(uri, o...
JavaScript
// Copyright (c) 2009 by Doug Kearns // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; function reportError(e) { dump("dactyl: command-line-handler: " + e + "\n" + (e.stack || Error().stack)); Cu.reportError(e); } va...
JavaScript
/* [Discuz!] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: soso_smilies.js 28110 2012-02-22 08:54:16Z songlixin $ */ var sosojs = document.createElement('script'); sosojs.type = 'text/javascript'; sosojs.charset = "utf-8"; sosojs.src = 'http://bq.soso.com/js/so...
JavaScript
/** * Farbtastic Color Picker 1.2 * © 2008 Steven Wittens * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * *...
JavaScript
(function($) { $(function() { try { if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) _wpcf7 = {}; _wpcf7 = $.extend({ cached: 0 }, _wpcf7); _wpcf7.supportHtml5 = $.wpcf7SupportHtml5(); $('div.wpcf7 > form').ajaxForm({ beforeSubmit: function(formData, jqForm, options) { jqForm.wpcf7Cl...
JavaScript
/* * Copyright 2012, Theia Post Slider, Liviu Cristian Mirea Ghiban. */ var tps = tps || {}; tps.transitions = tps.transitions || {}; tps.transitions.none = function(me, previousIndex, index) { var $ = jQuery; // Remove previous slide var previousSlide = previousIndex !== null ? $(me.slides[previousIndex].cont...
JavaScript
/* * Copyright 2012, Theia Post Slider, Liviu Cristian Mirea Ghiban. */ var tps = tps || {}; tps.transitions = tps.transitions || {}; tps.transitions.fade = function(me, previousIndex, index) { var $ = jQuery; // Init var width = me.destE.innerWidth(), diff = index - previousIndex, direction...
JavaScript
/* * Copyright 2012, Theia Post Slider, Liviu Cristian Mirea Ghiban. */ var tps = tps || {}; tps.transitions = tps.transitions || {}; tps.transitions.slide = function(me, previousIndex, newIndex) { var $ = jQuery; // Init var width = me.destE.innerWidth(), diff = newIndex - previousIndex, di...
JavaScript
/* * Copyright 2012, Theia Post Slider, Liviu Cristian Mirea Ghiban. */ var tps = tps || {}; tps.slideshowsOnPage = 0; tps.createSlideshowDefaults = { 'src': '', 'dest': '', 'nav': [], 'navText': '%{currentSlide} of %{totalSlides}', 'helperText': '', 'defaultSlide': 0, 'transitionEffect': 'none', 'transitionS...
JavaScript
/* * Copyright 2012, Theia Post Slider, Liviu Cristian Mirea Ghiban. */ var tps = tps || {}; tps.transitions = tps.transitions || {}; tps.transitions.simple = function(me, previousIndex, index) { var $ = jQuery; // Init var width = me.destE.innerWidth(), diff = index - previousIndex; // Remove pre...
JavaScript
(function() { tinymce.create('tinymce.plugins.theiaPostSliderPlugin', { init : function(ed, url) { ed.addButton('tps_header', { title : 'Add the Theia Post Slider header', image : url + '/../images/tinymce-customcodes/tps-shortcodes-header.png', on...
JavaScript
/** * jQuery Mobile Menu * Turn unordered list menu into dropdown select menu * version 1.0(31-OCT-2011) * * Built on top of the jQuery library * http://jquery.com * * Documentation * http://github.com/mambows/mobilemenu */ (function($){ $.fn.mobileMenu = function(options) { var defaults = { defa...
JavaScript
/* * jQuery FlexSlider v2.1 * http://www.woothemes.com/flexslider/ * * Copyright 2012 WooThemes * Free to use under the GPLv2 license. * http://www.gnu.org/licenses/gpl-2.0.html * * Contributing author: Tyler Smith (@mbmufffin) */ ;(function ($) { //FlexSlider: Object Instance $.flexslider = function(el,...
JavaScript
/** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding encode : function (input) { var output = ""; var chr1, chr2, chr3, enc1, enc2,...
JavaScript