aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bugzillaDOMFunctions.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/lib/bugzillaDOMFunctions.js')
-rw-r--r--data/lib/bugzillaDOMFunctions.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/data/lib/bugzillaDOMFunctions.js b/data/lib/bugzillaDOMFunctions.js
index 3fa1464..0856c67 100644
--- a/data/lib/bugzillaDOMFunctions.js
+++ b/data/lib/bugzillaDOMFunctions.js
@@ -445,15 +445,19 @@ function killNodes(doc, target, remove) {
var elem = {};
// Don't run victimElements.forEach here as we are effectively
// removing its members.
+ myDebug("config = " + config.toSource());
for(var i = 0, ii = victimElements.length; i < ii; i++) {
elem = victimElements[i];
- try {
- elem[1].parentNode.removeChild(elem[1]);
+ if (!config.doNotKill) {
+ try {
+ elem[1].parentNode.removeChild(elem[1]);
+ //elem[1].style.backgroundColor = "red";
+ }
+ catch (e if e instanceof TypeError) {
+ myDebug("victimElements:\n" + victimElements.toSource());
+ console.log("Cannot remove: " + elem[0]);
+ };
}
- catch (e if e instanceof TypeError) {
- myDebug("victimElements:\n" + victimElements.toSource());
- console.log("Cannot remove: " + elem[0]);
- };
};
}