aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/main.js b/lib/main.js
index c587202..235a956 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -19,14 +19,6 @@ var logger = require("logger");
var Message = require("util").Message;
var contextMenu = require("context-menu");
-function isOurPage(window, matchingURLs) {
- var url = window.location.href;
-
- // like ["regexp-url1", "regexp-url2"]
- return matchingURLs.some(function(element, i, a) {
- return new RegExp(element).test(url);
- });
-}
/**
*
@@ -43,6 +35,7 @@ function skipThisPage(doc) {
}
}
+
var messageHandler = exports.messageHandler = function messageHandler(
worker, msg) {
switch (msg.cmd) {
@@ -138,6 +131,7 @@ var messageHandler = exports.messageHandler = function messageHandler(
}
};
+
var contentScriptLibraries = [
self.data.url('tweaks/urltest.js'),
self.data.url("lib/util.js"),
@@ -158,6 +152,7 @@ var contentScriptLibraries = [
self.data.url("lib/bzpage.js")
];
+
libbz.initialize(libbz.config, function() {
pageMod.PageMod({
include : [
@@ -175,6 +170,7 @@ libbz.initialize(libbz.config, function() {
});
});
+
pageMod.PageMod({
include : [
"https://bugzilla.redhat.com/process_bug.cgi",
@@ -191,6 +187,7 @@ pageMod.PageMod({
contentScriptFile : self.data.url("lib/skip-bug.js")
});
+
//Allow toggling of CC event displays using a context menu entry
contextMenu.Item({
label : "Toggle CC History",
@@ -200,6 +197,7 @@ contextMenu.Item({
]
});
+
contextMenu.Item({
label : "Copy Check-in Comment",
contentScriptFile : [