diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2018-09-13 20:39:48 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2018-09-13 21:02:13 -0400 |
commit | d26b319fd6f98517cc3421f10bf18698b953e4d2 (patch) | |
tree | bc70c4e472a2eaf514d411dba5067d530e5bbea9 /data/extensions/spyblock@gnu.org/chrome/content/ui/utils.js | |
parent | c3b304c51a3386ea09527a479a883253ea35243a (diff) |
Updated extensions list for v60
Diffstat (limited to 'data/extensions/spyblock@gnu.org/chrome/content/ui/utils.js')
-rw-r--r-- | data/extensions/spyblock@gnu.org/chrome/content/ui/utils.js | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/data/extensions/spyblock@gnu.org/chrome/content/ui/utils.js b/data/extensions/spyblock@gnu.org/chrome/content/ui/utils.js deleted file mode 100644 index 5f8d515..0000000 --- a/data/extensions/spyblock@gnu.org/chrome/content/ui/utils.js +++ /dev/null @@ -1,86 +0,0 @@ -/* - * This file is part of Adblock Plus <https://adblockplus.org/>, - * Copyright (C) 2006-2017 eyeo GmbH - * - * Adblock Plus is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * Adblock Plus is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. - */ - -const Cc = Components.classes; -const Ci = Components.interfaces; -const Cr = Components.results; -const Cu = Components.utils; - -Cu.import("resource://gre/modules/Services.jsm"); - -/** - * Imports a module from Adblock Plus core. - */ -function require(/**String*/ module) -{ - var result = {}; - result.wrappedJSObject = result; - Services.obs.notifyObservers(result, "adblockplus-require", module); - return result.exports; -} - -var {Policy} = require("contentPolicy"); -var {Filter, InvalidFilter, CommentFilter, ActiveFilter, RegExpFilter, - BlockingFilter, WhitelistFilter, ElemHideBase, ElemHideFilter, - ElemHideException, ElemHideEmulationFilter} = require("filterClasses"); -var {FilterNotifier} = require("filterNotifier"); -var {FilterStorage} = require("filterStorage"); -var {IO} = require("legacyIO"); -var {defaultMatcher, Matcher, CombinedMatcher} = require("matcher"); -var {Prefs} = require("prefs"); -var {RequestNotifier} = require("requestNotifier"); -var {Subscription, SpecialSubscription, RegularSubscription, - ExternalSubscription, DownloadableSubscription} = require("subscriptionClasses"); -var {Synchronizer} = require("synchronizer"); -var {UI} = require("ui"); -var {Utils} = require("utils"); - -/** - * Shortcut for document.getElementById(id) - */ -function E(id) -{ - return document.getElementById(id); -} - -/** - * Determines subscription's title as it should be displayed in the UI. - * @return {String} - * subscription's title or an appropriate default title if none present - */ -function getSubscriptionTitle(/**Subscription*/ subscription) -{ - if (subscription.title) - return subscription.title; - - if (subscription instanceof DownloadableSubscription) - return subscription.url; - - if (subscription instanceof SpecialSubscription && subscription.defaults) - return Utils.getString(subscription.defaults + "Group_title"); - - return Utils.getString("newGroup_title"); -} - -/** - * Split up all labels into the label and access key portions. - */ -document.addEventListener("DOMContentLoaded", function splitAllLabelsHandler() -{ - document.removeEventListener("DOMContentLoaded", splitAllLabelsHandler, false); - Utils.splitAllLabels(document); -}, false); |