code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * jQuery Autocomplete plugin 1.1 * * Modified for Yii Framework: * - Renamed "autocomplete" to "legacyautocomplete". * - Fixed IE8 problems (mario.ffranco). * * Copyright (c) 2009 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * ht...
JavaScript
/*! * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010 * http://benalman.com/projects/jquery-bbq-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Script: jQuery BBQ: Back Button & Query Library // // *Version...
JavaScript
/* * Metadata - jQuery plugin for parsing metadata from elements * * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: j...
JavaScript
/** * jQuery yiiactiveform plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiiactiveform.js 2779 2010-12-28 13:10:09Z qiang.xue $ * @since...
JavaScript
/* * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-...
JavaScript
(function($) { var CLASSES = $.treeview.classes; var proxied = $.fn.treeview; $.fn.treeview = function(settings) { settings = $.extend({}, settings); if (settings.add) { return this.trigger("add", [settings.add]); } if (settings.remove) { return this.trigger("remove", [settings.remove]); } return p...
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/...
JavaScript
/** * jQuery Yii plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiitab.js 1827 2010-02-20 00:43:32Z qiang.xue $ */ ;(function($) { $.e...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
/// <reference path="../../../lib/jquery-1.2.6.js" /> /* Masked Input plugin for jQuery Copyright (c) 2007-2009 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.2.2 (03/09/2009 22:39:06) */ (function($) { var pasteEventName = ($.br...
JavaScript
$(document).ready(function() { $('table.preview input[name="checkAll"]').click(function() { $('table.preview .confirm input').attr('checked', this.checked); }); $('table.preview td.confirm input').click(function() { $('table.preview input[name="checkAll"]').attr('checked', !$('table.preview td.confirm input:not...
JavaScript
$(document).ready(function() { $('table.preview input[name="checkAll"]').click(function() { $('table.preview .confirm input').attr('checked', this.checked); }); $('table.preview td.confirm input').click(function() { $('table.preview input[name="checkAll"]').attr('checked', !$('table.preview td.confirm input:not...
JavaScript
/** * jQuery Yii plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yii.js 2505 2010-09-27 11:51:46Z mdomba $ */ ;(function($) { $.yii = { ...
JavaScript
/* ### jQuery Star Rating Plugin v3.13 - 2009-03-26 ### * Home: http://www.fyneworks.com/jquery/star-rating/ * Code: http://code.google.com/p/jquery-star-rating-plugin/ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/...
JavaScript
/** * Ajax Queue Plugin * * Homepage: http://jquery.com/plugins/project/ajaxqueue * Documentation: http://docs.jquery.com/AjaxQueue */ /** <script> $(function(){ jQuery.ajaxQueue({ url: "test.php", success: function(html){ jQuery("ul").append(html); } }); jQuery.ajaxQueue({ url: "test.p...
JavaScript
/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007...
JavaScript
/* * jQuery Autocomplete plugin 1.1 * * Modified for Yii Framework: * - Renamed "autocomplete" to "legacyautocomplete". * - Fixed IE8 problems (mario.ffranco). * * Copyright (c) 2009 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * ht...
JavaScript
/*! * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010 * http://benalman.com/projects/jquery-bbq-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Script: jQuery BBQ: Back Button & Query Library // // *Version...
JavaScript
/* * Metadata - jQuery plugin for parsing metadata from elements * * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: j...
JavaScript
/** * jQuery yiiactiveform plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiiactiveform.js 2779 2010-12-28 13:10:09Z qiang.xue $ * @since...
JavaScript
/* * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-...
JavaScript
(function($) { var CLASSES = $.treeview.classes; var proxied = $.fn.treeview; $.fn.treeview = function(settings) { settings = $.extend({}, settings); if (settings.add) { return this.trigger("add", [settings.add]); } if (settings.remove) { return this.trigger("remove", [settings.remove]); } return p...
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/...
JavaScript
/** * jQuery Yii plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ * @version $Id: jquery.yiitab.js 1827 2010-02-20 00:43:32Z qiang.xue $ */ ;(function($) { $.e...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
/// <reference path="../../../lib/jquery-1.2.6.js" /> /* Masked Input plugin for jQuery Copyright (c) 2007-2009 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.2.2 (03/09/2009 22:39:06) */ (function($) { var pasteEventName = ($.br...
JavaScript
/* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(functi...
JavaScript
$(document).ready(function() { $('ul.sf-menu').superfish({ delay: 1000, // one second delay on mouseout animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation speed: 'fast', // faster animation speed autoArrows: true, ...
JavaScript
(function() { var isRepeat = false,currentSong = {},repeatTime,repeatBtn; var hackPlaylist = function(_o) { var o = eval('(' + _o + ')'); if (o.type == 'start') { var s = o.song; if(s.sid === currentSong.sid){ return; }else{ ...
JavaScript
(function () { var hacker = {}; hacker.hackDouban = function () { if ($('#fm-player').length > 0) { var jsUrl = 'http://katy.sinaapp.com/js/doubanfm_hacker.js?_v=2012071701'; hacker.initHackerContainer(true); var script = document.createElement('script'); script.setAttribute('src', jsUrl...
JavaScript
chrome.extension.onMessage.addListener(function(request, sender, sendResponse) { if(request.action == 'save') { var song = request.song; //console.log(song); $.ajax({ type : 'POST', url : 'http://dbfmdb.sinaapp.com/api/song.php', data : song, success : function(data, textStatus, jqXHR...
JavaScript
// blast.js functions... function get_blast_form() { var url = '/blasts/new'; var now = new Date; var pars = 'blast[blasted_type]=' + blast.type + '&blast[blasted_id]=' + blast.id + '&blast[partial]=' + blast.partial + '&blast[url]=' + blast.url + '&layout=false&b=' + now.getMilliseconds(); var myAjax = new Ajax....
JavaScript
// blast.js functions... function get_blast_form() { var url = '/blasts/new'; var now = new Date; var pars = 'blast[blasted_type]=' + blast.type + '&blast[blasted_id]=' + blast.id + '&blast[partial]=' + blast.partial + '&blast[url]=' + blast.url + '&layout=false&b=' + now.getMilliseconds(); var myAjax = new Ajax....
JavaScript
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
JavaScript
/* mColorPicker Version: 1.0 r35 Copyright (c) 2010 Meta100 LLC. http://www.meta100.com/ Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php */ // After this script loads set: // $.fn.mColorPicker.init.replace = '.myclass' // to have this script apply to input.myclass,...
JavaScript
function startTabuada() { var x; if (confirm("Press a button!") == true) { x = "You pressed OK!"; } else { x = "You pressed Cancel!"; } document.getElementById("demo").innerHTML = x; } function focusInput() { document.getElementById('j_idt31:tabuadaForm:answer').focus(); }
JavaScript
const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const logging = { levels: { INFO: ['INFO', 10], WARNING: ['WARNING', 20], ERROR: ['ERROR', 30], NONE: ['NONE', 40],...
JavaScript
let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($('adban-complaint-site-url').value, $('adban-complaint-comment').value); }; let init = function() { $('adban-complaint-site-url').value = window.arg...
JavaScript
let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@ad-ban.appspot.com/adban;1'].getService().wrappedJSObject; let logging = adban.logging; let pref_branch = adban.pref_branch; let $ = function(id) {...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
// It is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const TEST_SCHEME_REGEXP = new RegExp('^[a-z]+:', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('[^:]+:/{2}?[^/]*');...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. (function() { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. (function() { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_info = Cc['@mozilla.org/xre/app-info;1'].getService(Ci.nsIXULAppInfo); const logging = { levels: { INFO: ['INFO', 10], ...
JavaScript
let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($('adban-complaint-site-url').value, $('adban-complaint-comment').value); }; let init = function() { $('adban-complaint-site-url').value = window.arg...
JavaScript
let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@ad-ban.appspot.com/adban;1'].getService().wrappedJSObject; let logging = adban.logging; let pref_branch = adban.pref_branch; let $ = function(id) {...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const TEST_SCHEME_REGEXP = new RegExp('^[a-z]+:', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('[^:]+:/{2}?[^/]*');...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_info = Cc['@mozilla.org/xre/app-info;1'].getService(Ci.nsIXULAppInfo); const logging = { levels: { INFO: ['INFO', 10], ...
JavaScript
let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($('adban-complaint-site-url').value, $('adban-complaint-comment').value); }; let init = function() { $('adban-complaint-site-url').value = window.arg...
JavaScript
let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@ad-ban.appspot.com/adban;1'].getService().wrappedJSObject; let logging = adban.logging; let pref_branch = adban.pref_branch; let getBrowser = funct...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let $ = function(id) { return document.getElementById(id); }; let complaint_callback = window.arguments[0]; let cmdDialogAccept = function() { complaint_callback($...
JavaScript
// use this scoping hack in order to hide objects defined inside the branch // with the 'let' statement from the global scope. if (true) { let Cc = Components.classes; let Ci = Components.interfaces; let prompts = Cc['@mozilla.org/embedcomp/prompt-service;1'].getService(Ci.nsIPromptService); let adban = Cc['@a...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const ADDON_V...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const $ = function(id) { return document.getElementById(id); }; const complaint_callback = window.arguments[0]; const cmdDialogAccept = function() { complaint_callback($('adb...
JavaScript
// use this scoping hack in order to hide objects defined inside the anonymous function // from the global scope. (function() { const Cc = Components.classes; const Ci = Components.interfaces; const SCHEME_REGEXP = new RegExp('^[a-z]+:/{2}?', 'i'); const SCHEME_AND_HOST_REGEXP = new RegExp('^[a-z]+:/{2}?[^/]*'...
JavaScript
// it is safe defining objects in the global scope of the XPCOM component, // since they aren't visible outside the component. const Cu = Components.utils; const Ci = Components.interfaces; const Cc = Components.classes; const Cr = Components.results; Cu.import('resource://gre/modules/XPCOMUtils.jsm'); const app_inf...
JavaScript